Setup guide

Claude Code, billed in KES.

Claude Code speaks the Anthropic Messages API. Fikra serves that shape, so two environment variables is the whole setup and no code changes.

1. Get a key

Create an account and copy a key starting fk_live_. Top up from $5.00 by M-Pesa, Airtel Money or card.

Get a key

2. Set the endpoint

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.

3. Pick a model

Any model id in the catalogue works. Sensible defaults:

ForModelPrice per 1M
Cheapest capabledeepseek-v4.1-flash-1017$0.075 in / $0.30 out
Free, no cardqwen3.8-27b-free$0
Harder reasoningdeepseek-v4-pro-pinnedsee pricing

4. What works

5. If something breaks

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.

Pricing · Models · Claude Code setup