
opencode
The open source coding agent.
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Jul 2026
opencode is an open-source AI coding agent that lives in your terminal. It's built by Anomaly, the team behind SST, and it's the project now hosted at opencode.ai (the old sst/opencode repo redirects here). Bring any model provider, Anthropic, OpenAI, Google, GitHub Copilot, or a local model, and it reads, writes, and edits files and runs shell commands from a clean TUI. MIT licensed.
The design choice that sets it apart is a two-agent flow: a plan agent that only reads and analyzes, and a build agent that actually makes changes, so you review the plan before anything touches your code. It pulls in LSP diagnostics as it works. Install is trivial, npm, Homebrew, or a one-line script, no Docker or GPU. You supply an API key for a hosted model, or point it at a local one and run for free.
This is a serious, actively maintained tool with near-daily releases, not a weekend project. If you're happy in the terminal and want a coding agent without a subscription, opencode competes head-on with Cursor, GitHub Copilot, and Claude Code, and you pay only for the model tokens you use. Solo devs and small teams who already have API access get the most out of it.
The catch is the model bill and the terminal-first workflow. opencode is free, but the models it drives are not, and heavy use adds up the same way a subscription would. And if you want a graphical editor experience, this isn't it. It's a TUI first, with a desktop app still in beta. For people who live in the terminal, that's the appeal, not the drawback.
Free vs Self-Hosted vs Paid
fully freeFree tier: The entire agent, MIT-licensed. No feature gates.
Self-hosted: Runs on your machine as a CLI and TUI. An optional client/server split lets you run the agent on one box and drive it from another. You bring your own model API key, or run a local model at no cost.
Paid: None from the project. Your only spend is model tokens (Anthropic, OpenAI, and so on). The paid alternatives are Cursor, GitHub Copilot, and Windsurf, which bundle a model and a GUI for a monthly seat.
The agent is free and MIT-licensed. You pay only for the model API tokens it consumes, or run a local model for nothing.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

An open-source AI coding agent that lives in your terminal.

⌥ AI Coding agent for the terminal — hash-anchored edits, optimized tool harness, LSP, Python, browser, subagents, and more

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.

DeepSeek + MiMo coding agent in terminal

SpaceXAI's coding agent harness and TUI. Fullscreen, mouse interactive, extensible.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT License
Use freely, including commercial. Just keep the license.
Commercial use: ✓ Yes
About
- Owner
- Anomaly (Organization)
- Stars
- 191,307
- Forks
- 24,399
Also by Anomaly
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
384.4k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
236.3k ★hermes-agent
The agent that grows with you
223.0k ★Featured in The Open Source Drop #7