OpenClaw
Configure OpenClaw to use AICredits as your API provider — get INR billing, model switching, and provider fallback in any OpenClaw project.
Use this page with an AI assistant
Opens a new chat with this docs URL and the correct AICredits base URLs.
OpenClaw is an OpenAI-compatible Claude client. You can point it at AICredits to get unified INR billing, automatic provider fallback, and access to all supported models — not just Claude.
Overview
AICredits exposes an OpenAI-compatible API at https://api.aicredits.in/v1. Any client that supports a custom OpenAI base URL — including OpenClaw — can use AICredits as a drop-in backend.
Benefits of routing OpenClaw through AICredits:
- Pay in INR — no USD card required
- Prepaid credits with auto-reload support
- Access Claude, GPT, Gemini, Llama, Mistral, and more from one key
- Automatic failover when a provider is down
- Per-request usage visible in the AICredits dashboard
Configuration
Base URL & API Key
In OpenClaw's settings, find the API Provider or Custom Endpoint section and set:
| Setting | Value |
|---|---|
| Base URL | https://api.aicredits.in/v1 |
| API Key | sk-… (your AICredits key) |
| Model | anthropic/claude-sonnet-4.5 (or any supported model) |
Generate your AICredits API key at aicredits.in/dashboard/keys. Keys start with sk-.
Model Selection
OpenClaw typically lets you type a model name directly. The most common Claude models available through AICredits:
| Model | Use for | Context |
|---|---|---|
anthropic/claude-sonnet-4.5 | Everyday tasks, coding | 200k tokens |
anthropic/claude-opus-4.5 | Complex reasoning, research | 200k tokens |
anthropic/claude-haiku-4.5 | Fast responses, summaries | 200k tokens |
claude-3-5-sonnet | Vision, documents | 200k tokens |
You can also use non-Claude models — for example gpt-4o, gemini-2-flash, or llama-4-maverick-17b. See the Models page for the full list.
Example Config
If OpenClaw accepts a JSON config file:
{
"api_base_url": "https://api.aicredits.in/v1",
"api_key": "sk-your-aicredits-key",
"model": "anthropic/claude-sonnet-4.5",
"max_tokens": 8192
}If OpenClaw uses environment variables:
export OPENAI_API_BASE="https://api.aicredits.in/v1"
export OPENAI_API_KEY="sk-your-aicredits-key"
export OPENAI_MODEL="anthropic/claude-sonnet-4.5"Available Models
AICredits supports 100+ models. Use the public model listing or call the models API to get the full list:
curl https://api.aicredits.in/v1/models \
-H "Authorization: Bearer sk-your-aicredits-key"The response is OpenAI-compatible — each model has an id field you can paste directly into OpenClaw.
Troubleshooting
401 Unauthorized — Your API key is missing or incorrect. Make sure the key starts with sk- and was copied in full from the AICredits dashboard.
402 Insufficient Credits — Your AICredits wallet balance is too low. Top up at aicredits.in/dashboard/billing.
Model not found — Check that the model ID exactly matches an active model. Use GET /v1/models to see all available IDs.
SSL / certificate errors — Make sure OpenClaw is using the full URL including https:// and that your system trusts standard CA certificates.
For additional help, open a support request via the AICredits dashboard or join the community Discord.