Claude Code with Banafsh

For people who code with Claude and want to pay in Toman. You have two ways: a dedicated seat, or a pay-as-you-go key.

A dedicated seat or a pay-as-you-go key?

Dedicated Claude seat

Your own Claude key, 9,460,000 Toman a month.

For daily work in Claude Code. The seat has a usage limit over a few hours and a weekly one, and you can see your real usage on the dashboard.

See the seat

Pay-as-you-go key

It spends from your wallet, so you pay only for what you use. It works with every model, not only Claude.

Example prices, read live

An estimate for one short question and its answer, at today's rate. The exact price depends on length.

Setup

Create a key first. Then put these values in your tool.

Claude Code

Set these variables in your terminal, then open Claude Code:

export ANTHROPIC_BASE_URL=https://gateway.banafsh.com
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY
export ANTHROPIC_MODEL=claude-sonnet-5-5
export ANTHROPIC_SMALL_FAST_MODEL=claude-sonnet-5-5
export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
export CLAUDE_CODE_AUTO_MODE_SERVER=0

Cursor

In Settings → Models, enter these three values:

Base URL: https://gateway.banafsh.com/v1
API Key: YOUR_API_KEY
Model: claude-sonnet-5-5

Cline

In Cline's settings, set the provider to OpenAI Compatible and fill in:

API Provider: OpenAI Compatible
Base URL: https://gateway.banafsh.com/v1
API Key: YOUR_API_KEY
Model ID: claude-sonnet-5-5

Put your own key in place of YOUR_API_KEY. Never post a key in public.

Common questions

How is the dedicated seat different from a pay-as-you-go key?

The seat is your own Claude key at a fixed monthly price, with a usage limit. A pay-as-you-go key spends from your wallet and can call any model.

How do I pay in Toman?

You top up your wallet and each message is charged at that model's price. The seat is also bought in Toman.

Which tools does it work with?

Claude Code, Cursor and Cline. Any other tool that accepts a custom service address works too.

Where do I create my key?

On the keys page after you sign in. A key is shown in full only once, so copy it right away.

Where do these prices come from?

Each model's price follows today's rate, and the seat price is the one on the pricing page. This page reads both live from the same price list.