How to Use Claude Code with Chonway API
To use Claude Code through Chonway API, point ANTHROPIC_BASE_URL at the Chonway API endpoint and set your API Key — three steps to call the full Claude lineup, with no business-code changes.
📝 Placeholder draft, pending polish.
In one line
Point ANTHROPIC_BASE_URL at https://api.wos.one, set ANTHROPIC_API_KEY, and run claude.
Config at a glance
| Environment variable | Value |
|---|---|
ANTHROPIC_BASE_URL | https://api.wos.one |
ANTHROPIC_API_KEY | the key you create in the console |
Steps
-
Sign up free in the console and create an API Key.
-
Set the environment variables:
export ANTHROPIC_BASE_URL=https://api.wos.one export ANTHROPIC_API_KEY=your-key -
Run
claudeto use the full Claude lineup.
Troubleshooting
- Connection fails? Make sure the Base URL has no extra path (the Anthropic protocol uses the root, without
/v1). - 401? Check that the key is correct and not disabled.
Wrap-up
Chonway API is compatible with the official Anthropic protocol — real model names, pay-as-you-go. See live, callable models and real-time prices in the console.