Stack Gems
Menu

Alternatives · Coding Agents

OpenCode alternatives (2026)

OpenCode: MIT BYOK agent across CLI/desktop/IDE. The real catches are on /log: date stamp and compaction.

Its Catch: Two catches worth reading on /log: “The date stamp is a trigger channel” (auto today’s-date × open-weight LoRA as a time-release fuse) and “Compaction ate the denial” (long sessions prune hard vetoes; compaction is untrusted rewrite).

Below: 8 free or free-tier tools from the same category (coding agents), free and open source first, then the closest match by shared tags. Each keeps its own Catch.

  1. 1.Codex-XCodex-specific desktop and CLI workspace for visual configuration and MCP skills

    Free / OSS · OSS/MIT · 4.2k GitHub stars

    VerdictMIT Codex desktop/CLI companion. Handy for visual MCP and skills configuration; audit auth, relay endpoints, and unrestricted templates before trusting it.

    CatchVs T3 Code: Codex-X is Codex-specific visual configuration plus MCP/skills, not a broad remote coding environment or an independent coding model. It handles `auth.json`, supports third-party relays, and allows unrestricted prompt templates — review where credentials go, which endpoint receives requests, and what instructions can execute before using a release. Treat relays as a trust decision, not a convenience toggle.

  2. 2.Apache MakaApache-2.0 local-first agent workspace that logs every step

    Free / OSS · Apache-2.0 · 5.8k GitHub stars

    VerdictThe agent harness to try when you need to see and replay what the agent actually did — treat it as nightly software for now.

    CatchEarly. The latest Apache release is 0.2.0 (incubating); the npm package maka-agent ships real builds under the nightly tag while latest is still a placeholder, and the CLI README warns that commands and local data formats may change. macOS is the main platform; Windows and Linux are previews. API keys are stored in a plaintext credential-vault.json readable by your OS account, and an upgrade has already dropped older JSONL transcripts. Vs opencode or Claude Code: you are picking it for the audit log and replay, not for a bigger ecosystem. Stars have climbed fast for a five-month-old repo (about 290 a week since it opened in May 2026), so don't read the count as proof of adoption.

  3. 3.OpenAI Codex CLIApache-2.0 OpenAI agent: CLI, IDE, app and cloud

    Free / OSS · Freemium · 130k GitHub stars

    VerdictOpenAI’s answer to terminal agents — open CLI, paid models; budget the plan or the API.

    CatchThe CLI is open source, but the models are not free: you pay through ChatGPT plan quotas or API spend. Codex Web runs on OpenAI’s cloud, not on your machine. The install.sh, brew and npm routes are supply-chain choices, so pin a release binary when that matters. Vs Claude Code or OpenCode: this is OpenAI’s first-party agent, tied to ChatGPT plans or OpenAI API keys.

  4. 4.Kilo CodeMIT OSS IDE+CLI agent; active Cline/Roo line + MCP marketplace

    Free / OSS · OSS/MIT · 27.7k GitHub stars

    VerdictMIT IDE+CLI agent with MCP marketplace. Roo’s active heir, not a second OpenCode.

    CatchPitch IDE+platform, not “another OpenCode.” Gateway/account is convenience; BYOK stays. Marketplace and modes are the differentiator vs plain CLI harnesses. Enterprise governance rides Anaconda — evaluate if that middle layer matters for your org.

  5. 5.Open Code ReviewApache-2.0 hybrid deterministic+LLM review agent (MCP/plugins)

    Free / OSS · Apache-2.0 · 47.6k GitHub stars

    VerdictApache-2.0 hybrid review agent. Deterministic+LLM vs Semgrep/Gitleaks and vs general coding agents; BYO LLM.

    CatchVs Semgrep/Gitleaks (deterministic SAST/secrets): OCR adds an LLM agent layer for context-heavy review, not a drop-in replacement for static rules alone. Vs Claude Code/SWE-agent/OpenHands (general coding agents): OCR is a purpose-built review harness, not a full autonomous coder. BYO LLM cost — you bring the model endpoint and pay the provider; the OSS CLI itself is free.

  6. 6.PiMIT agent harness with coding CLI, unified LLM API, and TUI

    Free / OSS · OSS/MIT · 116k GitHub stars

    VerdictMIT coding-agent harness. Strong default when you want an OSS CLI + unified providers; sandbox it yourself before production credentials.

    CatchVs Prime Agent, OpenCode, OpenHands, and Claude Code: Pi is the Earendil coding-agent harness + CLI stack, not PrimeIntellect's RLM REPL, a general terminal wrapper, a full autonomous developer platform, or Anthropic's product CLI. Pi does not ship a built-in permission system for filesystem/process/network/credentials — it runs with the launching user's privileges; containerize (Docker/OpenShell/Gondolin patterns in-repo) before giving it secrets. New issues/PRs from new contributors are auto-closed by default pending maintainer review.

  7. 7.ZCodeApache coding workspace — desktop, web, and zcode Agent CLI

    Free / OSS · Apache-2.0 · 7.9k GitHub stars

    VerdictApache coding workspace when you want desktop+web+CLI from one OSS tree and can accept Z.ai product edges.

    CatchVs Claude Code, Pi, and OpenCode: ZCode is Z.ai’s full workspace stack, not Anthropic’s product CLI, Earendil’s harness, or a pure terminal OSS agent. Bootstrap is heavy (pinned Node/pnpm, desktop/runtime assets); some OAuth/product routes still point at Z.ai services. Chinese/English docs mix — English README.en.md is the clearer entry.

  8. 8.CLI-AnythingApache hub that makes arbitrary software agent-native via CLI surfaces

    Free / OSS · Apache-2.0 · 54.8k GitHub stars

    VerdictApache agent-native CLI hub when the bottleneck is “the software has no agent API”; skip if you only needed browser control or a thin argv parser.

    CatchVs agent-browser and aclif: this is a CLI-surface generator/hub for arbitrary apps, not a browser automation agent and not a generic CLI framework alone. Many hub CLIs assume heavy upstream installs (GIMP, Blender, GIS, DAWs); star velocity is extreme (~50k) — budget the host apps, not only the thin CLI wrapper.

FAQ

What are the best free alternatives to OpenCode?
Codex-X, Apache Maka, OpenAI Codex CLI, Kilo Code, Open Code Review. All are reviewed on Stack Gems in the same category (coding agents); 8 free or open source.
What is the catch with OpenCode?
Two catches worth reading on /log: “The date stamp is a trigger channel” (auto today’s-date × open-weight LoRA as a time-release fuse) and “Compaction ate the denial” (long sessions prune hard vetoes; compaction is untrusted rewrite).
Is there an open-source alternative to OpenCode?
Yes: Codex-X (OSS/MIT), Apache Maka (Apache-2.0), OpenAI Codex CLI (Freemium), Kilo Code (OSS/MIT).

More