Back to Blog

The Best LLM Models for OpenClaw in 2026: Claude, GPT, Gemini and Open Weights

The best LLM for OpenClaw in November 2026: Claude Sonnet 5.5 by default, Haiku 5.5 or GPT-6 Luna on a budget, Qwen3.8 locally, with current prices.

Sam Okafor9 min read

#Which model should you run OpenClaw on right now?

Run OpenClaw on Claude Sonnet 5.5 (anthropic/claude-sonnet-5-5) unless you have a specific reason not to. At $2 per million input tokens and $10 per million output tokens with a 1M token context window, it is the model Anthropic describes as "The best combination of speed and intelligence", at half the price of Claude Opus 5.5.

On a budget, run Claude Haiku 5.5 (anthropic/claude-haiku-5-5) or GPT-6 Luna (openai/gpt-6-luna). Both cost $0.10 in and $0.50 out per million tokens on shorter prompts, which is a twentieth of Sonnet 5.5's input price. If you want open weights instead, Kimi K2.5 (openrouter/moonshotai/kimi-k2.5) costs $0.50 in and $2.50 out on OpenRouter.

For zero marginal cost, run qwen3.8:27b through Ollama on hardware you already own. It is an 18GB download with a 256K context window, the same size class as the qwen3.6:27b build this page recommended before.

If your agent runs long unattended chains where a wrong step is expensive, step up to Claude Opus 5.5 at $4 / $20 or Claude Fable 5.2 at $8 / $40. Anthropic points Fable 5.2 at "demanding reasoning and long-horizon agentic work", which is a fair description of what an always-on agent does overnight.

#How the top models compare for agent work

Prices below are per million tokens, current as of November 14, 2026, from each provider's official pricing page and, for Kimi K2.5, from OpenRouter.

ModelProviderInput $/M tokensOutput $/M tokensContext windowBest for
Claude Fable 5.2Anthropic$8.00$40.001MLong-horizon unattended runs
Claude Opus 5.5Anthropic$4.00$20.001MComplex agentic coding
Claude Sonnet 5.5Anthropic$2.00$10.001MThe default daily driver
Claude Haiku 5.5Anthropic$0.10 up to 100K / $0.50 above$0.50 up to 100K / $2.50 above1MHeartbeats and quick lookups
GPT-6 AstraOpenAI$10.00$50.001.05MHardest end-to-end work
GPT-6.1 SolOpenAI$2.00$10.001.05MBalanced OpenAI option
GPT-6.1 TerraOpenAI$1.00$5.001.05MComputer use and writing
GPT-6 LunaOpenAI$0.10$0.501.05MHigh-volume background tasks
Gemini 4 CarbonGoogle$2.00 (to Nov 30)$10.00 (to Nov 30)1MDeep reasoning, no free tier
Gemini 4 HydrogenGoogle$1.50$7.501MEveryday agent work, free tier
Gemini 3.8 FlashGoogle$0.75$3.751MFast agent loops, free tier
Kimi K2.5Moonshot AI$0.50$2.50256KCheap agent work, open weights

Five caveats the table cannot hold. OpenAI's prices are for short context, up to 272K input tokens; above that GPT-6 Luna costs $0.20 / $0.75, GPT-6.1 Terra $2 / $7.50, GPT-6.1 Sol $4 / $15 and GPT-6 Astra $20 / $75. Claude Haiku 5.5's lower rates apply to prompts up to 100,000 tokens. Gemini 4 Carbon and Gemini 4 Argon are both $2 / $10 through November 30, 2026 and $4 / $20 from December 1, and neither is available on the free tier. Gemini 3.8 Flash is $0.75 / $3.75 through December 31, 2026 and $1.50 / $7.50 from January 1, 2027. The pricing page lists no scheduled change for Gemini 4 Hydrogen's $1.50 / $7.50.

Claude 4.7 and later models use a newer tokenizer that, in Anthropic's words, "produces approximately 30% more tokens for the same text". A price comparison against an older model is therefore less favorable in practice than the sticker suggests. Compare providers on a real workload of your own, not on the per-token price alone.

Want step-by-step guides for this and more?

ClawDocx Pro includes 500+ curated prompts, setup guides, SKILL.md files, and templates — everything to make your AI agent unstoppable.

See plans & pricing

#What about open models and local setups?

Open weights are the price floor for hosted agent work. Kimi K2.5's weights ship under a Modified MIT License with a 256K context window and the interleaved thinking and multi-step tool calling of Kimi K2 Thinking, and its repository describes an agent swarm that "decomposes complex tasks into parallel sub-tasks executed by dynamically instantiated, domain-specific agents". At a quarter of Claude Sonnet 5.5's input price, that is why it shows up in so many OpenClaw configs.

Newer Kimis exist. OpenClaw's OpenRouter catalog also carries openrouter/moonshotai/kimi-k2.6, and fresh onboarding of the direct moonshot provider now selects moonshot/kimi-k3. K2.5 is the build with the longest OpenClaw track record behind it, so treat the newer ones as experiments against that baseline.

For fully local setups, haimaker.ai's guide to Ollama models for OpenClaw, last checked on October 14, 2026, suggests comparing qwen3.8:27b, muse-glimmer:30b and qwen3-coder:30b on a workstation, and is explicit that these candidates "have not passed a new common OpenClaw benchmark". It calls Qwen3.6 27B "an older baseline" worth keeping if your setup already works. Ollama's own library backs up the sizing: qwen3.8:27b is an 18GB download and qwen3.6:27b 18GB to 19GB, both with a 256K context window.

Two honest limits on local models. They still trail the frontier on long tool-use chains, and they occupy the memory your other applications wanted. Keep a cheap cloud model in the fallback chain rather than pretending a 27B model will never get stuck.

Model refs take the form provider/model, or provider/vendor/model on aggregators like OpenRouter, and live under agents.defaults.model in ~/.openclaw/openclaw.json, which OpenClaw reads as JSON5. primary is the model the agent starts on, and fallbacks is an ordered list it moves down when the primary is unavailable. Set your provider keys first; API key setup covers where they belong.

#Quality first

json5
// ~/.openclaw/openclaw.json
{
agents: {
defaults: {
model: {
primary: "anthropic/claude-opus-5-5",
fallbacks: ["anthropic/claude-sonnet-5-5", "openai/gpt-6-astra"],
},
},
},
}

#Balanced, the configuration most people should run

json5
{
agents: {
defaults: {
model: {
primary: "anthropic/claude-sonnet-5-5",
fallbacks: ["anthropic/claude-haiku-5-5", "openai/gpt-6-luna"],
},
},
},
}

#Budget

OpenClaw lists this ref in its OpenRouter catalog, beside openrouter/moonshotai/kimi-k2.6.

json5
{
agents: {
defaults: {
model: {
primary: "openrouter/moonshotai/kimi-k2.5",
fallbacks: ["anthropic/claude-haiku-5-5"],
},
},
},
}

#Free and local

json5
{
models: {
providers: {
ollama: {
baseUrl: "http://127.0.0.1:11434",
apiKey: "ollama-local",
api: "ollama",
models: [
{ id: "qwen3.8:27b", name: "Qwen3.8 27B" },
],
},
},
},
agents: {
defaults: {
model: {
primary: "ollama/qwen3.8:27b",
fallbacks: ["anthropic/claude-haiku-5-5"],
},
},
},
}

Three details from the OpenClaw docs are easy to get wrong. The baseUrl is the native Ollama address with no /v1 suffix, api: "ollama" is what guarantees native tool-calling behavior rather than an OpenAI-compatible approximation, and the apiKey is the placeholder the docs use, which you can omit when OLLAMA_API_KEY is set in the environment. Listing a model in models pins its settings without hiding the rest: on a self-hosted endpoint OpenClaw still discovers the other models installed on that host, and only hosted https://ollama.com restricts you to the listed ones.

You can skip the file entirely and use the CLI:

bash
openclaw models set anthropic/claude-sonnet-5-5
openclaw models fallbacks add anthropic/claude-haiku-5-5
openclaw models list

#Multi-model routing

Running a single model for everything is the expensive way to run an agent. OpenClaw gives you three levers for spreading the load.

The first is the fallback chain shown above. It is failover rather than cost routing: OpenClaw moves down the list when the primary is unavailable, and its model failover page documents how that interacts with auth profile rotation and cooldowns. It matters most for an always-on agent that cannot afford to sit out a provider incident.

The second is per-agent models. agents.entries.*.model overrides agents.defaults.model, so a sub-agent that only summarizes an inbox can sit on Claude Haiku 5.5 or GPT-6 Luna while your main agent stays on Claude Sonnet 5.5. Splitting work across agents is how you get task-level cost control without guessing at a routing table.

The third is the utility model. agents.defaults.utilityModel is, in the docs' words, "an optional lower-cost model for short internal tasks", such as generated session titles and progress narration, so those calls stop running on your primary.

If you want an agent pinned to a fixed set of models, agents.defaults.modelPolicy.allow takes exact refs or trailing wildcards such as anthropic/*. openclaw models set and openclaw models aliases add can add model entries, but the docs say they "never change modelPolicy.allow", so the allowlist stays under your control.

Start with one primary and one cheap fallback. Add per-agent overrides only after a week of real usage has shown you where the tokens actually go.

#How to keep costs under control

Four habits move the bill more than the model choice itself does.

Cache your prompts. Cache reads cost 10% of the base input price on most Claude models, 5% on Claude Opus 5.5 and Claude Sonnet 5.5, and 2.5% on Claude Fable 5.2. An agent that re-sends the same system prompt, soul file and memory on every turn is the ideal caching workload.

Batch anything that is not urgent. Anthropic's Batch API is 50% off both input and output. Nightly digests, backlog triage and bulk summarization do not need to be synchronous.

Demote background work. Heartbeats, classification and routing do not need a frontier model. Claude Haiku 5.5 or GPT-6 Luna at $0.10 / $0.50 on shorter prompts handle them for a fraction of the price, and utilityModel does the same for OpenClaw's own housekeeping calls.

Push the noisy majority to a free tier or local model. Google AI Studio's free tier covers Gemini 4 Hydrogen and Gemini 3.8 Flash, configured through the same models.providers block as any other provider, and a local qwen3.8:27b costs only electricity.

Set a spending cap on every provider account before you leave an agent running overnight. Our cost optimization guide has the full budgeting framework, including how to estimate a monthly figure from a week of real usage.

Anthropic, OpenAI and Google all changed their lineups between September and November 2026, and two Google prices change again within weeks of this update. Check the provider pricing pages in the sources below before you commit to a monthly budget.

Frequently asked questions

Which LLM should I use for OpenClaw in November 2026?
Claude Sonnet 5.5 is the default pick at $2 per million input tokens and $10 per million output tokens, with a 1M token context window. Step up to Claude Opus 5.5 at $4 and $20 for long or high-stakes runs, and drop to Claude Haiku 5.5 or GPT-6 Luna, both $0.10 and $0.50 on shorter prompts, when cost matters more than depth.
What is the cheapest way to run an OpenClaw agent?
Running a local model through Ollama costs nothing per token: qwen3.8:27b is an 18GB download with a 256K context window. If you want a hosted model instead, Claude Haiku 5.5 and GPT-6 Luna both cost $0.10 in and $0.50 out per million tokens on shorter prompts, and Google AI Studio's free tier covers Gemini 4 Hydrogen and Gemini 3.8 Flash.
Can OpenClaw fall back to a second model automatically?
Yes. Set agents.defaults.model.fallbacks in openclaw.json to an ordered list of provider/model refs, or run openclaw models fallbacks add. OpenClaw moves down the list when the primary is unavailable; its model failover page covers how that interacts with auth profile rotation and cooldowns.
Do I need a 1M token context window for an OpenClaw agent?
Rarely. A 1M window earns its keep when your agent reads a whole codebase or a long document set in a single pass. Shorter prompts are also cheaper on some models: Claude Haiku 5.5's lower rate applies up to 100,000 tokens and rises fivefold above it, and GPT-6 Luna's applies up to 272K tokens.
Is Claude Opus 5.5 worth the extra cost over Claude Sonnet 5.5?
Opus 5.5 costs $4 in and $20 out per million tokens against Sonnet 5.5's $2 and $10, so it is twice the price. Anthropic's own models overview says to start with Opus 5.5 for most workloads, so it pays off on long tool-use chains where a wrong step is expensive. For an always-on agent doing routine work, Sonnet 5.5 is the better value.
Which local model runs on a 16GB machine?
16GB is tight for the 27B-class models, which are 18GB downloads before context and runtime overhead. haimaker.ai suggests starting smaller machines on Gemma 4 E4B or Qwen3 8B, and notes that gpt-oss:20b is about 14GB and can be tight on 16GB once a session grows. Keep a cheap cloud fallback such as Claude Haiku 5.5 for anything the local model fumbles.

Sources

  1. Claude API pricing
  2. Claude models overview
  3. OpenAI API pricing
  4. OpenAI models
  5. OpenAI: GPT-6 Luna
  6. Gemini Developer API pricing
  7. Gemini 4 Hydrogen model reference
  8. Gemini 4 Carbon model reference
  9. Gemini 3.8 Flash model reference
  10. OpenClaw: Models CLI
  11. OpenClaw: Configuration
  12. OpenClaw: OpenRouter
  13. OpenClaw: Moonshot AI
  14. OpenClaw: Ollama configuration
  15. OpenRouter: Kimi K2.5
  16. Kimi K2.5 model repository
  17. haimaker.ai: best local LLMs for OpenClaw
  18. Qwen3.8 in the Ollama library
  19. Qwen3.6 in the Ollama library

Get the full experience with ClawDocx Pro

Access 500+ prompts, step-by-step guides, SKILL.md files, and more. Everything you need to master OpenClaw.

Start Free Trial

Related Posts