OpenAI Codex vs Cursor CLI vs Claude Code: Running Terminal Coding Agents on a VPS

Compare OpenAI Codex, Cursor CLI, and Claude Code on a Cloud Server across accounts, code review, headless CI commands, tmux workflows, and pricing.

The XVer team 4 min read 10 min to do Beginner

Also in ภาษาไทย

On this page
  1. Side-by-side comparison
  2. Codex: OpenAI's open-source CLI for reviews and CI
  3. Cursor CLI: terminal speed with Cloud Agent handoff
  4. Why developers move coding agents onto a VPS with tmux
  5. Choosing among the big three
  6. Server sizing and costs
  7. Frequently asked questions

OpenAI Codex, Cursor CLI, and Claude Code are the three commercial terminal coding agents developers deploy on a Cloud Server most often. All three inspect repositories, edit multiple files, and run shell tests, yet they differ clearly in login requirements, review ergonomics, CI automation, and remote handoff.

Side-by-side comparison#

Facts verified against the official documentation of OpenAI, Cursor, and Anthropic.

Area Codex Cursor CLI Claude Code
Maintainer OpenAI (open-source CLI on GitHub (opens in a new tab)) Anysphere (cursor.com/cli (opens in a new tab)) Anthropic (claude.com (opens in a new tab))
Command codex cursor-agent claude
Billing / login ChatGPT account or OpenAI API key Cursor account or Cursor API key Paid Claude plan or Anthropic API key
Project instructions AGENTS.md (via /init) Cursor project rules CLAUDE.md, skills, and hooks
Planning & review /review checks uncommitted diffs or commits read-only Plan/Ask modes and Ctrl + r per-file review Auto/Manual permission modes
Headless & CI codex exec cursor-agent -p (text or JSON output) Print mode for scripts and CI
Continuity / remote codex resume reloads project threads Prefix with & to hand off to Cursor Cloud Agent /remote-control from the Claude app

Codex: OpenAI's open-source CLI for reviews and CI#

Codex fits cleanly into terminal-first engineering workflows. Running /review audits your working tree, a specific commit, or a branch diff without altering files, while codex exec runs non-interactive tasks inside scripts and CI jobs. Whenever you return to a server, codex resume picks up the exact previous thread for that repository.

OpenAI Codex interactive terminal session on a server
OpenAI Codex running inside a server terminal session on a code repository

Cursor CLI: terminal speed with Cloud Agent handoff#

If your team already works in Cursor, cursor-agent brings its planning and diff tools directly onto your Linux host. Plan mode interviews you before touching code, Ask mode stays strictly read-only, Ctrl + r steps through edits file by file, and starting any prompt with & delegates long background work to Cursor's Cloud Agent so you can track it on web or mobile.

Cursor CLI welcome screen in the terminal
Cursor CLI welcome screen inside a terminal session

Why developers move coding agents onto a VPS with tmux#

Running multi-hour refactors or full test suites on a laptop fails whenever the lid closes, and it exposes personal files to shell-executing agents. A dedicated Cloud Server running tmux solves both issues cleanly.

  1. Your laptop or phone connects through the XVer web terminal or SSH
  2. tmux session keeps codex, cursor-agent, or claude running if your network drops
  3. Isolated Git branch contains all edits and test runs until you inspect git diff
Keep coding agents alive inside tmux on a dedicated server and reconnect from any device
Start a persistent coding session on the server
tmux new -s dev
cd ~/my-repo
git checkout -b agent/refactor
codex   # or cursor-agent / claude

Success check: Detach with Ctrl + b then d while the agent keeps running, and reattach later with tmux attach -t dev.

Choosing among the big three#

Match the subscription you already pay for

  • Paying for ChatGPT or OpenAI API and want /review plus AGENTS.md: pick Codex
  • Already on Cursor and want per-file diff inspection or & Cloud Agent handoff: pick Cursor CLI
  • Paying for Claude Pro/Max and want CLAUDE.md plus Remote Control: pick Claude Code

Want multiple agents or open-source BYOK

Server sizing and costs#

All three apps start cleanly on 2 vCPU, RAM 4 GB, NVMe disk 40 GB, Bandwidth 4 TB. Projects with heavy builds, type-checking, or Docker test containers run more smoothly on 4 vCPU, RAM 8 GB, NVMe disk 80 GB, Bandwidth 10 TB.

PlanNVMe diskBandwidthPer hourPer month
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo
4 vCPU · 8 GB80 GB10 TB฿1.37/hr฿819/mo

Prices when this page was built

฿16.80

24 hours

2 vCPU · 4 GB

฿117.60

168 hours

2 vCPU · 4 GB

฿419.00

730 hours

2 vCPU · 4 GB

Charged per hour the server exists, never above the monthly price in a calendar month

Compare every terminal coding agent in our complete guide to all 20 coding agents on XVer and review the Ubuntu security checklist.

Frequently asked questions#

Does XVer sell ChatGPT, Cursor, or Claude subscriptions

No. XVer charges only for the Cloud Server by the hour. You sign in using your own OpenAI, Cursor, or Anthropic account or API key.

Can I install both Codex and Cursor CLI on the same server

Yes. On the Marketplace page you can click the plus button to stack multiple coding agents onto one server, or deploy the AI Coding Box bundle directly.

Is OpenAI Codex free to run

The Codex CLI software itself is open source, while model usage requires a supported ChatGPT subscription or an OpenAI API key billed by OpenAI.

Will the agent keep working after I close my laptop

Yes, as long as you launch the agent inside a tmux session on your Cloud Server before disconnecting.

Follow the guide on your own server

Create a Cloud Server with Ubuntu, Debian or Windows Server, billed by the hour in Thai baht. Support answers 24/7 in Thai and English.