Open source
MIT licensed. Public source.
We use Captain on our own work. The contribution guidelines below are how a patch lands.
Repository
The source, issues, and pull requests are at: github.com/lemma-ventures/captaincode.
In scope
- New legs and runtimes
- Routing policy: better priors, value ranking, failure handling
- Bug fixes with failing tests
- Documentation that stops the next person hitting what you hit
Out of scope for now
A hosted or multi-tenant service, a GUI, Windows support, and anything that requires Captain Code to hold credentials of its own.
How to contribute
- Open an issue first for anything larger than a fix.
- Write the test first. Every behavioural change lands with a test that failed before it.
go test ./...must be green.gofmtyour code.- Sign off commits:
git commit -s(Developer Certificate of Origin). No CLA. - Explain why in the commit message.
Code of conduct
Be decent. Discuss the work, not the person. No harassment, no personal attacks. Maintainers may edit, lock, or delete anything that ignores this, and may block accounts that keep doing it. Report privately to conduct@lemma.ventures.
Attribution
Captain Code drives worker sessions through opencode (sst/opencode, MIT) as an external program, the same way it talks to claude, codex, and cursor-agent. No opencode source is included in or derived from this repository. See LICENSE and NOTICE in the source tree.
What this is not
Captain Code drives vendor CLIs under your credentials, on your machine, for your work. It does not pool or resell subscription seats, multiplex one subscription across users, or proxy anyone else's credentials. Using it as a hosted multi-tenant router would breach most providers' terms.