Use Gab AI with OpenClaw: setup, access and checks
Add Gab models to your OpenClaw gateway while keeping your existing providers and settings.
Connect your client to Gab AI
Have your client installed and a Gab API key ready. Follow the configuration for your client below, then select a model and try a first prompt.
Merge a Gab custom provider
Replace YOUR_GAB_API_KEY with your complete Gab key and run the export command before starting the gateway from that shell. For a gateway launched by a service, set the same variable in that service’s environment. Add the Gab entry under models.providers and set agents.defaults.model.primary to gab/arya. Use models.mode: merge to keep your existing provider catalog.
export GAB_API_KEY="YOUR_GAB_API_KEY"{
"models": {
"mode": "merge",
"providers": {
"gab": {
"baseUrl": "https://gab.ai/v1",
"api": "openai-completions",
"apiKey": "${GAB_API_KEY}",
"models": [
{
"id": "arya",
"name": "Arya"
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "gab/arya"
}
}
}
}Select Gab in your gateway
Save the merged configuration and reload through your normal gateway procedure. Check the active provider and default model, then send the prompt below. Use the gateway’s provider schema rather than replacing it with an unrelated YAML client example.
Try a first prompt and follow-up
Select your configured Gab provider and model in OpenClaw. Send the first prompt, then continue the same conversation with the follow-up.
For a workshop, income is USD 480 and base cost is USD 370. Reply with the remaining amount only.Expected result: USD 110.
Change only the base cost to USD 395. Keep income at USD 480 and reply with the new remaining amount only.Expected result after the change: USD 85.
Check the API connection separately
This cURL example checks Chat Completions directly. Use the in-client prompts above to check your OpenClaw connection.
curl -sS https://gab.ai/v1/chat/completions \
-H "Authorization: Bearer $GAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "arya",
"messages": [
{
"role": "user",
"content": "For a workshop, income is USD 480 and base cost is USD 370. Reply with the remaining amount only, as USD 110."
}
],
"max_tokens": 1024,
"stream": false
}'API access and usage
Authenticated API requests require active Plus or Plus Premium and applicable credits. API use is billed separately from included in-app Chat. Daily request limits and credit balance are separate; the authentication reference explains allowances and reset times.
Resolve failed or incomplete requests
Read the client’s error and confirm its active provider, base URL and model. For key, account or rate-limit errors, use the authentication guide. If an answer stops early, inspect the completion status and output budget before retrying. For tool failures, check the selected model’s capabilities and the client’s tool configuration.