By UNST33R

OpenClaw pricing, decomposed: what a free 395k-star agent gateway actually costs to run

OpenClaw has no price list: MIT-licensed, no paid tier, stewarded by an independent 501(c)(3) foundation. The real bill lives in four cost lines this guide decomposes with worked arithmetic: model access (subscription auth, API keys, or local hardware), hosting and the 8 GiB local floor, upgrade maintenance at a multi-release-per-week cadence, and the failure modes that never show up on an invoice. With provider wiring, the usage-cost measurement command, and a per-tier monthly cost table for security-agent workloads.

The search query "OpenClaw pricing" lands on a null answer, and the null answer is the honest one. The OpenClaw repository stood at 395,130 GitHub stars at our November 24 read, is released under the MIT license by the OpenClaw Foundation, and the project's own documentation states it ships with no paid tier and no telemetry beyond a version check you can turn off. There is no seat fee, no hosted plan, no vendor invoice with OpenClaw's name on it. The software is free the way an engine block is free: the running costs are real, they just arrive on other people's invoices. This guide decomposes those costs into four lines, puts worked arithmetic on the biggest one, and wires the model layer for teams running authorized security work through the gateway.

The timing motivation is straightforward. OpenClaw has become default infrastructure for security teams that want a DM-reachable agent, and our containment walkthrough and alternatives comparison cover the trust and selection sides. Cost is the third leg of that evaluation, and it is the one where a free license most often hides a surprise. Everything below was verified against the official repository and documentation on November 24, 2026.

What the $0 actually buys

The license facts are worth stating precisely, because they anchor every other line. The code is MIT, copyright 2026 OpenClaw Foundation, an independent 501(c)(3) whose stated backers include Amazon, Atlassian, GitHub, Microsoft, NVIDIA, OpenAI, Red Hat, and Tencent across more than thirty organizations. The Foundation positions itself as neutral ground for every model and lab, which is the governance answer to "what happens when one vendor's incentives change."

What you run is one gateway process on your own hardware, connecting WhatsApp, Discord, Telegram, Signal, Slack, iMessage, Teams, and Matrix to an agent runtime that reads files, writes code, and executes commands. The control UI binds to loopback at 127.0.0.1:18789 by default, and configuration lives in ~/.openclaw/openclaw.json. For a security team, that one-process architecture is the reason the hardening guide exists: the docs are explicit that everyone who can message a tool-enabled agent shares its delegated authority. Cost planning and containment planning share a root, because both are ultimately about blast radius.

Cost line one: model access

The gateway is inert without models, and model access is where essentially all the variable cost lives. The official docs support three routes, and the pricing shape of each differs.

Subscription auth. OpenClaw supports ChatGPT and Claude subscription sign-in through OAuth for agent turns, alongside API keys. Subscriptions are flat-rate, which makes them predictable, and the provider FAQ documents the failure mode: HTTP 429 responses when the quota window is exhausted, and a specific "extra usage is required for long context requests" rejection when a request wants a 1M-token context window that the current credential is not eligible to bill. A flat rate buys predictability up to a rate-limit cliff, and the cliff moves with the provider's plan tiers.

API keys, metered per token. Every major lab and every OpenAI-compatible endpoint works here, including ours. You pay exactly for what the agent consumes, you can budget per key, and rate limits are contractual rather than subscription-shaped. The trade is that an agent with tools can spend faster than a human clicking a chat box, which is why the measurement command later in this guide matters more than any price table.

Local models, hardware-priced. The local models documentation covers the third route: a managed llama.cpp server through the official plugin, or an existing LM Studio or Ollama instance. The managed setup checks available RAM, GPU memory, and disk before recommending a recipe, and the smallest curated recipe at a 64K context carries an 8 GiB host-memory floor, with larger recipes scaling up. Token spend drops to zero and hardware depreciation replaces it. The security trade is documented in the same page's plain words: local models do not provide hosted providers' safety filters, so tool permissions and prompt-injection defenses have to carry the whole load, which is the discipline our LM Studio hardening guide walks through.

Cost line two: hosting and maintenance

The gateway process itself is light. It runs on hardware you already own, binds to loopback by default, and reaches chat platforms outbound. A small VM or container host is enough; the resource-heavy component is a local model server, if you run one, and that is priced by the hardware floor above. One hosting warning comes straight from the docs: container images default to an exposed bind rather than loopback, and the exposure runbook is the documented remediation. An agent gateway accidentally reachable from the internet is a cost line that arrives as an incident.

Maintenance is the cost line teams underestimate, and the release cadence is measurable: the repository published stable release v2026.11.7 on November 23, with v2026.11.10 beta builds following on November 24, roughly a stable release per week at the current pace. Each upgrade cycle carries review time for config migrations, plugin updates, and a re-check of the tool-permission posture from the hardening guide. Budget it as a standing half-hour per release, because deferring upgrades on an internet-facing agent process trades a small cost for an unbounded one.

The token arithmetic, worked

The per-token line deserves actual numbers. OpenAI-compatible agent turns are input-heavy: the system prompt, tool schemas, and rolling history ride along on every request, and output is usually the short part. The arithmetic below uses stated assumptions you should replace with your own measured numbers, and the measurement command follows the table.

AssumptionValue
Input tokens per tools-enabled turn12,000
Output tokens per turn1,000
Turns per day100
Days per month30

Monthly cost per tier, using the published price lines for the three SKUs this site runs:

TierInput / 1MCached input / 1MOutput / 1MMonthly, no cacheMonthly, 8k of input cached
unst33r-deepseek$0.15$0.03125$0.5625$7.09$4.24
unst33r-flash$0.50n/a$1.50$22.50n/a
unst33r-pro$2.50n/a$4.50$103.50n/a

Three readings on that table. The cached-input line is the biggest lever for agent workloads, because the system prompt and tool schemas are the stable prefix of every turn; on the deepseek tier, moving 8,000 of the 12,000 input tokens onto the cached rate cuts the monthly bill by 40 percent with zero behavior change. The spread between tiers is a workload statement: a 100-turn-per-day assistant costs about the price of one coffee on the cheap tier, while routing every turn through the deepest reasoning tier costs a car payment, and the right split is per job, per agent, rather than one global default. And the 1M-token context on the deepseek tier changes what a "turn" can be, since whole log files and ledger exports fit in a single request instead of a chunking pipeline.

Measure before you model. The gateway ships the measurement:

openclaw gateway usage-cost --days 7 --json

The query reference documents the full set, including per-agent breakdowns through --agent and --all-agents. The JSON output carries a cacheStatus object, and the human-readable output warns when totals are incomplete because the usage cache is refreshing; treat a single read as a sample, and trend it across days before you commit a budget.

Wiring the model layer

The custom provider path is the documented way to point the gateway at any OpenAI-compatible base URL, through models.providers in the gateway config. A worked block for this site's endpoint, using the real SKU ids:

{
  agents: {
    defaults: { model: { primary: "unst33r/unst33r-deepseek" } },
  },
  models: {
    providers: {
      unst33r: {
        baseUrl: "https://api.unst33r.si/v1",
        api: "openai-completions",
        models: [
          { id: "unst33r-deepseek", name: "UNST33R DeepSeek" },
          { id: "unst33r-flash", name: "UNST33R Flash" },
          { id: "unst33r-pro", name: "UNST33R Pro" },
        ],
      },
    },
  },
}

A smoke test from the same host confirms the credential and route before the gateway ever loads them:

curl https://api.unst33r.si/v1/chat/completions \
  -H "Authorization: Bearer $UNST33R_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"unst33r-flash","messages":[{"role":"user","content":"reply with ok"}]}'

Two follow-ons from the docs complete the setup. Set a fallback model so the agent keeps replying through provider rate limits, per the model failover design; failover also caps the blast radius of a single endpoint's bad day. And scope the key: an agent gateway holds its model credential with the same authority it holds everything else, so a dedicated key with a spend cap beats the shared org credential. The config generator produces the client-side equivalent, and the switch-openai-python guide covers the SDK path for teams that script around the gateway. For the model-selection logic behind these SKUs in offensive-security workloads, the tier guide is the decision reference.

The cost lines that never invoice

For authorized security work specifically, three costs show up in no table above. A mid-run refusal on a consumer-tier endpoint wastes the turn, the retry, and the operator's attention, and at engagement scale that is a real line item; reduced-refusal tiers exist precisely to delete it, inside the acceptable-use scope that defines what authorized means here. Data posture is the second: whatever endpoint the gateway calls sees every prompt, every tool result, and every file the agent reads, so the retention story of that endpoint is part of its price. The third is the review time from the hardening guide, because tool permissions, session visibility, and plugin provenance are the controls that keep a cost surprise from becoming an incident.

That is the full decomposition. Software license: zero, under MIT and a neutral foundation. Model access: the dominant variable line, measurable to the cent with usage-cost, and cacheable down 40 percent on input-heavy agent loops. Hosting: light, with one documented container default to fix. Maintenance: a standing review slot per weekly release. Price the four lines against the workload, wire the provider block, measure for a week, and the free gateway stops being an exception to budgeting and becomes a line item you can defend in review.