401 Unauthorized
- Confirm the API key is active in your Floodgate dashboard.
- Make sure the key has no extra spaces or quotation marks.
- Use
Authorization: Bearer YOUR_API_KEY. - Open a new terminal if you configured environment variables in shell profile files (
~/.bashrc,~/.zshrc).
404 Not Found
Check how your client handles the base URL path:- Codex, OpenCode, Pi, Grok Build, Aider, and OpenAI SDKs use
https://api.floodgate.dev/v1. - Claude Code uses
https://api.floodgate.devbecause it appends/v1/messagesautomatically.
Model not found
Use the exact model ID:The CLI still uses its original provider
- Codex: run
/statusand confirmmodel_providerisfloodgate. - Claude Code: run
/statusand confirm the Anthropic base URL points tohttps://api.floodgate.dev. - OpenCode: run
/modelsand select a model under Floodgate. - Pi: run
/modeland select a model under floodgate. - Grok Build: run
grok inspectand check~/.grok/config.toml. - Aider: confirm both
OPENAI_API_BASEandOPENAI_API_KEYare exported.
Tool calls fail
Try the recommended frontier model for your agent harness:
Different models can vary in tool-calling schema strictness and reasoning behavior.
