Claude Code Setup
Claude Code reads provider settings from settings.json. Configure it to use FlowAPI as the upstream API service, then restart Claude Code.
1. Find settings.json
| OS | Path |
|---|---|
| macOS / Linux | ~/.claude/settings.json |
| Windows | %userprofile%\.claude\settings.json |
Create the file if it does not exist.
2. Add FlowAPI settings
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.flowapi.net",
"ANTHROPIC_AUTH_TOKEN": "YOUR_FLOWAPI_API_KEY",
"ANTHROPIC_MODEL": "gpt-4o",
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
},
"alwaysThinkingEnabled": true,
"effortLevel": "medium"
}Replace:
YOUR_FLOWAPI_API_KEYwith your FlowAPI keygpt-4owith the FlowAPI model ID you want Claude Code to usemediumwith the reasoning level you want, if your selected model supports it
3. Restart Claude Code
Close Claude Code completely, reopen it, and start a new session.
Troubleshooting
- Use
https://api.flowapi.nethere because Claude Code appends its own API paths. - Confirm the model ID is available in your FlowAPI account.
- If the model rejects the configured thinking level, lower
effortLevelor remove it.
Last updated on