Skip to Content
IDE SetupClaude Code

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

OSPath
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_KEY with your FlowAPI key
  • gpt-4o with the FlowAPI model ID you want Claude Code to use
  • medium with 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.net here 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 effortLevel or remove it.
Last updated on