Open-source AI coding agent

OpenCode

by Anomaly Last reviewed July 2026

OpenCode is an open-source coding agent for developers who want control over models, providers, permissions, and workflow. Its terminal interface is the main draw, but desktop, web, and IDE clients are also available. It can inspect a repository, plan changes without editing, modify files, run commands, and connect to external tools through MCP.

Best for

  • Developers who want to choose their own model provider
  • Terminal-first work across an existing repository
  • Teams that want inspectable configuration and permission rules
  • Developers who switch between planning and implementation

Not best for

  • Teams that want one vendor to manage models, billing, and support
  • Developers who do not want to configure providers or permissions
  • Workflows that depend on polished visual diff review

Quick facts

Vendor
Anomaly
Category
Open-source AI coding agent
Platforms
Terminal, macOS, Linux, Windows via WSL, Desktop, Web, IDE extension
Integrations
OpenCode Zen, OpenRouter, GitHub, GitLab, MCP, ACP, LSP servers
Pricing
The agent is free and open source. Model usage is separate: connect your own provider account or use the usage-based OpenCode Zen service. Your final cost depends on the model and provider you select.

In Depth: OpenCode

Key features

  • Terminal, desktop, web, and IDE interfaces
  • Plan and Build modes for separating review from file changes
  • Multiple model providers, including OpenCode Zen and OpenRouter
  • Repository instructions through AGENTS.md
  • MCP servers, custom tools, plugins, skills, and permission policies
  • Session sharing plus GitHub and GitLab automation

Pricing and access

The agent is free and open source. Model usage is separate: connect your own provider account or use the usage-based OpenCode Zen service. Your final cost depends on the model and provider you select.

Pricing changes often. We update this writeup as vendor pages change. Always confirm the latest on https://opencode.ai before committing.