Blog / Remote
Hosted Claude Code Servers: What Each Option Costs
What it costs per month to run Claude Code on a server you do not babysit: Claude Code on the web, a VPS, Codespaces and Code Tycoon, plus the model bill.

Hosting Claude Code costs between nothing extra (Anthropic's cloud sessions) and several hundred dollars a month (an always-on metered workspace), and in every case the model bill is separate and usually larger.
"Hosted Claude Code" means different things depending on who you ask. It can be Anthropic's own cloud sessions, a rented server you set up, a metered cloud workspace, or a managed server sold by a tool vendor. This article puts a monthly number on each, using only published prices, and separates the cost of the place from the cost of the tokens.
Code Tycoon is one of the options here, and for it we list the published prices and nothing beyond them. Everything below is built from official pricing pages and documentation read on 2026-11-23, and all arithmetic is labeled as ours. Fees change, so always verify current rates on the linked pages.
Table of contents
- Summary table
- Cost one: the model
- Claude Code on the web
- A VPS
- GitHub Codespaces
- Self-hosted workspace platforms
- Code Tycoon hosted
- Hidden costs
- Three worked monthly budgets
- Which one fits which budget
- FAQ
Summary table
Prices are for the hosting only. Model usage is on top of every row.
| Option | Monthly host cost | Source |
|---|---|---|
| Claude Code on the web | $0 extra: "no separate charge for the cloud VM" | Claude Code docs |
| Hetzner VPS, 2 vCPU 4 GB | EUR 16.99 (Helsinki) or EUR 19.99 (Nuremberg), excl. VAT | Hetzner |
| Hetzner VPS, 4 vCPU 8 GB | EUR 30.49 (Helsinki) or EUR 35.99 (Nuremberg), excl. VAT | Hetzner |
| DigitalOcean Droplet, 2 vCPU 4 GB | $24 | DigitalOcean |
| DigitalOcean Droplet, 4 vCPU 8 GB | $48 | DigitalOcean |
| Linode, 2 vCPU 4 GB (shared) | $24 | Akamai Cloud |
| Linode, 4 vCPU 8 GB (shared) | $48 | Akamai Cloud |
| GitHub Codespaces, 4-core, 160 h | $0.36 an hour, so $57.60 before the free quota (ours) | GitHub |
| GitHub Codespaces, 4-core, 730 h | $262.80 before the free quota (ours) | GitHub |
| Coder (open source) | Software free; you pay for the infrastructure | Coder |
| Ona (formerly Gitpod) | Not listed | Ona |
| Code Tycoon hosted | Solo $39, Team $69, Max $129 | codetycoon.dev |
| Code Tycoon self-hosted | Free software (AGPL-3.0); you pay for the machine | GitHub |
The rest of this article explains each row and where the real cost hides.
Cost one: the model
Whatever you host on, Claude Code spends tokens. On a subscription that means your plan's limits; on the API it means per-token billing. As of 2026-11-23, Anthropic lists Pro at $20 a month ($200 with the annual discount), Max at $100 with five times the Pro usage, and a top tier at $200 listed as Ultra (Claude pricing). Claude Code is included on all of them, and the limits are shared across Claude and Claude Code.
For API-style cost, Anthropic's cost docs say that in enterprise deployments "the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users" (Claude Code costs). That is a company average, not your bill, but it shows the scale: the model line is typically many times the VPS line.
So the first rule of this comparison: moving from a $20 server to a $40 server rarely changes your total. Moving from Pro to Max does. Our post on Claude Code cost per month breaks the model line down, and Claude Pro vs Max 5x vs Max 20x compares the plans.
Claude Code on the web
Anthropic's cloud sessions run on infrastructure Anthropic manages. The docs say they count "toward your plan's usage limits alongside the rest of your Claude and Claude Code usage, and there's no separate charge for the cloud VM." You need Pro, Max, Ultra or Team, or an Enterprise premium seat.
So the hosting cost is $0. The trade-offs are the ones in Claude Code on the web vs a VPS vs Codespaces: approximate ceilings of 4 vCPUs, 16 GB RAM and 30 GB disk, GitHub for cloning and pull requests, and sessions that share rate limits with everything else you do. "Running multiple tasks in parallel consumes more rate limits proportionately." The hidden cost is that parallel work burns your plan faster, which can push you to a higher tier.
A VPS
A virtual private server is the cheapest dedicated option, and it has predictable prices. Excluding tax:
| Size | Hetzner | DigitalOcean | Linode (Akamai) |
|---|---|---|---|
| 2 vCPU, 4 GB | EUR 16.99 to 19.99 | $24 (2 vCPU, 4 GB, 80 GB) | $24 (2 CPU, 4 GB, 80 GB) |
| 4 vCPU, 8 GB | EUR 30.49 to 35.99 | $48 (4 vCPU, 8 GB, 160 GB) | $48 (4 CPU, 8 GB, 160 GB) |
Hetzner's CPX22 includes 20 TB of traffic in Europe, and its price page says "Your server's bill will never exceed its monthly price cap" (Hetzner). When we fetched that page, the order buttons for these plans said "currently unavailable", so check stock before you plan around one. DigitalOcean and Linode list similar sizes at $24 and $48; DigitalOcean adds that "Inbound bandwidth is always free", and snapshots are $0.06 per GB per month (DigitalOcean).
For one person running a few sessions, the 2 vCPU, 4 GB tier is the realistic floor. Four parallel sessions with test suites push toward 4 vCPU and 8 GB. We compared the providers in Hetzner vs DigitalOcean vs Linode for Claude Code and priced the whole setup in Claude Code VPS cost.
Add the real extras:
- Backups or snapshots. DigitalOcean lists snapshots at $0.06 per GB per month. A 160 GB droplet fully snapshotted would be $9.60 a month by our arithmetic.- Your time. Updates, a firewall, SSH keys and monitoring. This is the biggest hidden cost of a VPS and it does not appear on any invoice.
- A way in. Reaching sessions from a phone needs a tunnel or VPN; see Tailscale vs Cloudflare Tunnel vs WireGuard.
GitHub Codespaces
Codespaces is metered. Compute is $0.18 an hour for 2 cores, $0.36 for 4, $0.72 for 8, and storage is $0.07 per GB-month. Personal accounts include 120 core hours and 15 GB-month (Free) or 180 and 20 (Pro) each month (GitHub billing docs).
Three scenarios, all our arithmetic with the 4-core size at $0.09 per core-hour:
| Usage in a month | Core hours | After 120 free | Compute cost |
|---|---|---|---|
| 40 hours (evenings) | 160 | 40 | $3.60 |
| 160 hours (full workdays) | 640 | 520 | $46.80 |
| 730 hours (always on) | 2,920 | 2,800 | $252.00 |
The last row uses the free allowance, so it is $10.80 below the $262.80 gross figure. Add storage: a 32 GB machine disk would be 32 x $0.07 = $2.24 a month, also our arithmetic. The default idle timeout is 30 minutes (adjustable from 5 to 240), so a codespace that sits idle stops billing, which also means it stops working. For unattended agents, that makes Codespaces an awkward fit, and it is why the always-on figure is the one to look at.
Self-hosted workspace platforms
If you run a team, you may look at platforms such as Coder or Ona. Their cost structure differs from a VPS.
Coder. The Community plan is listed as "Free" and the source is AGPL-3.0, so the software costs nothing. You pay for the cloud account, Kubernetes cluster or servers the workspaces run on. Premium is priced "Annually per user" with no amount shown, and AI Premium is "Custom" (Coder pricing).
Ona. The pricing page shows a contact form and no prices, so any monthly figure would be a guess. We do not give one. See Coder vs Gitpod (Ona) vs Codespaces for the comparison.
For a team of five or fewer, the control plane, database and templates are likely to cost more in attention than a VPS costs in money.
Code Tycoon hosted
Code Tycoon puts your Claude Code and Codex setup on a dedicated server you control from a browser. Hosted plans are Solo $39, Team $69 and Max $129 per month; the self-hosted version is free under AGPL-3.0 (npx code-tycoon) and you supply the machine. We do not publish more detail on what each plan includes in this article, so check the pricing section for the current terms.
Model usage runs on your own Claude or ChatGPT subscription or API key, the same as every other row, so none of the plans change the token bill. The honest comparison is against the VPS row: the hosted plan costs more than a bare server, and the question is whether the setup, session views and cost tracking are worth the difference to you. If you only ever run one session at your desk, a bare server or the free cloud sessions will cost less. To try the free version first, self-host it.
Hidden costs
Hosting prices miss several lines that decide the real total.
- Cold caches. A session that waits for you overnight resumes with a cold prompt cache, which costs tokens. This is a model-side cost that depends on how you wait, covered in Claude Code prompt caching and cold resumes.
- Plan limits. Parallel sessions hit the five-hour and weekly windows sooner. See Claude Code usage limits.
- Egress and storage. Bandwidth is bundled on most VPS plans and metered on others. Linode's G8 plans, for example, "don't include bundled transfer" per its pricing page.
- Idle time. On metered options, an idle machine bills. On a flat-fee server it does not.
- Tax. Hetzner's prices exclude VAT, and Anthropic's "don't include applicable tax."
- Your hours. A server you maintain costs you maintenance.
Three worked monthly budgets
These are illustrations built from the listed prices, not measurements of anyone's bill. Model costs are left out of the host line on purpose.
A solo developer with two side projects. Pro at $20 a month, Claude Code on the web for a few GitHub tasks, nothing else. Host cost: $0. If tasks need the laptop closed more often than the plan allows, a EUR 16.99 Helsinki server (excl. VAT, if in stock) is the next step.
A developer running five sessions daily. Max 5x at $100, plus a 4 vCPU, 8 GB server. On Hetzner that is EUR 30.49 to 35.99 excl. VAT, on DigitalOcean $48. Host cost is a third to a half of the model plan, and a managed plan at $39 to $129 sits in the same range. A 4-core Codespace running all month would cost several times the VPS before any allowance.
A team of three. Three plans, one shared 8 GB server or the Team plan at $69. Per person, a shared server costs less than any individual option, but one machine now holds three people's credentials, so the access rules matter more than the price.
The pattern holds across all three: the host is the smaller number, and it only becomes the larger one when a metered workspace stays on all month.
Which one fits which budget
- Under $5 extra a month. Claude Code on the web, if your repos are on GitHub and the VM size suffices. Or Codespaces for a few supervised evenings.
- About EUR 17 to 36 a month. A Hetzner VPS in the 2 to 4 vCPU range, if you can maintain it and the stock is available.
- $24 to $48 a month. DigitalOcean or Linode at the same sizes, with a US-based provider and different bandwidth rules.
- $39 to $129 a month. A managed server plan such as Code Tycoon's, if you want the server side done for you.
- Several hundred dollars. An always-on metered workspace such as a 4-core Codespace, which we do not recommend for unattended work.
- Unknown. Ona, until sales answers.
In almost every case, pick the cheapest option that covers your repos and your parallel-session count, then spend the savings on the model plan you actually need.
Frequently asked questions
How much does it cost to host Claude Code?
From nothing extra, using Anthropic's cloud sessions, to roughly EUR 17 to 36 or $24 to $48 a month for a VPS, to $39 to $129 for Code Tycoon's hosted plans. Model usage is billed separately through your Claude plan or API key.
Is Claude Code on the web free?
There is no separate charge for the cloud VM. Sessions count toward your plan's usage limits, and you need Pro, Max, Ultra or Team (or an eligible Enterprise seat).
What is the cheapest VPS for Claude Code?
On the providers' pricing pages (2026-11-23), Hetzner's 2 vCPU, 4 GB CPX22 is EUR 16.99 in Helsinki and EUR 19.99 in Nuremberg excluding VAT, below DigitalOcean's and Linode's $24 for similar specs. Check stock and current prices before you decide.
Is Codespaces cheaper than a VPS?
Only for light use. A 4-core codespace is $0.36 an hour, so 160 hours is $57.60 before the free quota, while running all month is $262.80. A flat-fee VPS is cheaper for always-on use.
Do hosting costs change my Claude usage limits?
No. Hosting and model usage are separate. Cloud sessions on Anthropic's infrastructure share your plan's limits, and anything you run on your own server uses your plan or API key.
How much does Code Tycoon cost?
Hosted plans are Solo $39, Team $69 and Max $129 per month. The self-hosted version is free under AGPL-3.0, and you provide the machine.
Does the server cost more than the Claude plan?
Usually not. A $20 to $48 server sits beside a $20 to $200 plan, and API use can run higher. Anthropic's enterprise average is $150 to $250 per developer per month.
The bottom line
The hosting line is small and predictable, except for metered workspaces that bill for idle machines. Anthropic's cloud sessions add nothing to your bill but share your limits. A VPS costs roughly EUR 17 to 36 or $24 to $48 and takes your time. Managed server plans cost $39 to $129 and take less of it. The model plan is the number that moves your total, so size hosting to your repos and sessions, then size the plan to your usage. When you are ready to compare a managed server against your own, see the Code Tycoon plans.
Related articles
- Claude Code VPS cost: the full server setup priced out.
- Claude Code on the web vs a VPS vs Codespaces: the trade-offs behind these prices.
- Claude Code cost per month: what the tokens cost.
About this research
Code Tycoon is a tool that runs Claude Code and Codex sessions on a dedicated server and maps, prices and tracks them; we run seventeen of our own products on it. Prices come from Anthropic, Hetzner, DigitalOcean, Akamai (Linode), GitHub, Coder and Ona pages and Claude Code docs, all read on 2026-11-23. Arithmetic is labeled as ours. Prices change, so verify on the linked pages.
Content reviewed and updated: 2026-11-26
Keep reading
Codex Cloud vs Jules vs Copilot Coding Agent (2026)
Codex cloud vs Jules vs GitHub Copilot's cloud agent: where tasks run, daily and plan limits, repo access, December 2026 prices, and when your own server wins.
Code Tycoon Self-Hosted vs Hosted: What Each Plan Includes
Self-hosted Code Tycoon is free and has every view, alerts and the task manager. Solo, Team and Max add a dedicated server from $39 a month. Which to pick.
Omnara Review: From Claude Code Phone App to Agent Platform
A review of Omnara from its site and README: what it is now, how self-hosting works, what it costs, what happened to its phone app and who the project fits.