Captain picks the best model(s) for the task you prompted. Remove the hassle. Leverage every subscription to the max, and put the strongest open-source models into the same workflow. Claude Code, Codex, Cursor, Grok, APIs and /oss. Save tokens. Save headaches. One local TUI.
Today we're open-sourcing Captain Code 🚀 🫶 Captain picks the right AI model for each task and runs it from one terminal, on your machine. It drives the Anthropic Claude Code, OpenAI Codex, xAI Grok and Cursor CLIs you already pay for, and gives you access to the most capable open-weight models through OpenRouter, NVIDIA NIM and Hugging Face.
Why we built it? We no longer knew which model to use for what, we were under-using our subscriptions, and we wanted to hand more work to cheaper, capable open models. More than 25% of my prompts go to open-weight models as a result, and counting!
How does Captain work? It leverages the newly released TypeSafe AI Jev model to triage every task in milliseconds. Then it routes on quality, cost and latency, with the outcome logged locally for iterative improvements. When a model hits its usage limit, it reads the reset time and carries the work, context included, to the next relevant available model. When you type /oss, the task goes to open models only.
Learn more about Captain, try it now: https://captaincode.ai
We welcome feedback and contributions 🖖
Crafted with ❤️ on OpenCode.