Skip to main content
TTAPI’s Claude-compatible base URL is https://cc.ttapi.io. Once your local environment variables are set, Claude Code will send requests through TTAPI.

1. Install

irm https://claude.ai/install.ps1 | iex
If claude is still not found after installation, reopen your terminal so the updated PATH can take effect.

2. Verify

claude --version

3. Configure TTAPI

Set the variables for the current session:
$env:ANTHROPIC_BASE_URL = "https://cc.ttapi.io"
$env:ANTHROPIC_API_KEY = "YOUR-TT-API-KEY"
To persist them for the current Windows user:
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://cc.ttapi.io", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "YOUR-TT-API-KEY", "User")

4. Start

claude

Required environment variables

ANTHROPIC_BASE_URL=https://cc.ttapi.io
ANTHROPIC_API_KEY=YOUR-TT-API-KEY

Troubleshooting

claude command not found

  • Reopen the terminal
  • Confirm the install path is on PATH
  • Run claude --version again

Auth or request error after launch

  • Check that ANTHROPIC_BASE_URL is set to https://cc.ttapi.io
  • Check that ANTHROPIC_API_KEY contains a valid TTAPI key
  • Reopen the terminal to reload environment variables

Can I still use the default Anthropic setup?

Yes. But if you want Claude Code traffic to go through TTAPI, both ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY must point to the TTAPI-compatible endpoint and your TTAPI key.
Last modified on March 13, 2026