OpenCode is an open-source, MIT-licensed AI coding agent for the terminal, desktop and IDE, with 75+ model providers. HagiCode is a workbench that runs OpenCode as an executor and adds proposals, commit tooling and multi-repo context around it.
- Is OpenCode free?
- The OpenCode agent is MIT-licensed and free. You pay for models through your own provider keys, an existing Copilot or ChatGPT login, or the optional Zen (pay-as-you-go) and Go ($10/month as of October 2026) plans. See opencode.ai for current pricing.
- How do I install OpenCode?
- Run curl -fsSL https://opencode.ai/install | bash, or npm install -g opencode-ai, or brew install anomalyco/tap/opencode. The docs note these methods install OpenCode 1, so check opencode.ai/docs for the current version.
- Can I use OpenCode with HagiCode?
- Yes. HagiCode lists OpenCode as an Agent CLI. Install it and connect a provider, then select it in HagiCode; HagiCode starts a local OpenCode server for you.
- Does HagiCode replace OpenCode?
- No. HagiCode is the workbench around OpenCode, adding proposals, commits, multi-repo context and history. It needs OpenCode installed and a provider connected to run.
- Does OpenCode work with a Copilot or ChatGPT subscription?
- Yes. OpenCode can sign in with GitHub to use a Copilot account, or with OpenAI to use ChatGPT Plus or Pro. Some Copilot models need a Pro+ subscription.
- OpenCode vs HagiCode: which should I pick?
- Pick OpenCode alone if its terminal, desktop or IDE experience covers your work. Add HagiCode if you want proposals, multi-repo context and one workbench for several agents.