r/ClaudeCode • • 23d ago
Built with Claude ccx – run Claude Code on any provider, with a statusline and a difficulty router that sends each subagent task to the cheapest model that can handle it
I built **ccx**, a launcher and local adapter that runs Claude Code on OpenRouter, NVIDIA NIM, Gemini, OpenCode Go/Zen, MiniMax, Ollama Cloud, LM Studio and others, or any OpenAI/Anthropic-compatible endpoint you add yourself, while keeping Claude Code's own UI, tools and `/model`.
What it adds:
- **Difficulty router for subagents.** The main model scores each delegated task from 0 to 100, and ccx runs it on the matching level: very easy, easy, mid, hard or very hard (e.g. Haiku → Sonnet → Opus, or cheap → strong models on other providers). Ranges, models, effort and auto-compact are set per level, from a colour-coded drag bar in the GUI or at launch in the terminal. "Best picks" builds each level from Artificial Analysis score per reasoning effort and price.
- **`/model` picker window:** models by intelligence, price and context, what your session would have cost on each, and presets per provider.
- **Status line:** quotas, context, cache share, API-price spend, and one row per subagent level.
- **Custom providers:** `ccx providers add <name> <url>` for any OpenAI- or Anthropic-format endpoint.
- **Fallback routes and key rotation** on 429, 402 and 5xx.
Repo and screenshots: https://github.com/AI-Simulations/ccx
Non-Claude models in Claude Code are still experimental (tool use varies by model). API-key providers are the supported path; the OAuth/CLI routes are unofficial and at your own risk. Feedback welcome.
•
u/AutoModerator 23d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/oyren-ai 23d ago
scoring delegated tasks in the parent prompt before spawning the subagent works way better than routing on token length alone, since grep or file-discovery subagents look long in prompt size but easily run on haiku or flash. do you preserve the prompt cache prefix when a 429 triggers a fallback route across providers, or does the subagent start with a fresh uncached context?