SuperAPIAI Directory

More Info

github.com · AI coding

OpenCode is an open-source AI coding agent released under the MIT license, offering four clients: a desktop app (macOS / Windows / Linux), a terminal TUI, mobile (iOS TestFlight / Android), and an SDK. It connects to 200+ model providers through Models.dev, also supports local models, and includes a set of free models usable without an account; an optional OpenCode Go subscription is also available (from $10/month). It supports codebase exploration and modification, running tests and shell commands, parallel multiple sessions on the same project, and extending workflows with custom agents, SKILL.md skills, plugins, MCP servers, and slash commands.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsiOS · Android · macOS · Linux

About this tool

Purpose

OpenCode is an open-source AI coding agent whose goal is to let developers freely choose models while writing code on desktop, terminal, or phone, and also to embed the agent into their own scripts, tools, and CI pipelines. It suits individual developers and teams who want to avoid being locked into a single model vendor.

Key capabilities

  • Codebase exploration and editing, running tests and shell commands.
  • Running multiple sessions in parallel on the same project.
  • Extensible: custom agents, skills (SKILL.md), plugins, MCP servers, and slash commands.
  • Four clients share the same agent: desktop (macOS / Windows / Linux), terminal TUI, mobile (iOS TestFlight / Android), SDK.
  • Model-agnostic: connects to 200+ providers via Models.dev (including local models), and supports bringing your own subscription (e.g., ChatGPT Plus/Pro, GitHub Copilot); the materials note that chat subscriptions do not necessarily cover all APIs, so you should confirm the billing scope yourself.
  • Open source and self-hostable: MIT license, public code, private deployment and auditing possible; the materials state 220k+ GitHub stars and 1,000+ contributors.

How to use

  1. Choose a client: download the desktop app from opencode.ai; for the terminal, use curl -fsSL https://opencode.ai/v2/install | bash or npm install -g @opencode/cli; mobile via TestFlight / Google Play; for the SDK, see the official documentation.
  2. Connect a model, or use the built-in free models directly (no account required).
  3. Open a test project and run /models to select a model.
  4. First use plan mode to locate entry points and tests, then switch to build mode to make small changes.

Example prompt:

Inspect the login flow without editing. Identify three relevant files and existing tests. Wait for my confirmation, then implement the agreed change and report the checks actually run.

Afterward, check the diff, test output, and unfinished work separately.

Pricing

  • The client and built-in free models are free and require no account.
  • Optional OpenCode Go subscription: Go $10/month, Go Plus $40/month (higher quota), Go Teams $20/person/month (minimum 2 people).
  • Go is a subscription/resale layer; it does not build its own GPUs or train models. It bulk-purchases compute and discounts from third-party inference providers and packages them into a unified monthly bill, covering 31 tested models (including open-weight and closed-source models). Quota is measured at public list prices and resets on 5-hour / weekly / monthly windows; unused quota does not roll over.
  • Go models are also available via API https://opencode.ai/inference/go For invocation by other agents such as Claude Code, Codex, Hermes, and Pi.
  • Prices are based on the verification results dated 2026-11-19 as noted in the materials; official documentation indicates that quotas may be adjusted based on early usage.

Limitations of Free Models

  • Free-tier chat models can only be used within the OpenCode client; calling them from other clients requires paid models or Go.
  • Most are "limited-time free" (the team is gathering feedback), and the list is subject to change.
  • Regional and data notes: Beam Free is unavailable in China (including Hong Kong and Macau) and many other countries; Inkling 2 Small Free is blocked in the EU and several countries, and the provider may use data for training; Iceman Free uses prompts for training; LongCat 2.5 Free is hosted in China, requires the Global region to be enabled, and is limited to 100 requests per day; DeepSeek V4.1 Flash Free, Hy4 flash Free, and LongCat 2.5 Free are marked as zero retention.
  • Setting OPENCODE_DISABLE_FREE_MODELS=1 can hide free models; when paid quota is exhausted, it falls back to free models rather than blocking outright.

Use Cases

  • Developers who need to write code across desktop, terminal, and mobile and switch models freely.
  • Teams requiring private deployment, auditable code, and avoidance of vendor lock-in.
  • Engineering teams that want to embed coding agents into their own scripts and CI.
  • Collaborative development requiring multiple parallel sessions on the same project.

Limitations and Caveats

  • Go's privacy terms require attention: some Contributor models offer larger discounts in exchange for allowing prompts to be used for training, and data retention periods vary by model (the materials state 0–55 days); check the privacy table before handling sensitive code.
  • Go's "$10 for about $100 of usage" is a quota cap calculated at public list prices, not a withdrawable amount; the actual multiplier depends on the model and the lowest market price, and the official figure is not given.
  • Third-party analyses mention: the free tier's context was reduced from 1M to 200K tokens, quota consumption doubles during peak hours, Go and Go Plus are single-member workspaces, usage beyond the cap is billed as Extra Usage, and users in China need to switch to the Global region to use DeepSeek models. These are third-party claims, not officially confirmed.
  • Beyond the above materials, more platform details, enterprise editions, and compliance certification information are not yet available.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools