Claude Code speaks the Anthropic Messages API. Fikra serves that shape, so two environment variables is the whole setup and no code changes.
Create an account and copy a key starting fk_live_. Top up from $5.00 by M-Pesa, Airtel Money or card.
export ANTHROPIC_BASE_URL="https://api.fikraapi.co.ke"
export ANTHROPIC_AUTH_TOKEN="fk_live_your_key_here"
claude
Claude model names are mapped to Fikra models, so anything that hard codes claude-sonnet-4-5 keeps working. Full detail in the Claude Code guide below.
Any model id in the catalogue works. Sensible defaults:
| For | Model | Price per 1M |
|---|---|---|
| Cheapest capable | deepseek-v4.1-flash-1017 | $0.075 in / $0.30 out |
| Free, no card | qwen3.8-27b-free | $0 |
| Harder reasoning | deepseek-v4-pro-pinned | see pricing |
finish_reason: "tool_calls".Every response carries a request id. Quote it and the exact time to [email protected] and the failure can be traced to that one call.