---
title: "Claude Code, Codex CLI & Gemini CLI setup with one key | MYUSAPI"
description: "Generate a ready-to-copy config by tool, OS and model: Claude Code, Codex CLI, Gemini CLI, Claude Desktop, Cline, Cherry Studio and more."
url: https://myusapi.com/en/docs/tools
---

# Tools & clients

Choose a tool, OS, and model, then copy. Your key only fills in the setup on this page.

Your API key (optional) Used to fill in the setup below and never stored. Test key sends it to https://myusapi.com/v1/models; one-click import hands it only to CC Switch on your computer.

Paste a key to test connectivity.

Paste a key to import it into CC Switch for Claude Code in one click.

CC Switch is an open-source desktop switcher: enter your key once in its window and both Claude Code and Claude Desktop use it, with no terminal or config-file edits. It calls Claude models only.

```
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://myusapi.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-key"
  }
}
```

- Install: on macOS run brew install --cask cc-switch; on Windows and Linux download the installer from the farion1231/cc-switch releases on GitHub.
- Claude Code: on the Claude Code page of CC Switch, add a provider with a custom configuration, paste the JSON above and enable it. Or fill in just the endpoint and key: leave /v1 off the endpoint, keep the default ANTHROPIC_AUTH_TOKEN auth field, and leave the model names blank.
- Claude Desktop: on the Claude Desktop page of CC Switch, import the provider you just added from Claude Code and choose Direct. Then quit Claude Desktop completely (Cmd+Q on macOS, or from the tray on Windows) and reopen it.
- Direct lists Claude models only. To use GPT or Gemini in Claude Desktop, turn on model mapping and keep CC Switch running.
- With a third-party gateway, Claude Desktop has no claude.ai account sync, mobile app, cloud sessions, voice or Remote Control.

[Step by step: Claude Code](https://myusapi.com/en/docs/claude-code)[Step by step: Codex CLI](https://myusapi.com/en/docs/codex-cli)

Service availability Accounts and key delivery live in your workspace (/workspace). Available endpoints and models depend on current service status and account access. Top up in US dollars by card, or by Alipay or WeChat Pay where the checkout lists them; if you already hold USDC, you can use native USDC on Solana. [View service status](https://myusapi.com/en/status)
