Claude Code model router
Alan Code Agent
Open-source Python implementation of a Claude-Code-like agent (Gemini CLI, Codex, Copilot...). Usable in CLI, GUI, or as a python library to build upon. Works with any LiteLLM compatible API key, and several local model providers (vLLM, SGLang, Ollama).
Install
git clone https://github.com/tboulet/Alan-Code-agent.gitFrom the README
Alan Code An open-source python coding agent, inspired by Claude Code. Usable in CLI, GUI, or as a Python library to build upon. Alan Code implements many features of modern CLI agents, such as tool use, hooks, skills, context compaction and more, and adds cross-session memory, live cost tracking, and a GUI with Chat and an LLM perspective. Works with LiteLLM-compatible model providers and local OpenAI-compatible servers. Installation | Quickstart | Usage | Python library | Features | What's new Highlights - Browser GUI - Chat plus *LLM Perspective*, showing the normalized system prompt and conversation before backend-specific shaping. --gui - Cross-session memory — per-project and global memory the agent reads/writes between sessions, with three modes (off / on / intensive). - Live cost + token tracking — estimated $ and token usage per API call, visible in-session. - Broad model support - Anthropic direct, any LiteLLM backend (OpenAI, OpenRouter, Gemini, ...), or local models via vLLM / SGLang / Ollama, with a text-based tool-call fallback for models without native tool use. - Python library — drive the agent from your own code with sync, async, or streaming APIs. Build auto-fix loops, orchestrators, or custom UIs in a few lines. Installation Clone the repo and install in editable mode. Requires Python 3.11+. Linux and macOS are supported. On Windows, use WSL; native Windows is not currently supported because session locking relies on a Unix API. Quickstart Set your model provider's API key in the environment (ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, GEMINI_API_KEY, …). For LiteLLM routes, the model provider goes inside the model string (ollama/..., openrouter/..., gemini/...). A bare Claude name (claude-sonnet-4-6) automatically uses the…
Details
- Repository
- tboulet/Alan-Code-agent
- Language
- Python
- License
- Apache-2.0
- Last updated
- 30 October 2026
- Topics
- ai-agentclicoding-agentlitellmllmllm-agentslocal-llmollamapythonvllm
FAQ
What is Alan Code Agent?
Open-source Python implementation of a Claude-Code-like agent (Gemini CLI, Codex, Copilot...). Usable in CLI, GUI, or as a python library to build upon. Works with any LiteLLM compatible API key, and several local model providers (vLLM, SGLang, Ollama). It is a model router for Claude Code, from tboulet/Alan-Code-agent on GitHub.
How do I install Alan Code Agent?
Clone tboulet/Alan-Code-agent from GitHub and follow the setup steps in its README.
Is Alan Code Agent popular?
tboulet/Alan-Code-agent has 25 GitHub stars and 3 forks. It was last updated on 30 October 2026.
More model routers & proxies
Aweswitch
28Wehuman01/aweswitch
CLI proxy for switching AI model profiles (Claude Code, Codex, etc.)
Permafrost
25jianzhichun/permafrost
Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic.
ClaudeGate
32Santosh-Prasad-Verma/ClaudeGate
High-performance bridge proxy connecting Claude Code CLI & Anthropic SDK to ANY OpenAI-compatible LLM provider (DeepSeek, OpenRouter, Groq, Ollama, Gemini, OpenAI) with zero-crash streaming, failover & secret redaction.
Claude Code Proxy
26sunjackson/claude-code-proxy
一个功能强大的跨平台桌面应用,用于管理 Claude Code 的本地代理服务
Ccrelay
26inflaborg/ccrelay
Switch Claude Code, Claude Desktop and ChatGPT/Codex to third-party models from one desktop app. Local proxy converts Anthropic/OpenAI formats automatically.
Infinite Claude Code
29juanitogit/infinite-claude-code
Infinite, 100% Free, Zero-latency Multi-provider AI Router for Claude Code CLI & Desktop with real-time SSE streaming, auto-failover across 51 providers, and Cyber HUD telemetry.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.