Tool setup

Use the Claude API with Roo Code

Roo Code is an agentic VS Code extension with a native Anthropic provider and a custom base URL option — which makes it a two-minute setup on the discounted gateway.

·

Setup in three steps

  1. 01Open Roo Code settings and choose Anthropic as the API provider.
  2. 02Enable the custom base URL option and set it to https://api.apitoken.sale; paste your sk-pool-… key.
  3. 03Pick a model such as claude-opus-4-8 or claude-sonnet-5 and start a task.

See also: Use the Claude API in VS Code

Why Roo Code burns tokens — and how to pay less

Agentic extensions read files, plan, edit and re-check in loops, so a single task can run many model calls. That is precisely the workload where a per-token discount matters most: the same session, 60–80% cheaper, with token-level visibility in the dashboard.

  • Route everyday tasks to claude-sonnet-5 and hard ones to claude-opus-4-8.
  • Prompt caching is billed at the cheaper official cache rates minus your discount.
  • One key covers Roo Code, Cline, Cursor and the SDKs simultaneously.

Frequently asked questions

Does Roo Code support a custom Anthropic base URL?

Yes — the Anthropic provider settings include a custom base URL option; set it to https://api.apitoken.sale and use your apiToken.sale key.

Which models does Roo Code get on this key?

Every supported Claude model — Opus 4.8 and 4.7, Sonnet 5 and 4.6, Haiku 4.5 — on one key and one prepaid balance.

Is this different from using Cline?

The setup is nearly identical: both are VS Code agents with an Anthropic provider that accepts a custom base URL. Use whichever agent you prefer; the key works in both.

Create an account with Google or GitHub and test the gateway with $10 of included Claude usage.