The economical coding agent.
Get more done with less!
Make your AI plan last longer, lower your token bill, program locally faster. Enjoy yourself more with instant startup and a calm interface.
A coding agent that works with any OpenAI-compatible endpoint. Bring your own provider! Free-tier and local models work, and subscriptions will last much longer.
# macOS / Linux
curl -fsSL https://3code.capocasa.dev/install | sh
# Windows (PowerShell)
irm https://3code.capocasa.dev/install.ps1 | iex
# Termux on Android arm64
pkg install curl && curl -fsSL https://3code.capocasa.dev/install | sh
The Termux build runs on your phone: the installer detects $PREFIX and drops the binary in $PREFIX/bin. Android has no OS sandbox, but the in-process path checks still apply. Details in the manual.
- Get an API key from build.nvidia.com. NVIDIA Build has a free tier with several known-good coding models, no payment required, which makes it the recommended way to try 3code for the first time.
- Run
3codein a project directory. With no provider configured, the setup wizard starts by itself. - At the first prompt, enter
nvidiaand paste your key. - Pick a model from the list.
glm-5.3-flashanddeepseek-v4-flashare solid defaults. - Type a prompt:
❯ Write a Hello World in Nim and run it
That's it. When the free tier runs out, run :provider add to stack
another. The provider guide
covers free tiers, flat-rate coding plans, subscription logins, and local
servers.
The full documentation is at 3code.capocasa.dev/docs: providers, configuration, sandbox policies, sessions, colon commands, and building from source.
3code is also a Nim library: the same agent the CLI runs, embeddable in your own program with the terminal replaced by return values and callbacks. Sandbox, tool calls, session persistence, all of it. This is the foundation for building other coding agents or agents of any kind on top of 3code: a web frontend, a chat bot, a CI runner that fixes its own failures, an IDE plugin. The agent loop, tool use, and sandboxing are done; you bring the interface.
The programming manual, with examples and API details, lives in the docs.
MIT.
