SSD Nodes Learn 8GB RAM — $66/yr
Guides Matt ConnorBy Matt Connor

Claude Code vs Cursor, Codex and Copilot

Terminal agent, editor assistant or cloud agent? Compare Claude Code, Cursor, Codex and Copilot by how each one works, what they cost, and where a VPS fits.

Claude Code vs Cursor, Codex and Copilot

Claude Code vs Cursor, Codex or Copilot is a choice between three ways of working, not four feature lists. Claude Code and the Codex CLI are terminal agents: you start them in a directory and they work through your shell. Cursor and GitHub Copilot are editor-native: they live inside a code window and follow your cursor. Codex also runs in the cloud, on a machine you never see. Pick the shape that matches your day, then pick the product inside that shape.

The feature lists converge. All four read a repository, propose edits, and run commands. What separates them is where the agent runs, what it can see while it runs, and how you are billed. Those three things are stable. Model names and prices are not, so this page keeps them sparse and dated.

What a terminal agent is good at

A terminal agent is a program in your shell that treats the current directory as its world. It reads files, edits them, runs your build, reads the failure, and tries again. There is no editor involved, so it works the same on your laptop and on a server you reach over SSH (secure shell).

Install Claude Code with the official installer, then start it inside a project.

curl -fsSL https://claude.ai/install.sh | bash
claude --version
cd ~/projects/myapp
claude

claude --version should print a version string such as 2.1.211 (Claude Code). If it prints command not found, the installer put the binary in ~/.local/bin and that directory is not on your PATH. There is also an npm package if you already manage tools that way.

npm install -g @anthropic-ai/claude-code

The Codex CLI installs the same way and starts with its own command.

curl -fsSL https://chatgpt.com/codex/install.sh | sh
cd ~/projects/myapp
codex

GitHub ships a terminal agent too, distributed through npm.

npm install -g @github/copilot
copilot

Terminal agents suit long jobs: a migration across forty files, a test suite you want green by morning, a dependency upgrade nobody wants to do by hand. They suit them because nothing about the work is tied to a window being open. The cost is that you give up the editor's view. You are reading diffs in a terminal, not scanning them in a side-by-side pane.

What an editor-native assistant is good at

Cursor and Copilot put the model where your attention already is. Cursor is a full editor, a fork of VS Code, so the agent has the editor's own index of your project: open buffers, the symbol graph, the file you are staring at. Copilot is an extension that adds the same idea to VS Code, JetBrains IDEs, Visual Studio and Neovim, so you keep your existing setup.

This shape wins on short loops. Inline completion while you type, a rename that touches nine call sites, a function you want rewritten while its caller is visible two lines up. The model has your cursor position, which is the single strongest signal about what you mean. A terminal agent has to be told.

It loses on anything that outlives the window. Close the laptop and the work stops. That is the whole reason the terminal shape exists.

What a cloud agent is good at

Codex can move a task to a hosted machine that clones your repository, works on it, and opens a pull request. You are not watching it. You come back to a diff and a description of what changed.

Cloud mode is good for work that is well specified and boring: apply the same lint fix everywhere, add a missing test file, bump a library and repair the call sites. It is bad for work where you would have corrected the agent at minute three, because you are not there at minute three. Give it a task you could write down completely, or expect to throw the result away.

Note the pattern: cloud mode is a terminal agent that someone else hosts. If you host it yourself on a Linux box, you get the same property with your own keys, your own network rules, and your own filesystem. That is the entire argument for running Claude Code on a VPS inside tmux.

How the pricing structures differ

Three billing shapes are in play, and mixing them up is where budgets break.

Flat subscription with a usage window. You pay monthly and get an allowance that refills on a schedule. Anthropic's Pro and Max plans work this way, and Claude Code is included in every paid plan from Pro up. Which tier you need depends on how often you hit the wall, which is the question matching a Claude plan to how you work answers.

Per seat, with metered overage. Cursor lists Hobby (free), Individual at $20 per month, and Teams at $40 per user per month, as of July 2026. Each tier includes an amount of model usage, and past that you are billed in arrears for what you consume. Copilot lists a free tier, Pro at $10 per month, Pro+ at $39, Business at $19 per seat and Enterprise at $39 per seat, also as of July 2026, with an allowance of AI credits attached to each.

Per token. The API has no ceiling and no window. You pay for every input and output token, and the bill scales with how much context you send. This is the shape that surprises people, because a long agent session resends the conversation on every turn.

The practical consequence: a subscription caps your worst month, and a meter does not. If you run agents all day, the flat plans are usually cheaper and always more predictable. If you run agents occasionally but automate them, the meter is cheaper. Model choice moves the meter a long way, which is why picking the right Claude model for the job is a cost decision as much as a quality one.

Where a VPS fits

A VPS (virtual private server) turns any terminal agent into a cloud agent you control. The machine stays on, so a session survives your laptop lid closing. Run the agent inside tmux, a terminal multiplexer, and the session also survives a dropped SSH connection, because the shell is a child of the tmux server rather than of sshd.

sudo apt update && sudo apt install -y tmux
tmux new -s agent

Inside that session, start the agent as normal. Detach with Ctrl-b then d, close your laptop, and reconnect later.

tmux attach -t agent

If tmux attach reports no sessions, the tmux server died with the machine or was never started, so the work is gone. That is the one failure mode worth knowing before you rely on it.

The other reason to use a server is blast radius. An agent that can run commands can also run the wrong one. On a VPS the wrong command destroys a machine you can rebuild, not the laptop with your photos on it. Give it its own unprivileged user, keep credentials out of the repository, and treat the box as disposable. The same reasoning applies to any agent you self host, which is covered in running a coding agent on a VPS.

Which one should you actually pick

If most of your day is typing code with a file open, an editor-native tool is the higher-value purchase, and Copilot is the cheaper way to keep your current editor. If most of your day is delegating whole tasks and checking results, a terminal agent is the better fit, and it is the only shape that runs unattended on a server. If you already pay for a Claude plan, Claude Code costs you nothing extra to try, which makes it the cheapest experiment on this page.

Most people who use these tools seriously end up with two: an editor assistant for the typing, and a terminal agent for the delegating. They are not competing for the same minutes.

FAQ

Is Claude Code a replacement for Cursor?

Not directly. Cursor is an editor and Claude Code is a terminal program, so they cover different parts of the day. Claude Code replaces the agent panel inside Cursor for long, delegated tasks. It does not replace inline completion while you type, because it has no idea where your cursor is.

Can I run Claude Code and Codex on the same project?

Yes. Both operate on the working directory through ordinary file writes and shell commands, so neither needs the other to be absent. Run one at a time in the same checkout. Two agents editing the same files concurrently will overwrite each other's work, because neither locks anything.

Does a coding agent need a GPU on the server?

No, as long as the model runs at the provider. Claude Code, Codex and Copilot all send requests to a hosted API, so the server only needs enough CPU and memory to run your build and tests. A GPU is required only if you self host the model itself, which is a different project with much larger hardware requirements.

Why does my agent session die when I close my laptop?

Because the SSH connection ends, the kernel tears down the pseudo terminal, and the shell sends SIGHUP to its children. Anything running in the foreground dies with it. Starting the agent inside tmux fixes this, since those processes belong to the tmux server rather than to your SSH session.

Which is cheapest for one developer?

It depends on volume, and the shapes are not comparable head to head. A per seat plan such as Copilot Pro at $10 per month, as of July 2026, is the lowest fixed cost. A flat Claude plan costs more but includes a terminal agent. Per token API billing can be cheaper than either at low volume and much more expensive at high volume, because there is no cap on it.

#claude-code#cursor#codex#copilot#ai-coding