Skip to content
StackPick

OpenCode

Open-source coding agent you run in the terminal.

Last reviewed

Last updated

OpenCode is #5 of 8 in Coding and CLI agents. Editorial score 7.4: Ease 6, Power 7, Price 9, Vibe-coder fit 8. Initial editorial estimate. Not a measured benchmark.

Who it is for A local open-source terminal agent.Coding and CLI agents: An agent that edits the repo.

OpenCode is an open-source coding agent for the terminal. You run it against a repo and connect a model. Use it when you want an alternative to Aider or Claude Code that stays local and open, and you are willing to check the docs for the current provider list.

What shipped in OpenCode

Best use cases

  • Agent edits without a hosted IDE
  • Bringing your own model key
  • A CLI you can swap in beside Aider

Pros

  • + Open source
  • + Terminal-first and repo-local
  • + Not locked to one model vendor

Who should skip it

Skip OpenCode when one of these listed limits is the constraint.

  • − Younger and less of a default than Claude Code or Aider
  • − Provider support and prices for models: check site

All comparisonsAll best-of lists

Pricing

Free

OpenCode is listed as Free. Open source and free. Model fees are the provider's. Rates: check site.

Compare list prices

Alternatives to OpenCode

Listed alternatives: Aider, Cline, Claude Code. Aider is listed for “Git-native pair programming from the terminal”. Cline is listed for “An agent inside stock VS Code” (also Claude Dev). Claude Code is listed for “Repo-sized edits from the terminal”.

Also in Coding and CLI agents: Codex CLI, Gemini CLI, Devin, Orkas.

Coding and CLI agents

7.4

Aider

Open-source pair programming in the terminal. Git commits included.

Best for Git-native pair programming from the terminal

Coding and CLI agents

7.6

Cline

Open-source coding agent inside VS Code. Bring your own model.

Best for An agent inside stock VS Code

Coding and CLI agents

8.3

Claude Code

Anthropic's coding agent for the terminal and supported editors.

Best for Repo-sized edits from the terminal

Check siteDetails

Release notes

Release history
  1. OpenCode

    OpenCode 2.4.2

    Released November 25, 2026. GPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2. After OpenCode is connected, the model picker lists OpenCode Go first. If the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes the message and puts it back in the composer, images included. Always allow for a web fetch allows that site only. Approvals saved by earlier versions stay as they were. A failed automation run is recorded and the next one runs on schedule. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A shell command in an automation that runs past its timeout is stopped and fails the call. Sending a message, command, skill, or shell command to an archived session unarchives it, including through the API. Plan mode's rules are in the system prompt, and sessions already in Plan mode get the rules once more after upgrading. generate_image and generate_video run inside Code Mode, so their definitions no longer add about 700 tokens to every request. On macOS and Windows, desktop updates download only the parts of the app that changed. Enter in the question dock moves to the next question and submits on the last one. The release also includes a large fix sweep for MCP sign-in, Plan mode, tools, PDFs, the model picker, sessions, and the desktop timeline.

    Source for OpenCode 2.4.2 (opens in a new tab)
  2. OpenCode

    OpenCode 2.4.1

    Released November 23, 2026. OpenCode can save assistant messages again on macOS 12, whose system SQLite does not support the JSON operator used in v2.4.0. Providers set up only in config, such as Ollama, show their models in /models without a /connect login. A /btw answer that finishes behind another side-panel tab shows an unread dot until that tab is opened. With experimental.model_speeds enabled, model service tiers are remembered speeds instead of separate model-picker entries. The terminal's /speed and /fast list the current model's service tiers and relative prices, and the desktop app adds a speed dropdown beside the variant selector. Effect and Promise plugins can create, list, and delete automations. @opencode/plugin again supports @opentui/core and @opentui/solid from 0.8.0, so plugins capped below OpenTUI 0.9 can install. Compaction no longer keeps more recent history than keep.tokens, including when the newest message already exceeds that allowance. The release also includes fixes for extra cache cost after compaction, keyboard focus, and an aborted shared event subscription.

    Source for OpenCode 2.4.1 (opens in a new tab)
  3. OpenCode

    OpenCode 2.4.0

    Released November 23, 2026. The desktop app has a built-in browser. Sign-ins and browsing history can be imported from Chrome, Edge, Firefox, or Safari, and extensions can be added from Chromium browsers or the Chrome and Edge stores. They stay in one persistent desktop profile: chat links open signed in, tabs survive restarts, and the agent can read and drive the same pages. In the desktop app, web links from the chat open beside the conversation. Modifier-click opens a link in the system browser. A browser deny in permission rules refuses every agent browser call. Automations run a prompt, a script, or a shell command on a timer, on a cron schedule, or when an MCP server sends an event. Manage them with /automation. Set "automations": false to turn them off. OpenCode follows the MCP Events beta for push delivery, with argument checks, heartbeats, and automatic reconnects. An event too large for its prompt is skipped and its automation keeps running. When a connected provider has a video model, the agent can make videos with generate_video. It keeps working while the video renders, and saves the files into the workspace when they are ready. The job runs in the background, survives a server restart, and wakes the agent with the file paths. The image tool experimental_image_generate is now generate_image. Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once. The TUI's new designs are on by default, and the opencode theme is the new one. Pick opencode-classic in Theme for the previous colors, or set experimental["new-designs"]: false in the TUI config for the previous designs. On Windows, the taskbar button shows session progress, counts sessions that need you, and flashes when a permission or question is waiting. Plugins written as name@latest, a version range, a Git branch, or a Git semver: range are checked on startup and every 24 hours, and a newer match is installed and reloaded. A range stays inside its range. If a new version fails to load, the previous one keeps running. A bare name, an exact version, a tag such as @next, a Git tag, or a commit hash does not update itself. opencode plugin update still updates those by hand. GitHub Copilot no longer reads GITHUB_TOKEN. Set COPILOT_GITHUB_TOKEN or sign in with OAuth. An MCP server without a protocol setting is tried on the newest protocol first, then falls back to the legacy handshake. Set protocol: "legacy" on a server that misbehaves. Connect dialogs and opencode auth login list one OpenCode option that includes Go models. OpenCode Go is listed only when a Go key is already saved, and saved keys keep working. Cmd+Shift+S (Ctrl+Shift+S on Windows and Linux) archives the open session. The composer's Cmd+U and Escape or Ctrl+G follow the Attach file and Stop session shortcuts. Code Mode paths tools.opencode.session_rename and session_move are now tools.opencode.session.rename and .move. Direct tool names and permission actions are unchanged. @opencode/plugin requires @opentui/core and @opentui/solid 0.9.4 or later. Renderers passed to registerCodeBlockRenderer receive an OpenTUI block (block.text) instead of a Markdown token, and codeBlockStyle and escaped are gone. Plugins load in the background again, and the server does not wait for them. The wait of up to 5 seconds added in v2.2.7, which returned 503, is removed. Right after startup, the model, provider, generate, voice, and websearch.query endpoints answer with whatever has loaded, so a list can be empty or partial. Desktop voice reads each voice model's engine, which older servers do not report, so voice shows as unavailable against a server from before this release. Assistant parts are saved as their own rows. experimental.part_rows: false restores the old path for this release. The release also includes a large fix sweep for the core, the terminal, the desktop app, the SDK, and plugins.

    Source for OpenCode 2.4.0 (opens in a new tab)

15 more in the release history

Newsletter

Get the weekly AI tool shortlist

One email when rankings change or a tool ships something that matters. No spam, unsubscribe anytime.