Skip to content
Fluf
Beta

We are actively shipping every day for Fluf.

New things land daily and the product keeps getting better. Tell us what to fix or build next: we read every message.

OpenClaw token usage: 7 fixes that cut the bill

Why OpenClaw burns tokens and how to stop it: measure with /usage and /context, tame the heartbeat, trim workspace files and put chores on cheaper models.

A waving blue Fluf between a apricot peach Fluf and a sage Fluf, under a sky-blue sky.
On this page

Part of OpenClaw review: the best free AI agent comes with a second job

High OpenClaw token usage almost always comes from the same place: a big prompt sent often. Each run rebuilds a system prompt with your tools, skill list and workspace files, then adds the conversation and tool results. Multiply that by a heartbeat every 30 minutes and a frontier model, and you get headlines like Notebookcheck's $18.75 night. The fixes are concrete. Measure first, then shrink what is sent, send it less often, and send the chores to a cheaper model.

60,000Characters of workspace files injected by default (OpenClaw docs)
30 minDefault heartbeat interval once switched on (OpenClaw docs)
~120kTokens per heartbeat in the $18.75 story (Notebookcheck)

Every command and setting below is from the official token use and heartbeat docs, checked 27 November 2026. Key names change between releases, so confirm against the docs for the version you run.

1. Measure before you change anything

You can't cut what you can't see. OpenClaw gives you four views:

  • /status in chat shows the model, context usage, the last reply's input and output tokens, and its estimated cost.
  • /usage full adds a usage footer to every reply. /usage tokens shows tokens only; /usage off hides it.
  • /usage cost summarises local cost from your session logs.
  • /context detail breaks the prompt down by file, tool, skill and system prompt. This is the one that tells you where the weight is.

Costs are estimated from the prices in your model config (models.providers.<provider>.models[].cost). If a model has no price, /usage full leaves cost out, so a blank cost is not a zero cost. From the CLI, openclaw status --usage shows provider quota windows, not per-reply spend.

Write down three numbers: tokens per normal reply, tokens per scheduled run, and how many scheduled runs happen a day. The third number is usually the problem.

2. Find and tame the heartbeat

The heartbeat is a scheduled check that wakes the agent to look for work. It is useful and it is the classic bill-burner, because each check pays the full prompt.

  • See what is scheduled: openclaw automations list --all. On current releases a fresh setup creates the "Proactive check" job switched off; older setups may have one running.
  • Turn it off if you don't need it: openclaw automations disable <job-id>. Older configs used agents.defaults.heartbeat.every, where 0m disables it.
  • Let empty checks stay silent: a check that returns NO_REPLY sends no message and needs no extra final-answer call.
  • Skip checks with nothing to do: payload.skipIfScratchEmpty skips the run when its checklist is explicitly empty.
  • Keep the checklist short: it is included in every run's context.
  • Limit the hours: an activeHours window stops checks overnight when nobody will read the answer.

3. Trim the files injected into every prompt

AGENTS.md, SOUL.md, IDENTITY.md, USER.md and MEMORY.md go into the system prompt on each run. The defaults allow 20,000 characters per file (agents.defaults.bootstrapMaxChars) and 60,000 in total (agents.defaults.bootstrapTotalMaxChars).

Open /context detail and look for a MEMORY.md that has grown into a diary, or an AGENTS.md full of rules you no longer need. Move rarely used detail into memory/*.md daily files, which are not in the normal prompt and are reached through memory tools instead. Lowering the two limits is a blunt but effective backstop.

4. Keep the skill list lean

Skills load their full instructions only when used, but their metadata is in every prompt. The list is capped by skills.limits.maxSkillsPromptChars, with a per-agent override. Uninstall skills you tried once, and keep descriptions to a sentence. Fewer skills is also a security win: see what happened with ClawHub's malicious skills.

5. Compact, prune and cache

  • Compact long sessions with /compact. History is the part that grows without you noticing.
  • Trim big tool results. A pasted log or a full web page can dwarf the rest of the prompt. Results are already capped at 30% of the window; your own habits matter more.
  • Shrink screenshots with agents.defaults.imageMaxDimensionPx (default 1200) for screenshot-heavy work.
  • Use prompt caching. cacheRetention under a model's params (for example "long") keeps the stable part of the prompt cached. On Anthropic, cache reads are much cheaper than fresh input, while cache writes cost more (Anthropic). The docs show a heartbeat just under the cache lifetime, such as 55m for a one-hour cache, to keep it warm. Only do that if you need the heartbeat anyway.

6. Put chores on a cheaper model

The docs' own advice is to use smaller models for verbose, exploratory work. Triage, summaries and "anything new?" checks rarely need a frontier model. OpenClaw supports local servers such as Ollama, LM Studio and vLLM, which cost nothing per token (providers). Keep the expensive model for the work that earns it.

7. Put a hard cap where it can't be skipped

Estimates in chat do not stop spending. Set a monthly limit in your model provider's console, and give OpenClaw its own API key so you can see and cut its spend separately. If OpenClaw itself is misbehaving after an update, our OpenClaw not working guide covers the usual fixes. For what the whole setup costs in a month, see the real OpenClaw cost.

  1. 1Measure/status, /usage full, /context detail
  2. 2Send less oftenHeartbeat off, or fewer hours
  3. 3Send lessTrim files, skills and history
  4. 4Send it cheaperSmall or local model for chores
  5. 5Cap itProvider limit on its own key

If you'd rather not tune it at all

Every fix above works. All of them are your job, and some reset the next time you change setup. That is the honest cost of a system you assemble yourself; our OpenClaw review covers the rest of that trade.

Fluf builds the ceiling into the app. Each agent has a daily spend limit, each business a monthly one, and each job its own token or dollar budget that warns you at 80% by default. When a limit is reached, new work is held, not cancelled, and resumes when you raise it (usage and budgets). Each agent picks its own model, so the inbox triage agent can run on a local model while the strategy agent runs on Claude. Heartbeats run every 10 minutes to every 4 hours, around the clock or only during the hours you set.

Friday 17:05
What did each of you spend this week?
Pom
Juno $4.10 on support drafts, Otto $1.85 on price checks, Bea $0 because she runs on your local Qwen model.
Pom
Nobody hit a limit. The job budget for the launch post is at 62%.
Fluf routines list with scheduled jobs for several agents
Routines and heartbeats in Fluf run on the schedule and hours you choose.

Compare the two approaches on Fluf vs OpenClaw, or see every option on our OpenClaw alternative page. Want a budget that holds without a config file? Download Fluf and set one in a minute.

Questions people ask

Why does OpenClaw use so many tokens?
Every run rebuilds a system prompt with tools, skill descriptions and workspace files, then adds history and tool results. A job that runs often, like a heartbeat, pays that whole cost each time.
How do I see OpenClaw token usage?
In chat, /status shows the model, context usage and the last reply's tokens and cost. /usage full adds a footer to every reply, /usage cost summarises local cost from session logs, and /context detail breaks down what fills the prompt.
Does the OpenClaw heartbeat cost money?
Yes, every check is a model call unless it is skipped. On current releases the heartbeat starts switched off; when on, it runs every 30 minutes by default. Return NO_REPLY when nothing changed and keep its checklist short.
Can I set a spending limit in OpenClaw?
The token-use docs cover cost estimates rather than a dollar cap that holds work. Set a hard monthly limit in your model provider's console, and consider a separate API key just for OpenClaw.

Sources

  1. OpenClaw docs: Token use and costs, checked 27 November 2026
  2. OpenClaw docs: Heartbeat, checked 27 November 2026
  3. OpenClaw docs: Providers, checked 27 November 2026
  4. Notebookcheck: $18.75 overnight to ask 'Is it daytime yet?', checked 27 November 2026
  5. Anthropic: Prompt caching, checked 27 November 2026

TopicsOpenClawCostsGuides

    Search every docs page: setup, agents, models, memory, routines, chat apps and reference.