Best model for OpenClaw (2026): price, tool use and safety

OpenClaw's docs say to use the strongest model you can for agents with tools. What that costs, which models top its list, what users route and how to switch.

OpenClaw’s documentation answers this directly: “Use the strongest latest-generation model your provider stack offers, especially for tool-enabled or untrusted-input agents”, because weaker models are easier to hijack (FAQ). As of November 2026, the top of OpenClaw’s own recommended list is Claude Opus 5.5, at $4 per million input tokens and $20 per million output, or about $290 a month at moderate use with a check-in every 30 minutes (OpenClaw’s heartbeat, now a scheduled “Proactive check” automation); Gemini 4 Argon, third, and Claude Sonnet 5.5, seventh, cost half that. A cheap model is fine in the case the docs carve out: “chat-only personal assistants with trusted input and no tools”.

We haven’t run OpenClaw or compared models inside it ourselves. This guide rests on OpenClaw’s documentation and model list as read on November 19, 2026, OpenRouter’s public usage data, and API prices we checked at each provider between October 17 and November 2 (see how we work).

What OpenClaw’s docs recommend, and why

The FAQ line above isn’t a one-off. The same answer adds “Route cheaper models to routine/low-stakes chat by agent role”, and two other pages agree:

  • The models page: “Set your primary to the strongest latest-generation model available to you” and “For tool-enabled agents or untrusted inputs, avoid older/weaker model tiers” (models).
  • The security page: “Use the latest-generation, best-tier model for any bot that can run tools or touch files/networks” (prompt injection).

The reason is prompt injection: an agent that reads email, web pages or group chats reads text written by others, which can contain instructions aimed at the model. Per the FAQ, “weaker or over-quantized models are more vulnerable to prompt injection and unsafe behavior.”

The numbers the docs cite

OpenClaw’s security page cites “a 2026 crowdsourced arena of 272K attacks across 41 agent scenarios”, counting an attack only when the agent both executed the harmful action and hid it from the user. Success rates were 0.5% for Claude Opus 4.5, 1.0% for Sonnet 4.5, 1.3% for Haiku 4.5 and 8.5% for Gemini 2.5 Pro. The page doesn’t name or link the study.

Three things are worth taking from those figures:

  • The vendor gap was bigger than the size gap. Opus, Sonnet and Haiku ranged from 0.5% to 1.3%; Gemini 2.5 Pro was at 8.5%. “Strongest” isn’t only about the biggest tier.
  • They are older models. None of the four is in our current price data, so treat the study as a direction, not a ranking of today’s models.
  • No model is enough on its own. The same page says adaptive human attackers reach “success rates above 80% against state-of-the-art defenses once the attacker adapts”, and calls model choice “your first and cheapest layer”. Sandboxing, tool allowlists and pairing still matter; see is OpenClaw safe?

When a cheaper model is fine

The security page’s exception: “For chat-only personal assistants with trusted input and no tools, smaller models are usually fine.” If a small model must have tools, it says to use “read-only tools, strong sandboxing, minimal filesystem access, strict allowlists.” That rules out a budget model for an assistant that reads your inbox or browses the web on its own, unless you accept those limits.

OpenClaw keeps a ranked list in its repository, scripts/lib/recommended-models.json: “a JSON array of normalized model ids, best first.” The order starts from each model’s Arena agent score, with ties broken and gaps filled by observed usage, and “the reviewer’s edit is the source of truth” (recommended models). OpenClaw’s model pickers show a provider’s recommended models first. The file holds 31 ids with no reasons attached. Here are the first ten, as read on November 19, 2026 (GitHub), with prices from our model price data:

# Id in OpenClaw’s list Input / output per 1M tokens Note
1 claude-opus-5.5 $4 / $20 Default for a new Anthropic setup
2 gpt-6.2-sol not in our data Replaced gpt-6.1-sol
3 gemini-4-argon $2 / $10 Rises to $4 / $20 on December 1, 2026
4 gemini-4-carbon not in our data
5 gpt-6.2-astra not in our data Replaced gpt-6-astra
6 claude-fable-5.2 not in our data Replaced claude-fable-5.1
7 claude-sonnet-5.5 $2 / $10
8 muse-wonder-1 $4 / $20 Meta’s Muse Wonder, in preview
9 muse-wonder not in our data
10 grok-4.7 $2 / $6

Two things stand out. First, the list isn’t sorted by price: Gemini 4 Argon, at $2 / $10, ranks third, and Claude Sonnet 5.5, at the same price, ranks above Muse Wonder at $4 / $20. Four of the top six aren’t in our price data yet: three are newer versions that took the places of GPT-6.1 Sol, GPT-6 Astra and Claude Fable 5.1, which have left the list, and gemini-4-carbon is new. Second, there’s no budget model in the top ten. deepseek-v4.1-flash is 11th, and smaller, local-sized models such as glm-5.3-flash and qwen3.8-27b appear further down.

One caution: the docs don’t say the ranking reflects resistance to prompt injection.

The defaults, and what they cost

“A fresh setup with no primary model uses exact openai/gpt-6-astra for ChatGPT/Codex subscription auth”, so that usage counts against your ChatGPT plan rather than API billing (FAQ), and a fresh Anthropic setup “defaults to Opus 5.5” (Anthropic provider). Through OpenRouter, “Onboarding defaults to openrouter/auto” (OpenRouter provider).

On the API, GPT-6 Astra costs $10 / $50 per million tokens, with cached input at $1. At the calculator’s default usage, below, that’s about $742 a month for the model alone. Opus 5.5, first on OpenClaw’s list, comes to about $290, so moving from GPT-6 Astra to the list’s top pick cuts the model bill by about 60% for the same usage. GPT-6 Astra itself is no longer on the list; gpt-6.2-astra, fifth, isn’t in our price data yet.

One note from our price data: Claude Opus 5.5 uses a newer tokenizer that produces roughly 30% more tokens for the same text than Claude 4.6 and earlier, so token counts aren’t comparable across Claude generations.

What each model costs at your usage

The calculator’s defaults come from OpenClaw’s docs. The /context example shows a system prompt of about 9.6K tokens plus about 8.0K tokens of tool schemas before any conversation, about 17.6K in all; the calculator rounds up to 30,000 input tokens a call to allow for history. The other defaults: 600 output tokens a call, 3 calls per message (a reply that uses tools takes several), 20 messages a day, a heartbeat (scheduled check) every 30 minutes around the clock at 30,000 tokens, and 60% of message input served from the prompt cache. For the full breakdown, see how much OpenClaw costs to run.

The server is the small part. As of November 2026, a Hetzner CX23 costs $6.49 a month, a Hostinger KVM 2 costs $8.79 a month at the intro price (renewing at $14.99), and a DigitalOcean 2 GiB Droplet costs $12. More plans are in VPS and app hosting.

Calculator

What each model costs a month in OpenClaw

Pick a model and a machine. The table below the result runs the same usage through every model in our price data, cheapest first. Change the token assumptions, or set a cheaper heartbeat model, under “Token assumptions and heartbeat”.

Token assumptions and heartbeat
Estimated monthly cost$0

Server
Your messages: input
Your messages: output
Heartbeat

The same usage on every model
ModelPer messageModel, a monthWith server

Model prices are list API prices per million tokens (input / output) as last checked 2026-12-02; server prices from our hosting comparison. Months are 30 days. Cache writes (Anthropic charges 1.25 times the input price for a 5-minute cache write), taxes and any free tiers aren't counted. An estimate from your inputs, not a measured bill.

At these settings, the models fall into clear bands for the model alone: under $25 a month for Claude Haiku 5.5, GPT-6 Luna, Mistral Small 4 and DeepSeek V4.1 Flash; about $50 to $56 for Mistral Large 4, GPT-5.4 mini and Gemini 3.8 Flash; $145 to $155 for Claude Sonnet 5.5, GPT-6.1 Sol, Gemini 4 Argon and Grok 4.7; about $290 for Opus 5.5 and Muse Wonder; and over $700 for Claude Fable 5.1 and GPT-6 Astra.

What OpenClaw users actually run on OpenRouter

OpenRouter publishes which models each app sends traffic to. On OpenClaw’s app page on November 19, 2026, the top models this month were Step 5 Preview (6.29 trillion tokens), MiniMax M3.1 Flash (1.36 trillion), two DeepSeek V4.1 Flash versions (1.3 trillion and 944 billion) and GLM 5.3 Flash (644 billion), out of 493 models used (OpenRouter).

None of those is in the top ten of OpenClaw’s list (DeepSeek V4.1 Flash is 11th), and the one in our price data is cheap: DeepSeek V4.1 Flash costs $0.30 / $1.20 per million tokens on DeepSeek’s own API at peak hours, about $21 a month at the calculator’s default usage, against about $290 for Opus 5.5.

Read this with care: it counts only traffic OpenClaw sends through OpenRouter (OpenRouter provider), not people who connect Anthropic or OpenAI directly or use a subscription, and it’s weighted by tokens, so heavy users count for a lot. Still, it suggests many OpenClaw users on OpenRouter choose on price, against the docs’ advice. If you do the same for an agent with tools, the docs’ safeguards (sandboxing, read-only tools, allowlists) stop being optional.

Model tiers and prices

The table lists every model in our price data. The chips group them by facts, not quality scores we don’t have: OpenClaw’s top ten, price band, open weights, and prices about to change.

Model prices

Models for OpenClaw: prices per million tokens

Input, output and cached-input prices in US dollars per 1M tokens, and the context window, from our price data. Filter by group.

ModelInputOutputCachedContextNote
Claude Fable 5.1 (Anthropic)$10$50$0.251MOff OpenClaw's list since claude-fable-5.2
GPT-6 Astra (OpenAI)$10$50$11.05MOpenClaw's fresh-setup default (ChatGPT login); off the list since gpt-6.2-astra. Prompts over 272K tokens: $20 / $75
Claude Opus 5.5 (Anthropic)$4$20$0.201MNo. 1; Anthropic setup default
Muse Wonder (Meta)$4$20$0.201.05MNo. 8 (as muse-wonder-1); preview
GPT-6.1 Sol (OpenAI)$2$10$0.101.05MOff OpenClaw's list since gpt-6.2-sol
Gemini 4 Argon (Google)$2$10$0.101.05MNo. 3; $4 / $20 from Dec 1, 2026
Claude Sonnet 5.5 (Anthropic)$2$10$0.101MNo. 7
Grok 4.7 (xAI)$2$6$0.50500KNo. 10. Prompts of 200K+ tokens: $4 / $12
Gemini 3.1 Pro preview (Google)$2$12$0.201.05MPrompts over 200K tokens: $4 / $18
Mistral Medium 3.5$1.50$7.50—256KNo cached price listed
DeepSeek V4 Pro$1.32$3.96$0.0441MPeak-hour price; half off-peak
Grok 4.3 (xAI)$1.25$2.50$0.201MOlder Grok
Muse Spark 1.3 (Meta)$1.25$4.25$0.151.05MStandard mode
Llama 3.3 70B (Together AI)$1.04$1.04—128KOpen-weight; Together's price
GPT-5.4 mini (OpenAI)$0.75$4.50$0.075400KPrevious generation
Gemini 3.8 Flash (Google)$0.75$3.75$0.0751.05MDoubles from Jan 1, 2027
Mistral Large 4$0.70$2.10$0.071MCut from $1.36 / $4.18 on Oct 29, 2026, with the open-weight release
DeepSeek V4.1 Flash$0.30$1.20$0.0061MPeak-hour price; No. 11 on OpenClaw's list; No. 3 for OpenClaw on OpenRouter
Gemini 3.5 Flash-Lite (Google)$0.30$2.50$0.031.05M
GPT-5.4 nano (OpenAI)$0.20$1.25$0.02400KDeprecated; leaves the API Apr 1, 2027
Mistral Small 4$0.15$0.60—256KApache 2.0
GPT-OSS 120B (Together AI)$0.15$0.60—131KOpenAI's open-weight model; Together's price
Claude Haiku 5.5 (Anthropic)$0.10$0.50$0.011MPrompts over 100K tokens: $0.50 / $2.50
GPT-6 Luna (OpenAI)$0.10$0.50$0.011.05MSmallest GPT-6

Showing all 24.

Prices checked at each provider between October 17 and November 2, 2026 (all model prices). "No." is the position in OpenClaw's recommended-models.json on November 19, 2026. Five of the top ten, gpt-6.2-sol, gemini-4-carbon, gpt-6.2-astra, claude-fable-5.2 and muse-wonder, are not in our price data. Budget: under $1 per 1M input tokens. Mid-price: $1 to $2, not in the top 10. Context: 1.05M stands for 1,048,576 or 1,050,000 tokens.

Context isn’t the constraint for API models: the smallest window here is 128K tokens, against the roughly 17.6K OpenClaw sends before any history. Watch the long-prompt rates instead. Claude Haiku 5.5 costs five times as much past 100,000 tokens, a size a long main session can reach before compaction.

Using a subscription instead of an API key

A plan you already pay for can stand in for per-token billing, within its limits.

OpenAI: Codex and Sign in with ChatGPT

OpenClaw supports three OpenAI logins: a Codex login that uses your ChatGPT account, “Sign in with ChatGPT (Beta)”, which lets OpenClaw use your Codex allowance, and a Platform API key (OpenAI authentication). You pick one with openclaw models auth login --provider openai --method oauth|device-code|siwc|api-key. When both a plan and a key are set up, “automatic selection prefers the subscription route”, and when you hit the plan’s limit OpenClaw blocks that login until the reset (OpenAI runtimes).

The catches: Sign in with ChatGPT doesn’t support realtime voice or image generation in OpenClaw. If your Codex workspace lacks access to the default model, OpenClaw “does not silently downgrade”, so you may have to pick a model yourself (FAQ). On OpenAI’s side, its directory lists OpenClaw under “Open-source integrations” (OpenAI).

Anthropic: possible, with caveats

OpenClaw can reuse your Claude Code login or a token from claude setup-token. Its docs call Claude CLI reuse “a sanctioned auth path”, based on what Anthropic staff told the project, but also say “For Anthropic in production, API key auth is still the safer recommended path” and warn that “Anthropic token auth expires and can be revoked” (OAuth, Anthropic provider).

Anthropic’s own position has shifted during 2026. Subscriptions stopped covering third-party tools on April 4; an October 7 Help Center update says you “can still use the Claude Agent SDK, claude -p, and third-party apps with your subscription limits” (Anthropic Help Center); and the Claude Code terms still bar third-party developers from routing requests through Free, Pro or Max credentials on their users’ behalf (Claude Code legal). Our history of OpenClaw has the timeline.

One practical effect: with subscription-style OAuth/token or CLI logins, /usage shows tokens only, not a dollar cost, unless a local price is set (usage costs).

A cheaper model for heartbeats, compaction and side jobs

Side jobs can run on a cheaper model than the one that handles your requests:

  • Heartbeat. OpenClaw has replaced the heartbeat with ordinary automations: setup creates a “Proactive check” job that runs every 30 minutes in the agent’s main conversation, and you can change its schedule, prompt and model like any other job (heartbeat migration). An isolated job “starts with a fresh run context” instead of the conversation history (execution styles). The old isolatedSession and lightContext heartbeat settings are no longer documented.
  • Compaction. agents.defaults.compaction.model sets the model that summarizes long sessions (compaction).
  • Utility tasks. agents.defaults.utilityModel is “an optional lower-cost model for short internal tasks” (models).

At the calculator’s defaults, Opus 5.5 costs about $290 a month, of which about $176 is the heartbeat. Move only the heartbeat to Claude Haiku 5.5 and the total falls to about $119 (set “Heartbeat model” in the calculator to check).

One caution, which is our reading rather than the docs’: a scheduled check is a model-backed agent turn. If it checks your inbox or the web, it reads untrusted input with tools at hand, which is the case where the docs warn against weak models. A cheap check model fits best when the check is narrow. A setup along these lines, using model names from OpenClaw’s Anthropic page and its automations CLI (managing jobs):

{
  agents: {
    defaults: {
      model: {
        primary: "anthropic/claude-opus-5-5",
        fallbacks: ["anthropic/claude-sonnet-5-5"],
      },
    },
  },
}
# find the Proactive check job, then slow it down and give it a cheaper model
openclaw automations list
openclaw automations edit <job-id> --every 1h --model anthropic/claude-haiku-5-5

How to change the model

  • In chat: /model <model> changes the current session. Add -a to also make it the agent’s default, or -g the shared global default; /model default -s clears a session pin (models).
  • From the command line: openclaw models set <provider/model> sets it; openclaw models list and openclaw models status show what’s available and the state of each login.
  • In the config file: agents.defaults.model.primary and the ordered fallbacks list; per-agent overrides go under agents.entries.*.model, and agents.defaults.modelPolicy.allow limits which models can be chosen.

Models are named provider/model, such as anthropic/claude-opus-5-5; OpenRouter models use openrouter/<provider>/<model>. When a model fails, OpenClaw first rotates logins at the same provider, then moves to the next fallback. A model you pick explicitly with /model is strict, though: if it fails before replying, OpenClaw reports the failure instead of falling back (model failover).

Local models, briefly

Running the model yourself removes the token bill, not the docs’ warnings. They advise the “largest available model build” you can run, warn that “A model that loads or answers a short prompt may still fail an agent turn”, and note that “Local models do not provide hosted providers’ safety filters” (local models). Ollama and LM Studio models need tool support and at least 16K of context for OpenClaw to pick them up, while Ollama itself recommends at least 64K for agents. Our guide to OpenClaw with local models runs the numbers, and how to rent a GPU covers the cloud option, with the cheapest cloud GPU for each memory size.

Which model to pick

  • An agent with tools that reads email, the web or group chats: a model from the top of OpenClaw’s list. Claude Opus 5.5 is first; Gemini 4 Argon (third, until its December 1 price rise) and Claude Sonnet 5.5 (seventh) cost half as much per token.
  • You already pay for ChatGPT: sign in with it, and set an API model as a fallback for when you hit the plan’s limit.
  • A chat-only assistant with trusted input and no tools: a budget model such as Claude Haiku 5.5, GPT-6 Luna or DeepSeek V4.1 Flash.
  • In every case: put the scheduled check (heartbeat), compaction and utility jobs on a cheaper model, and turn on sandboxing. Compare other agents in self-hosted AI agents, and model profiles in AI models.

FAQ

What is the best model for OpenClaw?

Per OpenClaw’s docs, the strongest latest-generation model you have access to, especially if the agent uses tools or reads untrusted content. As of November 19, 2026, OpenClaw’s recommended list starts with Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Argon.

What model does OpenClaw use by default?

A fresh setup with no primary model uses openai/gpt-6-astra with a ChatGPT/Codex subscription login; on the API it costs $10 / $50 per million tokens. A fresh Anthropic setup uses Claude Opus 5.5, and OpenRouter onboarding uses openrouter/auto.

Can I use OpenClaw with Claude?

Yes: with an Anthropic API key, which OpenClaw’s docs recommend for production, or by reusing your Claude Code login or a setup token. Anthropic’s rules on subscriptions in third-party tools changed several times in 2026, so check its current terms first.

Can I use OpenClaw with Codex or a ChatGPT plan?

Yes. OpenClaw supports a Codex login and “Sign in with ChatGPT (Beta)”, which draw on your plan’s Codex allowance instead of API billing, until you reach the plan’s limit.

How do I change the model in OpenClaw?

Type /model <provider/model> in chat to switch the current session (add -a or -g to make it a default), or run openclaw models set <provider/model>. Fallbacks go in agents.defaults.model.fallbacks.