OpenCode Guide
An open-source coding agent with a terminal UI and configurable model providers.
Last verified: · How we verifySuitable workflows
Developers who want to choose providers without replacing their editor.
Limitations and billing
Provider credentials, subscription eligibility and API costs differ; not every login method is interchangeable.
Capabilities we verified
This is an evidence-based shortlist, not an exhaustive feature inventory. Omitted capabilities have not been checked for this record.
Pricing & usage
See official pricing
Free CLI; model-provider or optional service charges. The cost of metered usage or an external agent can be separate from the subscription.
Check official pricing ↗Models & access
Connect a supported provider and select its models; custom endpoints need their own configuration.
Verified families: Claude, GPT, Gemini, Grok.
Official model information ↗Install and start the CLI
A modern terminal and a supported provider account; npm is one installation option.
Installation command · npm
npm install -g opencode-aiOpen your project folder in a terminal, then run:
opencodeAccount and authentication
Run /connect to add provider credentials, then /models to select a model.
Project configuration and tools
Project configuration lives in opencode.json or opencode.jsonc; use /init to create project instructions.
First task to try
Ask for a repository overview in Plan mode, then approve a small implementation task.
Official configuration reference ↗Related CLI tools
All AI CLI tools →Project evaluation checklist
- Open a small, familiar project and confirm that your essential language tooling works.
- Give the agent one bounded change with an observable acceptance criterion.
- Review the diff, run the project’s checks and compare the result with your current workflow.
- Inspect usage after the task. Estimate a month of similar work, including any separate model or agent bill.