Hivra
What the monthly bill adds up to.

The real cost of running a persistent AI agent in 2026

An agent that runs all the time costs more than the price on the plan. Here's each piece with a real figure: the server, the tokens, your time, and the bits no pricing table mentions.

Short answer

Running a persistent AI agent costs you a server, AI tokens and your time. A minimal self-hosted setup is about $10-17 a month in cash, or $60-117 once you count maintenance at $50 an hour. Hivra is $9.99 a month for 2 vCPU and 4 GB of RAM, plus about $4-20 in tokens.

What does the server cost?

Somewhere between €5 and $24 a month for a rented server, because the agent needs a machine that stays on. You can rent a VPS, pay a managed host, or run it on hardware you already own.

VPS prices as of September 2026 (Hetzner last changed its CX prices on 15 June 2026): Hetzner CX23 (2 vCPU, 4 GB RAM) costs €5.49/month excluding VAT. DigitalOcean's comparable Basic Droplet is $24/month. OVH's entry VPS-1 (2 vCPU, 4 GB) is about $4.54/month on annual billing. Hetzner and OVH are cheap, and every bit of setup and upkeep is yours. Need more room? The Hetzner CX33 (4 vCPU, 8 GB RAM) at €8.49/month is the next step up, and worth it if your agent uses the browser a lot.

Managed hosting: Hivra plans start at $9.99/month for 2 vCPU and 4 GB of RAM, and the $19.99/month plan is 4 vCPU and 8 GB of RAM. Paid plans are not paused for inactivity and come with a 7-day money-back guarantee on card payments. You pay for hosting, with no markup on AI usage through your own keys or logins. In return the setup's done and there's no server to maintain. To compare a specific setup against a raw VPS, run your numbers through the AI agent hosting cost calculator.

What do the AI tokens cost?

Anthropic's prices as of October 2026, from its pricing page (they move, so check): Claude Haiku 4.5 ($1 input / $5 output per MTok); Claude Sonnet 5.5 ($2 / $10 per MTok, with the 1M-token context window at standard pricing); Claude Opus 5.5 ($4 / $20 per MTok, also with the 1M-token window at standard pricing). OpenAI, as of April 2026: GPT-5 mini ($0.25 / $2 per MTok, the cheapest capable option at the time). The Anthropic Batch API cuts Anthropic rates by 50% for async workloads, so Haiku 4.5 drops to $0.50/$2.50 per MTok. The monthly ranges below were worked out at April 2026 prices and have not been recalculated.

In practice? A lean setup (10 to 15 scheduled tasks a day, a few URLs each, text output on Haiku 4.5) usually spends $3 to $8 a month. Mixed Haiku/Sonnet workloads with research and code generation run $20-50/month. Heavy Sonnet usage with long context tasks can push $60-120/month.

Browser work is where tokens pile up, because screenshots and page captures are big. A task taking 10 screenshots at ~1,000 tokens each, running daily, costs roughly 300,000 tokens per month just for screenshot processing. If your agent browses a lot, put the screenshot steps on Haiku and save Sonnet for the thinking. Which browser automation tool you pick changes that number too, because they differ in how much of the page they send to the model.

Picking the model is the obvious lever. It isn't the only one. Prompt caching, batching and trimming what you resend each turn often save more than switching models. What an AI agent costs per month in API tokens has a monthly table with the sums shown, plus those cuts.

Do Claude Code and Codex cost extra to run in the cloud?

Not if you already pay for Claude or ChatGPT. Both run on Hivra with their official CLIs and sign in with the subscription you already have. Claude Code uses your Anthropic account login. Codex uses your ChatGPT login. No API key, no per-token bill, and no Hivra markup on AI usage. Hivra is independent and is not affiliated with Anthropic or OpenAI.

So the extra AI cost of running them in the cloud is $0 while they stay inside the subscription's limits. Your only new cost is hosting, from $9.99/month for 2 vCPU and 4 GB of RAM. To check whether your Claude plan covers the usage you have in mind, run the numbers in the Claude Code plan calculator. For which Claude plan that usage needs, and when API billing is the cheaper way to pay, see Claude Code pricing: Pro vs Max. If your ChatGPT plan lists Codex cloud, OpenAI's pricing page says cloud chats and local messages share one allowance. A computer that stays on adds a hosting bill, not a second Codex allowance. The side by side is in the Codex cloud guide.

How much of my time does a self-hosted agent take?

More than people budget for. Setup takes 4 to 8 hours if you know Linux. After that it's at least 1 to 2 hours a month on updates, logs and odd failures. When something properly breaks (a Docker update clashes with something, or an API change breaks a tool the agent relies on), add another 2 to 6 hours.

At $50 an hour, 2 hours a month is $100 a month. That's more than the server. Whether self-hosting pays depends on what your time is worth and whether you enjoy the work. Either way, count the maintenance before you compare.

So what does it all add up to?

SetupWhat's in itCash per monthWith your time at $50/hour
Self-hosted, minimalHetzner CX23 (€5.49 before VAT), $3 to $10 of Haiku tokens on text-only tasks, 1 to 2 hours of upkeep$10 to $17$60 to $117
Self-hosted, activeHetzner CX33 (€8.49 before VAT), $20 to $50 of mixed Haiku and Sonnet with some browser work, 2 to 3 hours of upkeep$30 to $60$130 to $210
Hivra, $9.99 plan2 vCPU and 4 GB of RAM, $4 to $20 of tokens, no server upkeep$14 to $30$14 to $30

Serverless (Modal or Daytona) sits off to one side. It costs almost nothing while idle and you pay per run, so it suits agents with rare but heavy jobs. Cold starts make it a poor fit for cron jobs that must fire every minute. Full plan details are on the pricing page.

Count your time and managed hosting looks a lot better than the sticker prices suggest. Still, if you want root access or have strict rules about where data lives, self-hosting on Hetzner is a perfectly good choice. The hardware is solid and the self-hosted Hermes community is active.

What costs don't show up on any pricing page?

A domain, for a start. Self-hosted setups need one for HTTPS, at $10 to $15 a year. On Hivra you reach the agent through the dashboard, so you don't.

Backups. If you want your agent's memory to survive a dead server, keep a copy somewhere else. S3-compatible storage runs about $0.02 per GB a month, and a healthy memory store is 50 to 500 MB, so a few dollars at most. Hivra does not guarantee backups either, so keep your own off-host copy there too.

Mistakes. A badly set-up agent, or one that hits a weird edge case, can burn tokens fast. Put a monthly spend cap on your API key (most providers have one) and check it weekly while a new task beds in.

And recovery. If a self-hosted server dies and you have no restore plan, rebuilding from scratch is another 4 to 8 hours. Not every month. But it happens.

Common questions

What is the absolute cheapest way to run a Hermes agent?

A Hetzner CX23 at €5.49/month, Claude Haiku as the model, and text-only tasks (browser work is what blows up token use). That's $10 to $17 a month if you're happy doing the setup yourself. Or skip the setup on Hivra, from $9.99/month for 2 vCPU and 4 GB of RAM, with a 7-day money-back guarantee on card payments.

Can I run a Hermes agent for free?

Not for long. Some providers have small free API tiers (the terms change, so check), and they're fine for poking around. They run out fast once you schedule real tasks. A setup you can keep running costs at least $8 to $15 a month, server and tokens included.

How does pricing change as I add more agents?

Hivra plans are priced by compute: $9.99/month for 2 vCPU and 4 GB of RAM, or $19.99/month for 4 vCPU and 8 GB of RAM, split across your agents. Each agent gets its own VM, so running more or bigger agents means moving up a plan, not a per-agent surcharge. API costs scale separately with usage: more agents running more tasks means more tokens.

Give your agent a computer that stays on.

From $9.99/mo. Bring your own AI key. 7-day money-back guarantee on card payments.

Start Now