Claude Code model router

Tokenbank

Token Bank — the local LLM gateway that sits between your AI agents and every provider. Know where tokens go · Spend less with smart routing to Ollama, Groq, GitHub Models · Earn by sharing idle quota on a community P2P network. One-click onboarding for Cursor, Claude Code, Codex CLI, Gemini CLI — no agent changes. Full trace, seamless model swap

Install

From source
git clone https://github.com/wink-run/tokenbank.git

From the README

Token Bank
## Your AI needs a manager.
Personal AI hub · Your token manager. One local gateway for Claude Code, Codex, Cursor, WorkBuddy, Kimi Code and more — see every token, spend less, keep every AI asset in one place, orchestrate agents, and rent out what sits idle.
Open source · Keep your workflow · One-click revert

Website · Free download · ▶ Watch on YouTube · 中文文档 · Architecture · Privacy Policy

Overview

Token Bank is a next-generation personal AI resource hub that enables one-click onboarding and intelligent orchestration of mainstream AI tools like Claude, Cursor, Codex, and WorkBuddy through a local gateway architecture.

Core Value Proposition

- Usage Transparency: Full-chain trace makes every token consumption accountable
- Cost Optimization: Smart routing automatically switches between local models, free quotas, paid subscriptions, and community-shared compute with lossless protocol adaptation
- Sharing Economy: P2P compute-sharing network creates a decentralized exchange for models and agents, monetizing idle resources into credits

Technical Highlights

Zero-Intrusion Integration
Declarative application handlers (CLI env injection + config hot-patching) enable seamless onboarding without modifying agent applications.

Multi-Protocol Adaptation Layer
Transparent protocol conversion (Anthropic Messages, OpenAI Chat, Codex Responses) allows agents to use third-party models without awareness.

Unified Asset Layer Architecture
Community agents run directly on users' existing agent applications (Codex, Claude, Cursor, etc.) without rebuilding harnesses, executing within user-accumulated MCP/Skill/Prompt assets for dual reuse of runtimes and tool ecosystems.

Scenario Routing Engine
- Routing policy learning from usage patterns
- Lossless context…
Read the full README on GitHub

Details

Language
JavaScript
License
Apache-2.0
Last updated
3 November 2026
Topics
agentanthropicclaudecodecodexcursordshdsh-pluginllmllm-gatewayllm-gateway-systemllm-proxyllm-router

FAQ

What is Tokenbank?

Token Bank — the local LLM gateway that sits between your AI agents and every provider. Know where tokens go · Spend less with smart routing to Ollama, Groq, GitHub Models · Earn by sharing idle quota on a community P2P network. One-click onboarding for Cursor, Claude Code, Codex CLI, Gemini CLI — no agent changes. Full trace, seamless model swap It is a model router for Claude Code, from wink-run/tokenbank on GitHub.

How do I install Tokenbank?

Clone wink-run/tokenbank from GitHub and follow the setup steps in its README.

Is Tokenbank popular?

wink-run/tokenbank has 110 GitHub stars and 18 forks. It was last updated on 3 November 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.