Skip to content
TraeIDE

Search

Popular pages

No matching pages

Try a tool name or a topic such as pricing or MCP.

English

OpenCode Guide

An open-source coding agent with a terminal UI and configurable model providers.

Last verified: · How we verify
Coding agentAnomalymacOSWindowsLinux

Suitable 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

Agent workflowCLI surfaceMCPSkillsRules / instructionsBring your own key

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-ai

Open your project folder in a terminal, then run:

opencode
Official installation instructions ↗

Account 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

  1. Open a small, familiar project and confirm that your essential language tooling works.
  2. Give the agent one bounded change with an observable acceptance criterion.
  3. Review the diff, run the project’s checks and compare the result with your current workflow.
  4. Inspect usage after the task. Estimate a month of similar work, including any separate model or agent bill.