Skip to content

Four-Engine Comparison Matrix

Cursor vs Claude Code vs OpenCode vs Codex — side-by-side reference for all GolemBot-supported engines.

Basic Properties

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
TypeIDE companion CLIOfficial CLI AgentStandalone open-source AgentOpenAI official CLI Agent
Open sourceNoNoYes (Apache-2.0)Yes (Apache-2.0, Rust)
LLM supportCursor backend (with routing)Anthropic models only75+ ProvidersOpenAI models (codex-1, codex-mini-latest, etc.)
Installationcurl https://cursor.com/install -fsS | bashnpm i -g @anthropic-ai/claude-codenpm i -g opencode-ainpm i -g @openai/codex
Binary nameagentclaudeopencodecodex
PTY requirementNot needed (child_process.spawn)Not needed (child_process.spawn)Not needed (child_process.spawn)Not needed (child_process.spawn)

Invocation Methods

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
Non-interactive commandagent -p "prompt"claude -p "prompt"opencode run "prompt"codex exec "prompt"
JSON output flag--output-format stream-json--output-format stream-json--format json--json (flag after exec)
Model selection--model <alias>--model <alias>--model provider/model--model <id>
Permission bypass--force --trust --sandbox disabled--dangerously-skip-permissionsPermission config "*": "allow"--full-auto or --yolo
Core headless params--approve-mcps--dangerously-skip-permissionsPermission config "*": "allow"--full-auto
Verbose outputDefault--verbose (required)DefaultGoes to stderr automatically

Session Management

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
Resume specific session--resume <uuid>--resume <uuid>--session <ses_xxx>codex exec resume <thread_id> "prompt"
Resume most recent--resume--continue--continuecodex exec resume --last "prompt"
Fork sessionNot supported--fork-session--forkcodex fork (TUI only)
Export sessionNot supportedNot supportedopencode export <id>Not supported
Session ID formatUUIDUUIDses_XXXXXXXXUUID (thread_id from thread.started event)
Session storage~/.cursor/~/.claude/~/.local/share/opencode/~/.codex/sessions/
Skip persistenceNot supportedNot supportedNot supported--ephemeral

Authentication

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
API Key variableCURSOR_API_KEYANTHROPIC_API_KEYDepends on ProviderOPENAI_API_KEY / CODEX_API_KEY
Local loginagent login (browser OAuth)claude auth loginopencode auth logincodex login (browser or --with-api-key)
Subscription supportNative (Cursor Pro)OAuth + apiKeyHelperNot applicableChatGPT subscription (OAuth)
CI/CD authCURSOR_API_KEYANTHROPIC_API_KEYProvider-specific env varprintenv OPENAI_API_KEY | codex login --with-api-key
OpenRouterNot supportedNot natively supportedNatively supported (OPENROUTER_API_KEY)Not supported

Skill / Rules System

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
Skill path.cursor/skills/.claude/skills/.opencode/skills/ + .claude/skills/ + .agents/skills/No dedicated skill path
Rules file.cursor/rules/*.mdcCLAUDE.mdAGENTS.md (preferred) / CLAUDE.mdAGENTS.md (auto-discovered root → cwd)
Rules fallback configNot supportedNot supportedNot supportedproject_doc_fallback_filenames in config.toml
Skill formatSKILL.mdSKILL.mdSKILL.md (with frontmatter)No dedicated format (embed in AGENTS.md)
On-demand loadingYes (Agent auto)Yes (Agent auto)Yes (via skill() tool)Not applicable
Global skills~/.cursor/skills/~/.claude/skills/~/.config/opencode/skills/~/.codex/AGENTS.md

Tools & Extensions

DimensionCursor AgentClaude CodeOpenCodeCodex CLI
Built-in toolsIDE integratedbash/read/write/edit/grep, etc.bash/read/write/edit/grep/glob, etc.bash/read/write/edit, etc.
MCP support.cursor/mcp.json.claude/mcp.jsonopencode.json~/.codex/config.toml (via mcp command)
Web searchNot supportedNot supportedNot supported--search flag
Image inputNot supportedNot supportedNot supported--image <path>
SubagentsNot supportedNot supportedexplore, general (parallelizable)Codex Cloud (async tasks)
GitHub ActionsSupported (curl https://cursor.com/install)Supported (official Action)Supported (official Action)Supported (npm i -g @openai/codex)
HTTP Server APINot supportedNot supportedFull OpenAPI (opencode serve)App Server (JSON-RPC 2.0 over stdio)
TypeScript SDKNot supportedNot supportedNot supported@openai/codex-sdk (Node 18+)

GolemBot Engine Integration

DimensionCursorEngineClaudeCodeEngineOpenCodeEngineCodexEngine
Spawn methodchild_process.spawnchild_process.spawnchild_process.spawnchild_process.spawn
Parser functionparseStreamLine()parseClaudeStreamLine()parseOpenCodeStreamLine()parseCodexStreamLine()
Skill injectionsymlink → .cursor/skills/symlink → .claude/skills/ + CLAUDE.mdsymlink → .opencode/skills/AGENTS.md at workspace root
Config generation.cursor/cli.jsonCLAUDE.mdopencode.json~/.codex/config.toml (optional)
API Key injectionCURSOR_API_KEYANTHROPIC_API_KEYProvider-specific env varOPENAI_API_KEY
Session ID sourcedone event sessionId fielddone event sessionId fielddone event sessionId fieldthread.started event thread_id field
Cold startFast (~1s)Moderate (~2-3s)Slow (5-10s, HTTP serve mode recommended)Moderate (~2-3s)
Cost trackingduration_mstotal_cost_usd + num_turnscost + tokens (with cache breakdown)usage.input_tokens + usage.output_tokens (no cost)

Released under the MIT License.