Skip to content

Use Claude Code with MaxonForge

Claude Code talks to an Anthropic Messages endpoint. MaxonForge serves that format, so you only change where Claude Code sends requests and which key it uses. You pay from a prepaid rupee balance with UPI or card instead of an international card.

Base URL https://www.maxonforge.com·Pay UPI or card, from ₹100

Set it up

  1. 1

    Create an API key

    Sign up, verify your email, top up from ₹100, then create a key in Dashboard → API Keys. Copy it; it starts with sk_mf_.

  2. 2

    Set the base URL and key

    Use the bare origin as the base URL. Claude Code adds /v1/messages itself, so a URL that already ends in /v1 produces a doubled path and a 404. Set the model to an ID from the catalogue.

    export ANTHROPIC_BASE_URL=https://www.maxonforge.com
    export ANTHROPIC_AUTH_TOKEN=sk_mf_your_key
    export ANTHROPIC_MODEL=MODEL_ID
    claude
  3. 3

    Or save it in settings.json

    To keep the setup across terminals, put the same values in ~/.claude/settings.json.

    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://www.maxonforge.com",
        "ANTHROPIC_AUTH_TOKEN": "sk_mf_your_key",
        "ANTHROPIC_MODEL": "MODEL_ID"
      }
    }

Check that it works

Before opening Claude Code, check the key and model with one request:

curl https://www.maxonforge.com/v1/messages \
  -H "x-api-key: sk_mf_your_key" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"MODEL_ID","max_tokens":64,"messages":[{"role":"user","content":"Hello"}]}'

Replace sk_mf_your_key with your key and MODEL_ID with an ID from the catalogue.

Models you can use with Claude Code

USD per 1M tokens. Use the model ID exactly as shown. List price is the provider's published rate.

Model IDYou pay in / out
claude-fable-5-1$1.00 / $5.00
claude-fable-5$1.00 / $5.00
claude-opus-5-5$0.400 / $2.00
claude-opus-5$0.500 / $2.50
claude-sonnet-5-5$0.240 / $1.20
claude-sonnet-5$0.240 / $1.20

See every model and live rate

Common errors

404 on /v1/v1/messages

ANTHROPIC_BASE_URL ends in /v1.

Use https://www.maxonforge.com with no path.

401

The key is missing, mistyped or revoked.

Copy the key again from Dashboard → API Keys. MaxonForge website keys start with sk_mf_.

402 insufficient_credits

The prepaid balance cannot cover the request. Nothing was charged.

Top up from ₹100 in Dashboard → Top up, then retry the same call.

404 model_not_found

The model ID is not in the published catalogue.

Copy an exact ID from the model catalogue at /models.

Questions

Do I need an Anthropic account or an international card?
No. Your MaxonForge key and prepaid balance are enough. You top up in rupees with UPI or card, from ₹100.
Which models can Claude Code use here?
Any model in the catalogue that speaks the Messages format. Set ANTHROPIC_MODEL to its exact ID from /models.
How do I see what a session cost?
Every request is metered and listed in Dashboard → Usage with its tokens and cost.

Get a key and start from ₹100

Pay with UPI or card. Credit never expires, and every request is metered at the published rate.

Other setup guides