GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing computingforgeeks.com — OpenCode vs Claude Code vs Cursor vs Codex CLI | ComputingForGeeks OpenCode and Claude Code attack the same job from opposite ends. OpenCode is an MIT-licensed terminal agent that talks to whatever model you connect, and Claude Code is Anthropic’s closed agent built around Claude. Cursor and Codex CLI now crowd the same opencode vs claude code decision, and the pick comes down to billing, sandboxing and whether you live in a terminal or an editor. Original content from computingforgeeks.com - post 165424We compare all four on install, pricing, MCP config, sandbox modes, local models and subagents. In October 2026 we installed OpenCode 2.2.5, Claude Code 2.1.316, Codex CLI 0.166.0 and the Cursor CLI on an Ubuntu 26.04 VM and ran the MCP, sandbox and local-model steps there against a small Ollama model. We checked every version and price against the vendors’ pages again on 5 November 2026. The one change sits with Cursor, whose Plus tier page now documents Grok models only. Sign-in flows and paid-model sessions were not run, and each one is marked where it appears. There are no benchmark numbers here; our execution test of six coding CLIs has those. Choose the Agent That Fits How You WorkStart from where you write code and who pays for the tokens, because those two facts rule out half the field before features matter. The short version, one line per tool:
If you already pay for ChatGPT Plus, Codex costs you nothing extra, and if you already pay for Claude Pro, Claude Code does not either. OpenCode is the one to run when you want to switch models without switching tools, or when the model has to run on your own hardware. Cursor wins only if you want the editor itself, since its CLI is a thin companion to the IDE rather than the main product. Check the Four Side by SideThe table holds the facts that decide most picks. Prices are the entry plan that includes the tool, in USD per month as listed on each vendor’s pricing page on 5 November 2026:
Two rows changed most since the first version of this comparison. Claude Code is no longer Claude-only in practice, because Ollama now exposes an Anthropic-compatible API, and Cursor moved to new plan names in which its cheapest paid tier cannot reach Claude or GPT at all. OpenCodeOpenCode is the open-source one, maintained by Anomaly at github.com/anomalyco/opencode with roughly 223,000 stars and an MIT license. The current line is OpenCode 2, which shipped 2.2.5 on 30 October 2026, and its install path differs from the 1.x line that most older tutorials (including our first pass at this page) used. Install OpenCode 2 with the script from the project README:
The script drops the binary in
On our VM it reported the 2.x line, not the 1.x builds older guides show.
The npm package is now
Inside the TUI, run The 2.x config format is where people trip. MCP servers now sit under Two primary agents ship by default and Tab switches between them. Build has full access, and Plan blocks file edits outside its own plan files, but in V2 Plan can still run shell commands without asking, because every agent starts from an allow-all policy. A general subagent handles multi-step searches and you call it with Where OpenCode falls short is guardrails. It has no OS-level sandbox, and the V2 default lets the agent edit files and run shell commands without prompting, so apart from a few built-in Claude CodeClaude Code is Anthropic’s agent, and it is the most opinionated of the four. Anthropic recommends the native installer, which needs no Node.js, over the npm package:
You should see the installer end with the version and the binary’s location.
The setup docs list Ubuntu 20.04 or Debian 10 and later with 4 GB of RAM, and apt, dnf and apk repositories exist if you prefer packages. You need a Claude Pro, Max, Ultra, Team or Enterprise plan, or a Console account billed per token, because the free Claude plan does not include Claude Code. Start it in a project directory:
The first run opens a browser sign-in, which we did not run here because it needs a paid plan. For CI, Its strength is the extension surface around the model. Hooks run your scripts before and after tool calls, subagents in The cost is lock-in to Anthropic’s terms and a closed codebase. Language-server support comes through code-intelligence plugins, which is now more than OpenCode 2 offers, since V2 keeps Codex CLICodex CLI is OpenAI’s terminal agent, written in Rust and released under Apache-2.0 at github.com/openai/codex. Release 0.166.0 landed on 29 October 2026. Install it with the official script, or with npm or Homebrew:
The package-manager equivalents install the same binary:
Pick one method. When we ran the script after an npm install, it warned that “Multiple managed Codex installs can be ambiguous because PATH order decides which one runs”, so remove the other copy first. Confirm the build:
You get the same build number as the release tag.
Sign in with
Codex reads
The fork and worktree pair is the one we’d use most, because it lets you try a second approach without losing the first. Our Codex CLI cheat sheet covers the full command set. One change catches people who followed older guides. The CursorCursor is still the only one of the four that gives you a full IDE. It is a VS Code fork with the agent built into the editor, so you get inline diffs you accept or reject line by line, Tab completion, the debugger and your extensions in one window. For frontend work where you want to see the change in context before it lands, that review loop is hard to beat from a terminal. The old “Cursor can’t run on a server” complaint is only half true now. The editor still needs a desktop, but the Cursor CLI installs on Linux, macOS, WSL and native Windows, and its binary is called
Cursor versions its CLI by build date rather than semver:
Ours was the 22 October build.
After Pricing is the part to read carefully. Cursor is now sold inside what its docs call The X Subscription, shared with Grok, and the cheapest paid tier (Plus at $8) reaches Grok models only. Claude, GPT and Gemini need Premium or higher and are billed at API list price from prepaid credit. Bring-your-own-key covers OpenAI, Anthropic, Google, Azure OpenAI and Bedrock for chat models only, and Cursor documents no route to a local model. Add an MCP Server in Each ToolAll four speak MCP, but each stores servers in a different file, so a team that mixes tools ends up maintaining four configs for the same server. To compare like for like, we add the remote Context7 docs server to each one. Claude Code takes the transport as a flag and writes to
It confirms the scope and the file it changed.
A project-scoped server doesn’t load until someone approves it, which stops a cloned repo from starting tools behind your back.
Codex writes a
Expect a surprise here. Codex saves the server, detects that Context7 supports OAuth and starts the login flow in the same command, so on a headless box the terminal sits waiting for a browser callback:
Codex has already saved the config at that point, so Ctrl+C is safe and
OpenCode 2 writes to the project config unless you add
It wrote
One quirk on 2.2.5: Cursor has no add command, so you edit the JSON yourself. Open the project file:
Add the server under
Like Claude Code, the Cursor CLI holds the server back until you approve it ( Control What Each Agent May RunThis is the biggest practical difference between the four, and it is where Codex leads. Codex runs every command inside an OS sandbox by default, using bubblewrap on Linux and Seatbelt on macOS, with network access off and
The 0.166.0 help lists
On our Ubuntu 26.04 VM with bubblewrap 0.11.1 it printed Claude Code leans on permission modes instead, with the OS sandbox as an opt-in. The 2.1.316 help lists the
Running If an agent will run unattended on a machine that holds credentials, we’d pick Codex’s defaults or Claude Code with Run Local and Open ModelsThree of the four can now drive a model on your own hardware, which changes the old verdict that only OpenCode works air-gapped. The route differs per tool, and so does how much of the agent survives a weaker model. We ran each route against Ollama 0.40.13 serving Codex has a dedicated
In our run,
Overriding the built-in provider with
Codex’s header confirms the custom provider and the read-only sandbox that
Put the same keys in a Claude Code reaches local models through Ollama’s Anthropic-compatible API. Ollama’s integration page offers
It printed no answer from the model, only this warning:
The most likely cause is the 1.7B model, which is far too small for Claude Code’s large system prompt and tool list, but we did not rerun it with a bigger model to prove that. Ollama recommends a context window of 64k tokens or more and a much larger model for this, so budget real hardware before planning on Claude Code offline. The same base-URL mechanism is how companies route Claude Code through an LLM gateway, and OpenCode 2 needs the least setup of the three, because Ollama and LM Studio are built-in providers. OpenCode probes Ollama on
Our small model chose to answer through a shell tool call, so you can see the Build agent run a command without asking.
The process did not exit after
Add the runtime under its own provider ID with the OpenAI-compatible package, following the 2.x
The model then appears as Run Subagents and AutomationAll four now run parallel or delegated work, but they put it in different places. Claude Code and Codex keep it local and scriptable, Cursor pushes it to its cloud, and OpenCode exposes a server you can attach clients to. For CI, the non-interactive entry points are what you will call from a pipeline:
Claude Code’s subagents are files in Choose a Pricing TierEvery price below comes from the vendor’s own pricing page or docs on 5 November 2026, in USD per month. Annual billing is cheaper on most of them, and all four change plans often, so check the page on the day you buy:
The cheapest serious setup depends on what you already pay for. A ChatGPT Plus subscriber gets Codex and can also sign OpenCode into the same plan, so that $20 covers two agents. A Claude Pro subscriber gets Claude Code, and OpenCode’s Claude Agent provider can reuse that login. Cursor’s $8 Plus tier looks cheap until you notice it cannot use Claude or GPT, which pushes most people who want those models to Premium at $30 plus credit. Use Them TogetherPlenty of teams end up running two of these, and a shared A common pairing is Cursor for day-to-day editing with a terminal agent for the long jobs: a multi-file refactor, a failing CI run, a migration across 40 Terraform modules. Codex fits that second slot well when the job runs unattended, because its sandbox is on by default, while Claude Code fits when you want hooks to enforce your rules on every tool call. For infrastructure work specifically, our guide on AI coding agents for Terraform, Ansible and Kubernetes shows those agents on real configs. OpenCode earns its place next to either one when you want a second opinion from a different model family on the same diff, or a local model for code that must not leave the network. Budget is the real limit: two subscriptions plus API spend adds up fast, so pick one primary agent and keep the second for the jobs it does better. If you want the commands for all of them on one page, the free cheat sheet pack includes the OpenCode CLI cheat sheet alongside the Claude Code and Codex ones.
Josphat Mutai
Founder of Computingforgeeks. Senior Systems Engineer with over a decade of hands-on experience building and managing production infrastructure. Core expertise in Linux/UNIX administration, cloud platforms (AWS, GCP, Azure), and Kubernetes ecosystems (EKS, GKE, OpenShift). Deep experience with virtualization (KVM, Proxmox, OpenStack), infrastructure as code (Terraform, Terragrunt, Ansible, Crossplane), GitOps workflows (ArgoCD, FluxCD), Nix/NixOS, and container orchestration at scale. Currently focused on integrating AI and LLMs into DevOps and platform engineering workflows. Every guide on this site is tested on real systems before publishing. Keep reading
AI
Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF)
AI
Open Source LLM Comparison Table (2026)
AI
Claude Code Cheat Sheet: Commands, Shortcuts and Flags (PDF)
AI
OpenClaw Security Hardening with Ollama: Sandbox, Tools, Skills
AI
DeepSeek Harness Cheat Sheet: dsh Commands, Config, Errors (PDF)
Automation
Dagger vs GitHub Actions: When to Use What
Leave a Comment Cancel reply
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |