---
title: Use the Claude API with Roo Code
description: "Connect Roo Code in VS Code to Claude through apiToken.sale: choose the Anthropic provider, enable the custom base URL, paste your key and code at 60–80% off."
url: https://apitoken.sale/docs/learn/claude-api-roo-code
language: en
---

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

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

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