Free & low cost

Claude Code without the $200/month plan

Claude Code does not have to mean a fixed monthly plan. Point it at an API key with prepaid balance and you pay per token — ideal if your usage is spiky or you just want to try it.

·

Two environment variables

export ANTHROPIC_BASE_URL=https://api.apitoken.sale
export ANTHROPIC_API_KEY=sk-pool-•••

# then just run
claude

That is the entire change. Claude Code keeps every feature — it simply bills against your prepaid balance at a discount instead of a subscription.

See also: Use a Claude API key in Cursor

When pay-as-you-go wins

  • Occasional or bursty usage where a flat monthly fee is wasteful.
  • Trying Claude Code before committing to a plan.
  • Keeping several tools on one balance and one key.

Frequently asked questions

Does Claude Code work with a custom API key?

Yes. Set ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY and Claude Code uses your key and balance directly.

Do I lose any features?

No. Claude Code behaves identically; only billing changes from a subscription to prepaid per-token usage.

Use Google or GitHub to create your key and get $10 of Claude usage before you top up.