brewkeg ~%
brewkeg~%cat README.md
~/brewkeg/README.md

Stop paying for ai you can't use!

brewkeg is a hosted gateway for Claude Code and the Codex CLI — billed in Naira, no dollar card, no USD floor. Your terminal points at our base URL and keeps working while we route around quota limits.

your claude code quota expires unused, every month
rate limits cut your session mid-flow, and you wait it out
usd pricing means a dollar card you don't have
pay in naira — flat token pool, no usd floor
auto-fallback across model pools when a limit hits
hosted end-to-end: point your cli, keep working
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://brewkeg.dev",
    "ANTHROPIC_AUTH_TOKEN": "rc_live_…your-key"
  }
}
$ claude
gateway online · billing ngn · no card required
brewkeg~%cat platform.md
~/brewkeg/platform.md

$ not just a proxy — a platform

A proxy forwards bytes. brewkeg makes a decision per request: which provider is healthy, which plan you belong to, whether to fall back, whether to rate-limit. The proxy is the smallest part.

a plain proxy
brewkeg
whenrequest arrives
proxyPOST /v1/messages → upstream
brewkeg POST /v1/messages → route table lookup by plan + model + region
whenupstream 429s
proxyclient sees 429
brewkeg next healthy provider in <10ms, client sees 200
whenupstream is down
proxyclient sees 502
brewkeg circuit opens, second provider tried, you see 200
whenfree quota is left
proxyclient keeps paying
brewkeg Pro plan drains free tier first, paid tier last
whenyou run out of Naira
proxyrequests keep flowing, invoice arrives
brewkeg hard cutoff at 0, dashboard warns at 80%

# every row above is a real code path in the proxy — not marketing slideware.

brewkeg~%cat countries.md
~/brewkeg/countries.md

$ AI blocked in your country? not anymore

Anthropic and OpenAI aren't directly billable from a Nigerian bank card. We don't pretend otherwise — we route you to upstream providers that are billable from your bank, and we meter your spend in Naira.

Nigeria
problem Anthropic API not billable here. USD cards declined.
fix Naira billing via Paystack · bank transfer or local card · routes to upstream providers that ARE billable from NG
China + APAC
problem Claude code servers region-restricted.
fix Flat-rate OpenCode Go pool (₦12k/mo) — same Anthropic-format API, no TLS gymnastics on your end
Russia / CIS
problem Multiple providers block egress.
fix Multi-hop egress fallback — the gateway picks the route that actually connects
Iran
problem Card freezes + endpoint filtering.
fix Naira-metered access — you pay in NGN for the upstream traffic, no card ever hits a US vendor
EU
problem GDPR / data residency questions.
fix We log metadata only (model, tokens, latency); full prompts opt-in. No prompts ever leave the gateway in cleartext
brewkeg~%cat tools.md
~/brewkeg/tools.md

$ every tool you already run

We don't ship a CLI. We sit in front of yours. Point the base URL at https://brewkeg.dev, the CLI keeps thinking it's talking to Anthropic.

Claude Code
primary
env ANTHROPIC_BASE_URL

The flagship. Set the base URL, drop in your key, keep working.

Codex CLI
primary
env OPENAI_BASE_URL

Same Anthropic-format gateway — Codex requests translate and route.

OpenCode
env provider.json → baseURL

Flat-rate Go pool (₦12k/mo) — your existing config, just points at us.

Generic OpenAI-compat
env OPENAI_BASE_URL

Anything that speaks /v1/chat/completions works. Cline, Continue, Roo — pick one.

#more CLIs land as anthropic / openai upstream support stabilizes. We don't promise tools we can't actually route.

brewkeg~%man brewkeg
BREWKEG(1)
name
brewkeg — a hosted Claude Code / Codex CLI gateway, billed in Naira.
  1. [01]

    sign up

    An email and a password. We mirror the session into Supabase; the local Postgres row holds your subscription and key.

    $ brewkeg signup
    # creates your account, no card asked
  2. [02]

    pay in Naira

    Three plans, billed monthly. Paystack checkout, bank transfer or card — whatever your bank supports. We cancel and re-provision on plan change.

    $ brewkeg plans
    # Starter ₦5,000 · Pro ₦12,000 · Scale ₦25,000
  3. [03]

    paste two env vars

    The dashboard hands you a key. Drop it into your shell with the base URL. Run claude. You're routed through the gateway.

    $ claude
    # Anthropic-format requests now hit brewkeg
what we don't do
We don't patch Claude Code. We don't fork it. We don't ask for your Anthropic credentials. The CLI keeps thinking it's talking to Anthropic; we just sit in the middle and route.
brewkeg~%top -b -n1
~/brewkeg/metrics

$ the machine is humming

One proxy, a lot of traffic. Every request below was routed, metered, and billed in Naira.

tokens processed (30d)
1.5B+
every request metered
developers on brewkeg
400K+
ng + diaspora
upstream availability
99.9%
3-layer failover
requests / day
10M+
routed at the edge

#the dashboard meters every request — these aren't vanity numbers.

brewkeg~%cat comparison.md
~/comparison.md
#brewkeg · proclaude pro subdirect api (usd)self-host router
monthly₦12,000 flat~$20 (~₦30,000)per-token, unbounded (e.g. ~$30 (~₦45,000)/mo mid use)free, but you maintain it
cardnone — paystackinternational card (~$20 cap = ~₦30,000)dollar carddollar card upstream
quota8m tokens, pooledexpires unusedpay per tokenyou manage every key
failoverbuilt-in across poolsnonenonemanual
opszero — hostedyou run it
# NGN equivalents at ₦1 = $1/1500 · anchored at ₦/$1,500, refresh when the rate drifts ~10%
brewkeg~%cat pricing.md
~/brewkeg/pricing.md
All prices are in Nigerian Naira. Pay with your local card or bank transfer via Paystack. No FX surprises — the price you see is the price you pay.
plan
starter

Quota-based. Cheap open models. For trying things out.

5,000/ mo
  • 2M tokens / mo · 2k requests
  • Claude Haiku · GPT-5 Nano · Gemini Flash
  • Naira billing via Paystack
recommended
pro

Flat-rate pool, auto-fallback across models. For shipping.

12,000/ mo
  • 8M tokens / mo · 8k requests
  • Claude Sonnet · GPT-5 · Gemini Pro · Grok
  • Naira billing via Paystack
plan
scale

Frontier-model routing. For teams and heavy users.

25,000/ mo
  • 20M tokens / mo · 20k requests
  • + Claude Opus · GPT-5 Pro · Gemini 3 Pro
  • Naira billing via Paystack
# prices in · cancel anytime · no prorated refunds · keys remain valid until period end
brewkeg~%grep -ri "tos\|fx\|privacy\|log" docs/
~/brewkeg/docs/
Is this legal? What's your relationship with Anthropic?
Claude Code supports a configurable base URL — that's the integration we use. We're an authorized API customer of the upstream providers (OpenRouter, Anthropic API). We are not reselling your subscription, and we are not touching Claude Code.
What FX rate are you using?
Paystack settles in NGN at their published rate. We price in whole Naira so the rate volatility is in our margin, not yours. If you see a 3% gap on your statement, that's Paystack's FX spread — not us.
Do you log my code?
We log metadata — model, provider, token count, latency, status — for billing and quotas. Full prompt content is opt-in and stored only if you turn the toggle on. By default we don't see your code.
What if the upstream pool dies?
Auto-fallback routes you to the next healthy provider in milliseconds. Quota-tier plans are more exposed to upstream churn than flat-rate plans — we document which is which on each plan page.