This release is a pre-release and may not be stable for production use.
🪡 RouteCode
An AI coding assistant that lives in your terminal — powered by any LLM.
Install
⚡ One-liner (no Python required)
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/anasx07/routecode/main/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/anasx07/routecode/main/install.ps1 | iex
Downloads a self-contained binary and puts routecode on your PATH automatically.
🐍 Via pip / pipx
pipx install routecode # recommended — isolated environment
# or
pip install routecode
Both routecode commands are registered after install.
📦 Manual binary download
Grab the right binary from the latest release:
| Platform | Binary |
|---|---|
| Windows x86_64 | routecode-windows-x86_64.exe |
| macOS Apple Silicon | routecode-macos-arm64 |
| macOS Intel | routecode-macos-x86_64 |
| Linux x86_64 | routecode-linux-x86_64 |
Place the binary anywhere on your PATH and rename it to routecode.
Quick start
routecode # start interactive session
routecode --model gpt-4o # specific model
routecode --provider anthropic # specific provider
routecode --resume # resume last session
routecode --print "refactor this" # single-shot, non-interactive
On first run, RouteCode will ask for your API key and save it to ~/.routecode/config.json.
Supported providers
| Provider | Env var |
|---|---|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
GEMINI_API_KEY |
|
| DeepSeek | DEEPSEEK_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
What RouteCode can do
- Read, write, and edit files with diff preview and a permission system
- Run bash commands with captured output and audit logging
- Spawn background sub-agents for long tasks while you keep chatting
- Context compaction — auto-summarises history so long sessions never hit limits
- Skills — drop Markdown files into
.routecode/skills/to give RouteCode reusable instructions - Session resume — every conversation is saved; pick up where you left off
- Themes & personalities — customise the look and the agent's tone
Slash commands
| Command | Description |
|---|---|
/config |
View and set provider, model, API keys |
/model |
Switch model mid-session |
/session |
Save, load, list, or clear sessions |
/memory |
Manage persistent memory |
/tasks |
View and manage background tasks |
/theme |
Switch UI theme |
/clear |
Clear the current conversation |
/help |
Show all commands |
Building from source
git clone https://github.com/anasx07/routecode
cd routecode
python -m venv venv && source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e ".[dev]"
routecode
Build a standalone binary locally:
pyinstaller --clean routecode.spec
./dist/routecode
Architecture & Project Structure
RouteCode follows a domain-driven, modular architecture designed for stability and scalability.
src/routecodecli/
├── agents/ # Provider-specific implementations (LiteLLM, Anthropic, etc.)
├── commands/ # CLI slash-command handlers (/config, /session, etc.)
├── config/ # Global settings, models database, and system prompt logic
├── core/ # Orchestration, event bus, context management, and state
├── domain/ # Business logic (Task management, Skills, Git, Personalities)
├── tools/ # AI-accessible tools (file_edit, bash, webfetch, etc.)
├── ui/ # TUI components, theme engine, and dialogs
│ └── repl/ # Core interactive application logic (split-pane TUI)
└── utils/ # Shared utilities (logging, atomic storage, cost estimation)
Contributing
PRs are welcome. Please open an issue first for significant changes.
pip install -e ".[dev]"
pytest # run tests
ruff check src/ # lint
License
Metadata
Release files for routecode 0.0.5.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| routecode-0.0.5.dev0.tar.gz | 263.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| routecode-0.0.5.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 543.6 kB
Release files / routecode-0.0.5.dev0.tar.gz
| Download URL | routecode-0.0.5.dev0.tar.gz |
|---|---|
| Size | 263.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c8fc0e292884d1d63072609d5f6be9d44d0cbafeb51ac89046197408306136e
|
|
BLAKE2b-256 checksum How to use checksums |
5c53a9f3b2e9c4335576f6393ffb0641d8884b0b2bb4e0f70c73d38778b15dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logRelease files / routecode-0.0.5.dev0-py3-none-any.whl
| Download URL | routecode-0.0.5.dev0-py3-none-any.whl |
|---|---|
| Size | 280.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
049752aaffe9ddb1ad92a6997b7315994d1f82de95d17c494e5461cec3020920
|
|
BLAKE2b-256 checksum How to use checksums |
fac020dfccbd76ed3c4202f358aba42a26ab00518489153bd8134efaa8d6807f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency log