aicoolies logo
OpenCode logo
OpenCode logo

OpenCode

Open-source AI coding agent for the terminal

open sourceverified Jul 8, 2026

Open-source terminal-based AI coding agent built in Go by the SST team, with a rich TUI (Bubble Tea) supporting 75+ model providers including OpenAI, Anthropic, Gemini, Bedrock, Groq, and OpenRouter. Features vim-like editing, persistent SQLite sessions, and LSP integration for 40+ languages. Fully free with no vendor lock-in, it has rapidly grown to 95k+ GitHub stars.

Read our OpenCode review

A detailed review by the aicoolies team — click to read

OpenCode is an open-source, terminal-based AI coding agent built in Go that provides a rich TUI for interacting with AI models to perform code generation, debugging, refactoring, and development automation, created by the team at SST and released in late 2025. It solves the problem of vendor lock-in in AI coding tools by supporting over 75 model providers including OpenAI, Anthropic, Google Gemini, AWS Bedrock, Groq, Azure OpenAI, and OpenRouter, all through a single free tool with no subscription fees. OpenCode has rapidly gained over 95,000 GitHub stars, becoming one of the most popular open-source AI coding agents.

OpenCode offers an interactive TUI built with Bubble Tea, vim-like editing capabilities, persistent SQLite storage for session management, and Language Server Protocol integration supporting 40+ built-in LSP servers for TypeScript, Python, Go, Rust, Java, and more. The tool allows AI to execute commands, modify files, and reason about code structure with full project context, while developers maintain control through review and approval workflows. Unlike subscription-based competitors, OpenCode lets developers bring their own API keys or run local models through Ollama at zero API cost.

OpenCode targets developers who want a powerful, free, and open-source alternative to proprietary AI coding agents like Claude Code, with the flexibility to choose any AI model provider based on performance, cost, or privacy requirements. It is particularly popular among developers who prefer terminal-based workflows, those running local models for offline or air-gapped development, and cost-conscious teams who want enterprise-grade AI coding assistance without monthly subscriptions. OpenCode's MIT license and active community make it a practical foundation for customization and extension.

Pricing

Open-source MIT client with free models included or bring-your-own provider/model keys; enterprise options are handled through OpenCode Enterprise.

Platforms

macOS, Linux, Windows, Desktop app

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

Open Source
Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

paid
Cursor logo

Cursor

Top Pick

The AI-first code editor

AI-first code editor built as a VS Code fork that deeply integrates LLMs into every part of the development workflow. Features Tab autocomplete with multi-line predictions, Cmd+K inline editing, AI chat with full codebase awareness, and Agent mode for autonomous multi-file edits with terminal execution. Supports GPT-4, Claude, and more with automatic context from project files and docs. Includes privacy mode for SOC 2 compliance. The leading AI-native IDE with 100K+ paying users.

freemiumTelemetry
Every Code logo

Every Code

Community fork of Codex CLI with Auto Drive, browser integration, and multi-agents

Open-source terminal coding agent (npm `@just-every/code`) — a substantive community fork of OpenAI's Codex CLI adding Auto Drive orchestration, browser/CDP integration, multi-agent commands, theming, and Auto Review, while staying upstream-compatible.

freeOpen Source
Nanocoder parent Nano Collective mark

Nanocoder

Community-built, local-first terminal coding agent — bring your own model

An open-source terminal coding agent from the non-profit Nano Collective. Runs agentic coding on the model of your choice — local via Ollama or any OpenAI-compatible API — with no paid tiers and nothing gated behind a vendor.

freeOpen Source

Used in Stacks

Comparisons

OpenCode vs Cursor: Open-Source Coding Agent or AI-First Editor?

Cursor is the stronger default for teams that want a polished AI-native editor, managed agent limits, cloud agents, review workflows, and a familiar VS Code-style onboarding path. OpenCode is the better fit for open-source, terminal-first users who want MIT-licensed code, provider choice, and local/control-plane flexibility.

OpenCodeCursor

OpenCode vs Qwen Code — Model-Agnostic Control vs Qwen-Native Agent Workflow

OpenCode and Qwen Code are both open-source terminal coding agents, but they optimize for different decisions. OpenCode is the stronger default when you want provider choice, local/BYOK flexibility, and a mature multi-model terminal workflow. Qwen Code is compelling when your team wants a Qwen3-Coder-optimized agent with a generous free request story and an Alibaba-aligned model path.

OpenCodeQwen Code

OpenCode vs Codex: Open Provider Choice or OpenAI’s Coding Agent Stack?

OpenCode and Codex are both terminal-first coding agents, but the trade-off is openness and provider choice versus OpenAI’s integrated Codex stack. OpenCode lets teams bring many LLM providers and local models through configuration; Codex pairs a Rust CLI with ChatGPT plans, OpenAI models, sandboxing, and cloud/IDE options. Choose based on model control, billing, and enterprise workflow fit.

OpenCodeCodex

Hermes Agent vs OpenCode: Coding Agent or Persistent AI Workflow Agent?

OpenCode and Hermes Agent both appeal to developers who want open, tool-using AI agents, but they optimize for different jobs. OpenCode is a focused terminal-first coding agent. Hermes Agent is broader: a persistent workflow agent with memory, reusable skills, scheduled jobs, messaging gateways, and multi-system automation for work that extends beyond the repository.

Hermes AgentOpenCode

OpenCode vs Aider — Open-Source Terminal AI Coding Agents Compared

OpenCode and Aider are both open-source terminal-native AI coding agents, but they take very different approaches. OpenCode emphasizes a plan-first methodology with 75+ model integrations and parallel sessions across 95K+ stars. Aider focuses on deep Git integration where every edit is a commit and every session is a branch, with 39K+ stars and 4.1 million installs processing 15 billion tokens weekly.

OpenCodeAider

Claude Code vs OpenCode — Terminal-Native AI Coding Agents for Developers Compared

Claude Code and OpenCode are two terminal-native AI coding agents that give developers agentic capabilities directly from the command line. Claude Code, built by Anthropic, leverages Claude's deep reasoning with full system access and a $20-100/month subscription. OpenCode is an open-source MIT-licensed alternative with 95K+ GitHub stars, a plan-first methodology, and 75+ LLM provider integrations at zero platform cost.

Claude CodeOpenCode

FAQ

What is OpenCode?

Open-source terminal-based AI coding agent built in Go by the SST team, with a rich TUI (Bubble Tea) supporting 75+ model providers including OpenAI, Anthropic, Gemini, Bedrock, Groq, and OpenRouter. Features vim-like editing, persistent SQLite sessions, and LSP integration for 40+ languages. Fully free with no vendor lock-in, it has rapidly grown to 95k+ GitHub stars.

Is OpenCode free?

Yes — OpenCode is open source and free to use. Open-source MIT client with free models included or bring-your-own provider/model keys; enterprise options are handled through OpenCode Enterprise.

Is OpenCode open source?

Yes — OpenCode is open source.

Is OpenCode still maintained?

Yes — OpenCode is active. Its listing was last verified on July 8, 2026.

What are the best OpenCode alternatives?

The top editor-verified OpenCode alternatives are Codex, Goose, Serena.

How does OpenCode score in our review?

Our hands-on review scores OpenCode 83/100 overall, based on speed, privacy, and developer-experience testing.