OpenCode

Open-source AI coding agent for any model, available on desktop, terminal, mobile and via an embeddable SDK, with MCP client support.

Visit website

What is OpenCode?

OpenCode is positioned by its vendor as "The open source coding agent for any model." It is a first-party tool: the official website opencode.ai links to anomalyco/opencode, the repository is maintained by the OpenCode team, and the project is MIT-licensed with more than 1,000 contributors. Because it is an official, first-party tool, the official tag is included.

The product covers four surfaces: a desktop app for macOS, Windows and Linux; a terminal UI that works in any shell, editor or remote server; mobile apps for iOS and Android; and an embeddable SDK for scripts, CI jobs and internal tools. All surfaces share the same coding agent.

OpenCode supports 200+ LLM providers through Models.dev as well as local models. It can run multiple sessions in parallel on the same project, and it supports custom agents, a general subagent, SKILL.md agent skills, custom slash commands, plugins, permission controls, undo/redo and worktree operations.

In the MCP ecosystem OpenCode is a client, not a server. It connects to local stdio servers and remote Streamable HTTP servers, supports OAuth for remote endpoints, reads MCP resources through built-in tools, and handles elicitation requests.

The @opencode/sdk package hosts OpenCode inside an application: OpenCode.create() builds the server and HTTP router in memory, without opening a network listener, and exposes sessions, events, worktrees and plugin customization.

Classification: coding-tools, with related categories agent-frameworks, ai-apis and mcp-servers. Pricing label: open-source. License: MIT.

Developer details

Platforms
macOS, Linux, Windows
Languages
TypeScript, Rust, Shell, Nix
Works with
200+ providers via Models.dev, Local models, MCP servers, ChatGPT, GitHub Copilot, Claude, Cloudflare Durable Objects
License
MIT

Features

  • Desktop, terminal, mobile and embeddable SDK clients for the same coding agent.
  • 200+ LLM providers via Models.dev, plus local models and bring-your-own-subscription.
  • Parallel multi-session agents with custom agents, subagents, skills and slash commands.
  • Connect local stdio and remote Streamable HTTP MCP servers with OAuth support.
  • Plugins, permissions, undo/redo and worktree support for governed coding workflows.
  • MIT-licensed, built in the open by Anomaly and 1,000+ contributors.