OpenClaw in my homelab: an expensive experiment with autonomous AI agents


Or: How I burned through $10 of Grok credit and learnt that autonomous AI agents aren't necessarily a cheap homelab hobby.

Looking back: This article records my first 24 hours with OpenClaw in March 2026. Model prices, free-tier limits, CLI syntax and OpenClaw's own capabilities can change quickly. The prices and limits below are historical snapshots, not current purchasing advice. A few rough estimates in my original notes didn't add up consistently, so treat them as illustrations of the problem rather than audited billing figures.


TL;DR

  • I installed OpenClaw in a Proxmox container.
  • I burned through a $10 Grok credit surprisingly quickly.
  • The Gemini free tier was restrictive during heavy experimentation.
  • My conclusion at the time: autonomous 24/7 agents cost more than I expected, so on-demand use made more sense for my homelab.

The idea: an autonomous AI agent for my homelab

I run a two-node Proxmox setup with more than fifteen services, from Paperless-ngx and OpenHAB to an AI Office stack.

When I heard about OpenClaw, an open-source AI agent framework, I thought: perfect! Maybe this could make the infrastructure a bit smarter.

My wish list:

  • Automatic log analysis
  • Smart home automation in natural language
  • Summaries of Paperless documents
  • Proactive system monitoring

Sounds useful, right?

It is. But the bill can get interesting.

Installation: surprisingly straightforward

At the time, OpenClaw offered a quick installer:

curl -fsSL https://openclaw.ai/install.sh | bash

That was how I originally installed it. Don't blindly pipe remote scripts into your shell. Verify the current official instructions and review downloaded scripts before running them.

I created an LXC container, CT 115, on my stronger Proxmox node, pve2:

  • 4 CPU cores on an Intel i5-7500
  • 4 GB RAM
  • 50 GB storage
  • Ubuntu 24.04

The installation worked, and I could see the gateway, agent and model-related components running.

So far, so good.

First shock: token consumption

The terminal interface showed a context figure like:

tokens 36k/1.0m (3%)

I initially interpreted this as 36,000 tokens for every request. That needs a qualification: a context meter is not necessarily the same as the number of billable input tokens on every API call. Actual token usage depends on the provider, model, caching and what the agent sends.

Still, the amount of context involved was a wake-up call.

An agent might include:

  • Conversation history
  • Agent memory
  • Workspace context
  • System instructions
  • Information from subagents

My configuration also allowed considerable concurrency:

{
  "maxConcurrent": 4,
  "subagents": {
    "maxConcurrent": 8
  },
  "compaction": {
    "mode": "safeguard"
  }
}

Those settings can allow multiple tasks to run at once. The original mental calculation of “twelve parallel requests with 36k tokens each” wasn't a precise description of how OpenClaw schedules work, but the underlying risk is real: several expensive model calls can overlap before you notice.

Second shock: my Grok bill

I'd configured xAI Grok as the model.

The prices I wrote down at the time were:

Input:  $5.00 per million tokens
Output: $15.00 per million tokens

After a few test sessions and some debugging, my $10 credit was gone.

My original back-of-the-envelope calculation used roughly two million input tokens and half a million output tokens. At the rates above, that would actually be $17.50, not $10. So the example illustrates how quickly costs can mount, but it does not reproduce my real provider invoice.

This is exactly why I now want usage and spending data from the provider dashboard, not guesses from a context meter.

Switching to Gemini: could the free tier save me?

I moved to Gemini Flash.

The historical prices in my notes were much lower, and the free tier I was testing allowed around 1,500 requests per day.

That sounded like the solution.

But the initial setup was unusually busy:

  • Onboarding and setup
  • Configuration tests
  • Repeated experiments
  • Failed calls and retries

According to my notes, I hit the free-tier limit on the very first day.

Again, check today's quotas for your exact model, account and region. Free tiers are especially prone to change.

Why agents can consume so much

1. A single task may involve several model calls

Ask an agent to check emails and summarise them, and it may need to:

  1. Retrieve the messages
  2. Analyse their content
  3. Produce a summary
  4. Format the result

That isn't always one API call. Tools, retries and subagents can make the workflow more expensive.

2. Long context adds up

History, memory, workspace files and instructions can all be sent to the model.

The longer the context and the more often it gets reused, the more important the provider's pricing and caching behaviour become.

3. Background tasks don't stop spending just because you're asleep

Scheduled checks, monitoring, heartbeats and automated replies can generate requests all day.

If each check triggers several calls, a modest-looking schedule can turn into a substantial monthly bill.

What would it cost per month?

I originally compared Gemini Flash, GPT-4o mini, Claude Haiku and Grok at about a hundred requests per day.

The table was only a rough estimate. Costs depend on both input and output tokens, the exact model and version, caching, agent behaviour and current prices. Counting requests alone isn't enough.

My most aggressive estimate for Grok was close to a thousand dollars a month with the unoptimised configuration. That wasn't a measured monthly bill — it was a warning about what could happen if I kept the experiment running at the same pace.

The honest takeaway: calculate costs from actual token logs and set a provider-side spending cap.

My attempts to optimise it

I tried making the agent more conservative:

{
  "agents": {
    "defaults": {
      "compaction": {
        "mode": "aggressive",
        "maxTokens": 8000
      },
      "maxConcurrent": 1,
      "subagents": {
        "maxConcurrent": 1
      }
    }
  }
}

Some of my manual changes didn't stick. I then tried setting values through the CLI:

openclaw config set agents.defaults.maxConcurrent 1

These settings illustrate my approach, not a validated configuration for every OpenClaw version. Check the current schema before applying them.

The broader lesson was to reduce concurrency, prune unnecessary context and disable background activity I didn't actually need.

Even then, I wanted stricter per-agent token budgets and clearer cost controls.

Alternatives I considered

Local Ollama?

My hardware:

  • Intel i5-7500 without a dedicated GPU
  • 31 GB RAM in the Proxmox host

The local 8B model I tested took around 20–30 seconds to respond. With several agent steps, waiting times became annoying.

Local models are useful, but on my particular CPU-only machine they weren't fast enough for the autonomous workflow I had in mind.

Hugging Face inference?

I also looked at hosted inference services.

The issues for my use case were integration effort, tool-calling quality, shared infrastructure and rate limits. The exact free-tier numbers have since become moving targets, so I wouldn't base today's decision on my old notes.

Using Gemini more carefully?

On-demand use looked much more realistic:

  • One main task at a time
  • Minimal subagent concurrency
  • Unnecessary web searches disabled
  • No constant background polling

A few dozen deliberate requests per day are easier to control than a service that's continuously finding work for itself.

Could the Synology DS916+ run it instead?

I wondered whether I could take OpenClaw off pve2 and run it on my DS916+.

The NAS offered a lot of storage and was running around the clock anyway, but its dual-core Celeron and hard disks were not ideal for a busy agent runtime.

My preferred compromise was:

  • Run the agent on pve2 for CPU and memory.
  • Use the NAS for backups and bulk storage.

That still needs careful permissions and a sensible storage layout; it isn't automatically safer just because the files live on a NAS.

What I learnt in the first 24 hours

Autonomous agents can get expensive

For the kind of always-on experimentation I was doing, the model API bill could easily become one of the larger running costs in the homelab.

Token use is easy to underestimate

A context of tens of thousands of tokens sounds abstract until it is sent repeatedly and multiplied by tool calls, retries and subagents.

Free tiers are good for experiments, not guaranteed capacity

They may be perfectly adequate for occasional queries and small automations. I wouldn't build an important 24/7 service around an unspecified free quota.

Cost controls matter as much as clever features

Before letting an agent run autonomously, I'd want:

  • A defined budget
  • Provider-side alerts or hard limits where available
  • Visibility into each model call
  • Limits on concurrency and retries
  • A way to stop scheduled activity quickly

What I considered doing next

Option A: On-demand instead of 24/7

Start the agent when I need it, ask for a specific task, then stop its gateway or service using the documented management commands for the installed version.

Typical tasks:

  • Summarise a set of Paperless documents
  • Analyse OpenHAB logs
  • Review a particular service configuration

The important part is that nothing keeps calling a paid model without my knowledge.

Option B: Leave it installed but inactive

That's a perfectly reasonable option for a homelab: keep the configuration around for experiments, but disable background tasks and automatic starts.

Option C: Uninstall it

If I'm not using it, I can remove the software and eventually the dedicated LXC container.

I wouldn't paste destructive container deletion commands into a general guide. Check IDs, back up configuration and follow the current removal procedure before deleting anything.

At the time, I leaned towards Option B.

What I'd recommend to other homelab owners

An autonomous agent makes sense if:

  • You actually need persistent automation.
  • You're comfortable paying for model usage.
  • You can measure and limit spending.
  • You've designed access permissions and security boundaries.

For small homelabs, simpler alternatives are often better:

  • Paperless-ngx + RAG: Pay for individual document queries.
  • OpenHAB or Home Assistant automations: Use deterministic local logic.
  • Cron jobs and scripts: Boring, predictable and usually free.
  • A local LLM: Useful for batch jobs where latency isn't critical.
  • n8n with AI nodes: More explicit control over workflow steps.

Alternatives worth exploring

Paperless with an LLM

Good for searching a document archive and generating summaries when requested.

Home Assistant with AI voice

Better integrated for smart-home tasks than asking a general-purpose agent to operate everything.

n8n

An explicit workflow can make it easier to see where API calls happen and what triggers them.

Ollama for batch jobs

If a nightly analysis takes several minutes, that may be completely acceptable. My CPU is much less of a problem when no one is sitting there waiting.

The hard truth

Autonomous agents are exciting, but autonomy isn't automatically valuable. If a ten-second script can solve a problem without an LLM, adding an agent may just add cost and failure modes.

The technology will improve: cheaper models, more efficient local inference and better budgeting tools.

But even then, I'll start with a simple question: does this task really need an autonomous agent?

For my homelab at the time, the answer was usually on-demand beats always-on.

Links

Written after my first 24 hours of OpenClaw experimentation on 13 March 2026.

Previous Next