aicoolies logo
OpenCode logo

OpenCode

Recommended

Open-source AI coding agent for the terminal

Share
open-source
Visit Website →

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.

We have a review for this tool

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

Free (bring your own API key)

Platforms

macOS, Linux, Windows, Desktop app

Categories

Tags

Use Cases

Alternatives

Related Tools

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

paidOpen Source
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
Hermes Agent logo

Hermes Agent

Top Pick

Open-source AI agent framework with persistent memory, reusable skills, tools, and messaging gateways

Hermes Agent is an open-source AI agent framework with persistent memory, reusable skills, 40+ tools, cron jobs, and messaging gateways.

open-sourceOpen Source
pi dev code

Pi

Top Pick

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-sourceOpen Source

Accomplish Coworker

Open-source desktop AI coworker for browsing and code execution.

Accomplish Coworker is an MIT-licensed open-source AI coworker that runs on the desktop, combining computer-use style browsing with code execution so agents can research, implement, run, and debug workflows in one local environment.

open-sourceOpen SourceTelemetry

Comparisons

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