---
title: Use Claude Code Without a Subscription
description: "Run Claude Code on pay-as-you-go API balance instead of a monthly subscription. Set ANTHROPIC_BASE_URL to api.apitoken.sale and pay only for what you use."
url: https://apitoken.sale/docs/learn/claude-code-without-subscription
language: en
---

# 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.

## 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.

---
Get a key: https://apitoken.sale/register
More guides: https://apitoken.sale/docs/learn
