Tools/anomalyco/opencode

opencode

The open source coding agent.

191.3k+2.2k/wkestablishedTypeScriptMIT Licensetrending

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 free

Free 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.

Self-hosting ops:trivial
View pricing page →

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
95/100 · A+
Adoption30/30
Maintenance25/25
Community15/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 148,476 starsActive community: 17,007 forksOrganization account (65 public repos)Notable author: 4,123 followersAuthor also built: anomalyco/opencode-beta (178 stars)

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

Featured in The Open Source Drop #7