DOCS

Set up Fee.

Install Fee, run the guided example, review the task report and then connect any compatible coding tools you use.

INSTALL

Install Fee

Approved beta users sign in, open the protected download page and follow the device login. Public package-manager installation will be added after the release and signing process is complete.

open https://flatfee.one/download/fee
fee login --device
fee
fee receipts
fee doctor --live-contract --json

GATEWAY

Use one OpenAI-compatible base URL.

curl https://flatfee.one/v1/chat/completions \
  -H "Authorization: Bearer $FLATFEE_KEY" \
  -d '{"model":"auto","messages":[{"role":"user","content":"Run this task"}]}'

Task report format

Every completed task returns a task report with stable fields for review, billing and support.

{
  "requestId": "task_8f3k",
  "lane": "premium",
  "model": "auto",
  "tokens": { "prompt": 182400, "completion": 16420, "total": 198820 },
  "cost": 0.11,
  "currency": "EUR",
  "finish_reason": "stop",
  "fairUseRemaining": 0.82,
  "continuation": true
}

Integrations should use the current fields shown above, not the retired route, tokens_used or cost_usd fields.

TOOL SETUP

Keep your coding tool. Change its endpoint.

Cursor

baseURL=https://flatfee.one/v1
model=auto
apiKey=$FLATFEE_KEY

Claude Code

ANTHROPIC_BASE_URL=https://flatfee.one/v1
ANTHROPIC_AUTH_TOKEN=$FLATFEE_KEY
model=auto

Aider

aider --openai-api-base https://flatfee.one/v1 --model auto

OpenCode

{ "provider": "flatfee", "baseURL": "https://flatfee.one/v1", "model": "auto" }

Custom SDK

client = createClient({ baseURL: "https://flatfee.one/v1", apiKey: process.env.FLATFEE_KEY })