Skip to content
aicoolies logo
OpenCode logo

OpenCode

Open-source AI coding agent for the terminal

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.

About OpenCode

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 & Platform Specs

Pricing Summary

OpenCode is 100% free and open-source under the MIT license with $0 software licensing fees. Developers can run local models via Ollama at zero marginal cost, configure their own BYOK API keys across 75+ providers paying token costs directly to model providers, or optionally route requests through the OpenCode Zen pay-as-you-go gateway.

full pricing breakdown →

Supported Platforms

macOS, Linux, Windows, Desktop app

Explore categories, tags & use cases
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

paid

Open-source extensible AI agent by Block

Autonomous coding agent from Block (Square) that works with any LLM through MCP-first extensibility. Apache 2.0 licensed with 47K+ GitHub stars and a Linux Foundation AAIF founding project. Designed for terminal-based workflows with deep tool integration, making it a strong open-source option for developers who want agent-assisted coding without vendor lock-in.

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.

freemium

Minimal terminal coding harness

Pi Coding Agent is an MIT-licensed Node.js CLI from earendil-works for building and running coding agents in a local terminal. The current package describes a read/bash/edit/write toolset and session management, while the repo positions Pi as a unified LLM API, agent loop, TUI, and coding-agent CLI. It is best framed as a lean, self-extensible BYO-model toolkit rather than a managed IDE.

Open Source

AI pair programming in your terminal

Terminal-based AI pair programmer with deep git integration. Auto-commits changes with meaningful messages and creates repository maps for navigating large codebases. Works with Claude, GPT, DeepSeek, and local models. One of the most popular open-source AI coding tools, known for its reliability, broad model support, and seamless command-line workflow.

Open Source
Amp logo

Amp

Top Pick

Agentic coding tool by Sourcegraph (formerly Cody)

Amp is a multi-model coding agent for terminal, web, macOS/iOS, and IDE-connected workflows. Vendor docs describe the same agent and threads across surfaces, with remote Orbs, local Runners, Dial modes (low / medium / high / ultra), shared threads, MCP, plugins, and BYOK / linked ChatGPT subscriptions. Pricing spans a free Hobby tier, optional Megawatt ($20/mo) and Gigawatt ($200/mo) Individual plans, no-extra-charge Teams workspaces, pay-as-you-go credits, and Enterprise.

freemium

Side-by-Side Comparisons

OpenCode logo
OpenCode
vs
Cline logo
Cline

OpenCode vs Cline — Terminal Coding Agent or VS Code HITL Agent?

OpenCode and Cline both deliver open-source agentic coding help, but they live in different shells. OpenCode is an MIT coding agent spanning terminal, IDE extension, and desktop, with any-provider models and a polished coding-agent loop. Cline is an Apache-2.0 coding agent for editor, terminal, and SDK workflows that reads and edits files, runs commands, and asks for explicit approval unless you enable auto-approve. Existing Scores: OpenCode overall 83 (Score date 2026-09-05); Cline overall 84 (Score date 2026-03-25). Overall is close; choose on terminal coding-agent DX vs editor human-in-the-loop control. Treat the scoreboard as review evidence with those dates, not the whole decision.

OpenCodeCline
goose ai
Goose
vs
OpenCode logo
OpenCode

Goose vs OpenCode: Local MCP Agent or Open-Source Coding Agent?

Goose and OpenCode both run open-source AI agents that help developers ship work from the terminal, but they emphasize different product shapes. Goose is an open-source, model-agnostic local agent from the Agentic AI Foundation (AAIF) lineage — Desktop, CLI, and API — built around MCP extensions, recipes, and BYOK or local Ollama. OpenCode is an open-source coding agent spanning a terminal interface, IDE extension, and desktop app, with any-provider models and a polished coding-agent loop. Use Goose when you want a privacy-forward local agent with deep MCP extensibility across code and broader workflows. Use OpenCode when you want a coding-agent surface across terminal, IDE, and desktop with strong day-to-day developer experience. Existing aicoolies Scores: Goose overall 84, speed 80, privacy 95, developer experience 78 (Score date 2026-03-29); OpenCode overall 83, speed 81, privacy 90, developer experience 86 (Score date 2026-09-05). Overall is close; choose on product shape first, and treat the scoreboard as secondary review evidence with those dates.

GooseOpenCode
Grok logo
Grok Build
vs
OpenCode logo
OpenCode

Grok Build vs OpenCode — xAI Parallel Terminal Agent or Open-Source CLI?

Grok Build and OpenCode both run as terminal-first agentic coding tools, but they optimize for different constraints. Grok Build is xAI’s commercial CLI with plan mode, subagents, worktree-aware automation, and parallel implementation attempts. OpenCode is an MIT-licensed terminal agent from the SST team with a polished TUI, broad provider support, and no software license fee. This comparison is for developers choosing between an xAI-native automation lane and an open, provider-agnostic CLI. The scores below come from existing aicoolies reviews: Grok Build (Score date 2026-05-28) and OpenCode (Score date 2026-09-05). This page compares documented reviews and does not include a new head-to-head test.

Grok BuildOpenCode
OpenCode logo
OpenCode
vs
Cursor logo
Cursor

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
View 5 more comparisons

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

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. OpenCode is 100% free and open-source under the MIT license with $0 software licensing fees. Developers can run local models via Ollama at zero marginal cost, configure their own BYOK API keys across 75+ providers paying token costs directly to model providers, or optionally route requests through the OpenCode Zen pay-as-you-go gateway.

Is OpenCode open source?

Yes — OpenCode is open source.

Is OpenCode still maintained?

Yes — OpenCode is active. Its listing was last verified on September 3, 2026.

What are the best OpenCode alternatives?

The first editor-selected OpenCode alternatives are Codex, Goose, Claude Code, and more.

How does OpenCode score in our review?

The published editorial review lists OpenCode at 83/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.