Search topic
openhands token usage
Practical outcome
OpenHands burns spend on long autonomous runs — read its usage, then total your CLI agents.
Quick answer
npx whoburnedmore. 🔥OpenHands, formerly OpenDevin, is an MIT-licensed autonomous software-engineering agent. Its product line has changed in 2026. Agent Canvas is the open-source browser client you self-host for free with your own LLM key. OpenHands Cloud at app.all-hands.dev is the hosted version, with GitHub, GitLab, or Bitbucket sign-in. The Software Agent SDK is for building on it. The old OpenHands CLI is “no longer actively maintained,” and the local GUI launched with openhands serve is deprecated. Whichever surface you use, a single “fix this issue” task can fan out into dozens of model calls before it finishes. That is why tracking cost matters here.
OpenHands task
autonomous loop
Many model calls
plan · act · observe
Your key or credits
BYOK or OpenHands LLM
Where cost shows up
provider or Billing tab
How do I see OpenHands token usage?
Where to look depends on who bills the model calls. Most setups need two places.
Inside OpenHands Cloud
Settings → Your Budget has a Recent Usage list with the accumulated cost of your last six conversations. Settings → Dashboard shows token usage and estimated spend. In an organization, admins also get Settings → Budgets: a monthly cap for the organization, a default budget per user, per-user overrides, and alerts at 80%, 90%, and 100%. If you pay for OpenHands's own model provider, you add credits under the Billing tab. For scripts, OpenHands documents a conversation-metrics recipe that reads accumulated_cost and accumulated_token_usage (prompt, completion, cache read and write, reasoning) from the Cloud API.
Your LLM provider's usage dashboard
With your own key, which is the only option in self-hosted Agent Canvas and the default on the Teams plan, the authoritative spend lives with the provider. The Anthropic Console and the OpenAI usage page both filter by date and API key. So the cleanest setup is a key used only by OpenHands. Every token on that key is then OpenHands spend.
Give OpenHands its own API key
A separate provider key for OpenHands turns a murky bill into a clean line item. Filter your provider's usage page by that key, and the total for the period is pure OpenHands cost. That helps when several agents share one account.Why does OpenHands cost so much per task?
Because of the autonomous loop. Each step sends the model the growing conversation, the files the agent has opened, and the tool results, so token use compounds with every step. A rough model of one task's cost:
Here i is each step of the loop. ctx is the input context for that step, which grows as history builds up. out is the tokens the model generates, and p is the per-token price. Prompt caching lowers the cost of repeated context but doesn't remove it. Two levers dominate: how many steps the agent takes, and how large the context gets. The per-conversation budget cap is the guardrail. When a conversation hits it, OpenHands stops, and you can choose to continue.
Model choice is the biggest dial
The configured model is the strongest cost control. OpenHands's own LLM provider charges “official API provider rates… with no markup.” On app.all-hands.dev it also offers two free DeepSeek Flash models, which suit routine edits. Save a frontier model for the hard problems.Where does OpenHands fit among other agents?
OpenHands sits at the autonomous, browser-driven end of the range. Knowing where its cost data lives, compared with terminal agents that write local logs, keeps your tracking honest:
How do I track my other AI agents' spend?
OpenHands is usually one tool among several. The terminal agents you run alongside it, such as Claude Code, Codex, Gemini CLI, and OpenCode, each leave usage records on disk. Those are what whoburnedmore adds up. To see which tools it found on this machine without sending anything:
$ npx whoburnedmore --dry-run | grep '"tool"' | sort | uniq -c 41 "tool": "claude", 18 "tool": "codex", 7 "tool": "gemini", # no "openhands" rows: it is not a supported source
Each count is the number of day-and-model rows for that tool. Add your OpenHands number, taken from Recent Usage or your provider dashboard, to your whoburnedmore total to get your real monthly AI-coding spend. The two sources complement each other and don't overlap.
- 1
Cap the run before it starts
Set Maximum Budget Per Conversation (USD) in Settings → Application. For an organization, set a monthly cap and per-user budgets in Settings → Budgets. - 2
Read the real total
On Cloud, check Settings → Your Budget and the Dashboard. With your own key, filter your provider's usage page by the key you dedicated to OpenHands. - 3
Total the rest with whoburnedmore
npx whoburnedmorereads your local terminal-agent logs and syncs daily totals per tool.npx whoburnedmore --localkeeps everything on your machine. - 4
Add the two figures
OpenHands total plus whoburnedmore total is what your agents actually cost this month.
recent conversations in Your Budget
org budget alert thresholds
OpenHands data whoburnedmore touches
Does whoburnedmore read OpenHands?
No, and it's worth being precise. OpenHands is not one of whoburnedmore's 22 sources. It never connects to OpenHands Cloud, and it doesn't parse Agent Canvas or SDK conversation state. OpenHands cost comes from its own budget views and your provider's dashboard. For the agents whoburnedmore does cover, it reads only usage metadata (token counts, model names, dates), never your prompts or code. The standard command signs in and syncs daily totals; --local makes no network request. 🛡️
If your setup also includes lighter terminal tools, the guide to checking Amp, Droid, and Goose usage walks through the same one-command flow for three agents whoburnedmore reads directly.
Sources checked November 8, 2026: OpenHands pricing, Application settings, Organization budgets, OpenHands LLM provider, OpenHands CLI status.
Related guides
How to Check Your AI Coding Token Usage
The cross-tool overview: one command that totals your token usage and cost across every AI coding agent you run.
How to Check opencode Token Usage and Cost
opencode keeps detailed logs — here's how to turn them into a token + cost total.
The Best AI Coding Token Trackers in 2026
ccusage vs tokscale vs native dashboards vs whoburnedmore — a free, cross-tool comparison.