DEV Community

Max Quimby
Max Quimby

Posted on • Originally published at agentconn.com

OpenCode Review: The Open-Source AI Coding Agent That Took #1 on Hacker News

OpenCode open source AI coding agent terminal interface

When an open-source project hits 1,099 points and 546 comments on Hacker News in a single day, it is not a fluke. It is a signal that the developer community has been waiting for exactly this.

OpenCode โ€” the open-source AI coding agent built by Anomaly โ€” crossed that threshold on March 20, 2026, becoming the #1 post on Hacker News. With 120,000 GitHub stars, 800 contributors, and over 5 million monthly developers, OpenCode has quietly become the most popular open-source alternative to Claude Code and Codex CLI. And the HN thread reveals exactly why developers are so passionate โ€” and so conflicted โ€” about it.

๐Ÿ“Š OpenCode by the numbers: 120K GitHub stars ยท 800 contributors ยท 5M monthly developers ยท 1,099 HN points ยท 546 HN comments ยท Built by Anomaly (creators of terminal.shop)

What OpenCode Is โ€” And What Problem It Solves

OpenCode is a terminal-based AI coding agent that works with any LLM provider. Unlike Claude Code (locked to Anthropic) or Codex CLI (locked to OpenAI), OpenCode is provider-agnostic by design. You can connect Claude, GPT, Gemini, local models, or even use OpenCode's own curated "Zen" model tier โ€” all from the same interface.

The project is built by Anomaly, the team behind terminal.shop, and includes several people from the Charm ecosystem โ€” the creators of Bubble Tea, the Go TUI framework that powers many modern terminal apps.

Core capabilities:

  • Multi-provider support โ€” Claude 4 Opus, GPT-5.4, Gemini 2.5 Pro, and 75+ models through Models.dev
  • LSP integration โ€” Automatic language server loading for intelligent code assistance
  • Multi-session โ€” Run multiple agents in parallel on the same project
  • Session sharing โ€” Generate shareable links to any coding session
  • GitHub Copilot/ChatGPT login โ€” Use existing subscriptions directly
  • Build and Plan modes โ€” Toggle between full execution and read-only analysis
  • Client/server architecture โ€” Run OpenCode on one machine, drive it from another
  • Desktop app and IDE extension โ€” Not just a terminal tool anymore

For a comprehensive overview of the AI coding agent landscape, see our complete guide to AI coding agents.

Why Hacker News Went Wild

The HN thread is a goldmine โ€” not because everyone loved OpenCode, but because it triggered the exact debates that define the AI coding tool landscape in 2026.

1. The Open-Source Freedom Argument

The most upvoted sentiments were variations of: finally, a real open-source alternative. Developers are increasingly uncomfortable with the vendor lock-in of Claude Code and Codex CLI. When your entire coding workflow depends on a proprietary tool tied to a single model provider, you are one pricing change away from rebuilding your muscle memory.

2. The Performance and Quality Debate

The thread became a battleground between Claude Code, Codex CLI, and OpenCode users arguing about resource usage, code quality, and TUI polish.

"Claude Code was using multiple GBs of RAM and 100% CPU whereas Codex was happy with 80 MB and 6%. Performance is a feature." โ€” HN commenter

One commenter noted that OpenCode "often uses 1GB of RAM or more. For a TUI." Another described the project's development practices as "suboptimal at best," citing a release cadence so fast that features break between versions.

3. The Privacy Controversy

Perhaps the most alarming finding: OpenCode was sending prompts to Grok's free tier by default for session title generation, even when users configured only local models. One developer ran it through mitmproxy and discovered the hidden API call.

โš ๏ธ Privacy alert (now resolved): OpenCode v1.2.20 silently sent prompts to an external model for title generation, even when only local models were configured. This was fixed in v1.2.23.

This is the double-edged sword of open source: the problem was found because the code was auditable.

Installation and First Impressions

# One-liner install
curl -fsSL https://opencode.ai/install | bash

# Or via package managers
npm i -g opencode-ai@latest
brew install anomalyco/tap/opencode
Enter fullscreen mode Exit fullscreen mode

The TUI itself is ambitious. Built with Bubble Tea, it offers a vim-like editor, file change tracking, session management, and a split between Build and Plan modes. Plan mode is particularly useful โ€” it disables file modifications and lets the agent analyze without touching anything.

What impressed us: Multi-session capability โ€” running a planning agent and a build agent simultaneously on the same project.

What did not: The interface can feel overloaded. There are enough keybinds, commands, and modes that the learning curve is steeper than Claude Code's minimalist approach.

OpenCode running with Gemini 2.5 Pro โ€” showcasing the TUI and multi-model workflow.

Head-to-Head: OpenCode vs Claude Code vs Codex CLI vs GSD 2

For our detailed breakdown of the commercial options, see our GSD 2 vs Claude Code vs Codex CLI comparison.

Where OpenCode Wins

Provider freedom. No other coding agent CLI lets you switch between Claude, GPT, Gemini, and local models from the same interface.

Cost. OpenCode itself is free. You pay only for the API calls you make.

Customizability. Custom commands, configurable shells, MCP server integration, and LSP configuration โ€” more knobs than any competitor.

Client/server architecture. Run the agent on a powerful machine and drive it from your laptop or phone.

Where OpenCode Trails

Model quality ceiling. When you run OpenCode with Claude Sonnet 4, you get the same model โ€” but without Anthropic's agent-specific optimizations and prompt engineering.

Stability. The fast release cadence means breakage is common. Claude Code and Codex CLI offer more predictable day-to-day experiences.

Ecosystem and integrations. Claude Code's remote tasks, MCP ecosystem, and deep git integration are more mature.

Resource efficiency. Multiple HN commenters reported 1GB+ RAM usage โ€” hard to justify when Codex CLI achieves similar functionality at 80MB.

๐Ÿ” Quick comparison:

  • OpenCode: Open source, any model, free, feature-rich but rough edges
  • Claude Code: Best single-model experience, deep Anthropic integration, closed source
  • Codex CLI: Rust performance, OpenAI ecosystem, client/server architecture
  • GSD 2: Meta-prompting orchestrator, multi-milestone automation

The broader AI developer tools landscape โ€” context for where OpenCode fits.

Who Should Use OpenCode โ€” And When

Use OpenCode if:

  • You want model flexibility across providers
  • You are cost-sensitive โ€” free tool + API-only pricing
  • You work in privacy-sensitive environments with local-only inference
  • You are a terminal power user who wants maximum customizability
  • You need multi-session workflows

Stick with Claude Code if:

  • Code quality is your top priority
  • You need remote tasks and the Anthropic agent platform
  • Stability matters more than customizability

Choose Codex CLI if:

  • Performance and resource efficiency are paramount
  • You are already in the OpenAI ecosystem

The Bigger Picture

OpenCode's 120K stars are a referendum on the state of AI developer tooling. Developers want options, transparency, and tools that respect their workflows.

The HN response says that the demand for an open, provider-agnostic coding agent is enormous. Whether OpenCode specifically becomes the long-term winner depends on whether the team can mature its development practices without losing the velocity that got it here.

For more on how open-source frameworks are shaping the agent ecosystem, see our guide to the best open-source AI agent frameworks in 2026.

The open-source AI agent ecosystem is entering its competitive phase. And based on what we have seen, that is exactly where it needs to be.


Originally published on AgentConn.

Top comments (0)