How to set up OpenClaw with a 5abeer API key
Install OpenClaw, add 5abeer as a model provider in openclaw.json, check the file and chat with its agent on models paid from your 5abeer balance.
On this page
To run OpenClaw on 5abeer, install OpenClaw, add a khabeer provider and a default model to ~/.openclaw/openclaw.json with your 5abeer API key, and check the file with openclaw config validate. Then run openclaw chat to talk to its agent in the terminal. Every request is paid from your 5abeer balance. With a subscription, the 5abeer AI app does this setup for you.
What you get#
- OpenClaw as it ships, with 5abeer ready as a model provider.
- The Claude, GPT and Gemini models available in OpenClaw, below their official price.
- Usage and cost per key in your dashboard.
Before you start#
- A terminal on macOS, Linux or Windows.
Node.js24.16 or newer on the 24 line, or 26.1 or newer, only if you install OpenClaw withnpm. The install script sets up Node for you.- An API key for the provider of the model you will use (create one). The config below uses a Claude model, so it needs a key for Claude models.
With a subscription: the 5abeer AI app#
If you have a 5abeer subscription that includes OpenClaw, the 5abeer AI app sets it up on your subscription in one click, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in What each plan runs. With an API key, follow the manual setup below.
Manual setup#
Install OpenClaw#
These commands skip OpenClaw's setup wizard, because the next step sets the provider for you.
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboardOn npm 11.15 or older, run the npm command without
--allow-scripts=openclaw.Add the settings#
Add the
modelsandagentssections to~/.openclaw/openclaw.json, keeping your other settings if the file already exists. The key lives inside the file, so replaceYOUR_5ABEER_API_KEYwith your key.openclaw.json{ "models": { "providers": { "khabeer": { "baseUrl": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY", "api": "openai-completions", "models": [ { "id": "claude-sonnet-5.5", "name": "Claude Sonnet 5.5" } ] } } }, "agents": { "defaults": { "model": { "primary": "khabeer/claude-sonnet-5.5" } } } }~/.openclaw/openclaw.json
Check the file#
Terminalopenclaw config validate
Pick a model#
These models run in OpenClaw today. Add the model to the models list in the config file and put its id after khabeer/ in primary. Remember that each key works only with its own provider's models.
Claude Sonnet 5.5DefaultInput$0.60Output$3Context1M
Claude Opus 5.5Input$1.20Output$6Context1M
GPT-6.1 SolInput$0.60Output$3Context922K
Gemini 4 ArgonInput$0.60Output$3Context—Claude Fable 5.1Input$3Output$15Context—
Claude Fable 5Input$3Output$15Context1M
Claude Opus 4.6Input$1.50Output$7.50Context1M
Claude Opus 4.7Input$1.50Output$7.50Context1M
Claude Opus 5Input$1.50Output$7.50Context1M
Claude Sonnet 5Input$0.60Output$3Context1M
Claude Sonnet 4.6Input$0.90Output$4.50Context1M
Claude Haiku 4.5Input$0.30Output$1.50Context200K
GPT-6 AstraInput$3Output$15Context—
GPT-6 SolInput$0.60Output$3Context922K
GPT-6 LunaInput$0.03Output$0.15Context922K
GPT-5.6 LunaInput$0.06Output$0.36Context400K
GPT-5.6 TerraInput$0.60Output$3.60Context400K
GPT-5.6 SolInput$1.20Output$6Context400K
GPT-5.5Input$1.50Output$9Context1.05M
GPT-5.4Input$0.75Output$4.50Context1.05M
GPT-5.4 MiniInput$0.23Output$1.35Context400K
GPT-5.2Input$0.53Output$4.20Context272K
Gemini 2.5 ProInput$0.38Output$3Context1M
Gemini 3.8 FlashInput$0.23Output$1.13Context—
Gemini 3 FlashInput$0.15Output$0.90Context1M
Gemini 3.1 ProInput$0.60Output$3.60Context1M
Official price from the provider's page, checked October 19, 2026.
All models and pricesIf you get an error#
INVALID_API_KEY: the key in the file is wrong or was copied only in part.MODEL_PLATFORM_NOT_ALLOWED: the model belongs to a provider other than the key's.INSUFFICIENT_BALANCE: your balance doesn't cover this request.
Every code and what it means is in Errors and fixes.
Questions#
Why skip the setup wizard?#
The wizard asks you to pick a model provider and sign in to it. The 5abeer settings in this guide replace that step, so you don't need a separate provider account.
What if openclaw config validate reports an error?#
The file usually has a typo, or the new sections were pasted inside another section. Compare it with the settings above, save it, then run the command again.
Where is my key stored?#
In ~/.openclaw/openclaw.json on your machine, as plain text. Don't share the file, and replace the key there if you create a new one.
How is a request billed?#
Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in Pricing and balance.
Was this page helpful?