Open source

MIT licensed. Public source.

We use Captain on our own work. The contribution guidelines below are how a patch lands.

License
MIT
Copyright
Lemma Ventures AG
Terminal
opencode (external, MIT)
CLA
None · DCO sign-off

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

  1. Open an issue first for anything larger than a fix.
  2. Write the test first. Every behavioural change lands with a test that failed before it.
  3. go test ./... must be green. gofmt your code.
  4. Sign off commits: git commit -s (Developer Certificate of Origin). No CLA.
  5. 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.