# Switch to WanAPIs with ccswitch / cc-switch

> ccswitch (cc-switch) manages provider profiles for Claude Code and Codex. Add a WanAPIs profile and switch between the official API and WanAPIs in one click, paying per token.

Web page: https://wanapi.ai/docs/ccswitch

ccswitch / cc-switch keeps several provider profiles for Claude Code and Codex and lets you switch between them in one click. Add WanAPIs as a profile and you can move to pay-per-token access to many models whenever you like.

## Setup steps

### 1. Sign up and create an API key

Create an account in the WanAPIs console and generate an API key starting with sk-.

### 2. Add a WanAPIs profile in ccswitch

Open ccswitch and add a provider profile named WanAPIs with the Base URL and token below, then save.

**ccswitch / cc-switch → Add provider**

```
Name: WanAPIs
Base URL: https://api.wanapis.com
Token / API Key: sk-xxx
```

### 3. Switch and go

Set the active provider to WanAPIs in ccswitch. It writes the Claude Code / Codex config for you — then just launch the tool as usual.

## FAQ

### Are ccswitch and cc-switch the same thing?

Both names usually refer to the same kind of "Claude Code provider switcher", and they work the same way: keep several Base URL + key pairs and switch in one click. Add WanAPIs as one of them.

### Can I switch back to the official API?

Yes. ccswitch keeps all your profiles, so you can switch back to the official API or any other provider at any time.

---

Generated by the WanAPIs website and kept in sync with the web page. All guides in Markdown: https://wanapi.ai/docs/index.md
