Felo API PlatformFelo API Platform

AI Tool Setup

Claude Code

Configure Claude Code to route Anthropic-compatible model calls through Felo API Platform.

Use this guide when you want Claude Code to use Felo API Platform instead of calling the model vendor directly. Claude Code uses an Anthropic-compatible Messages endpoint.

Before You Start

You need one Felo API Platform key. The same key works across model protocols, agent clients, Search, Web Fetch, PPT, Mindmap, LiveDocs, X Search, YouTube Subtitling, Landing Page, and SuperAgent APIs.

export FELO_API_KEY="YOUR_API_KEY"
ItemValue
Best forrepo editing, coding agents, long-context research, and terminal-first development
ProtocolAnthropic-compatible Messages API
Base URLhttps://openapi.felo.ai/api
Model exampleclaude-sonnet-4-6
API keyYour FELO_API_KEY

Configure Claude Code

Set the environment variables first:

export FELO_API_KEY="YOUR_API_KEY"
export ANTHROPIC_API_KEY="$FELO_API_KEY"
export ANTHROPIC_BASE_URL="https://openapi.felo.ai/api"
export ANTHROPIC_MODEL="claude-sonnet-4-6"

Optional settings file

Use a settings file when you want the base URL and model to apply every time Claude Code starts. Keep the API key in your shell or secret manager.

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://openapi.felo.ai/api",
    "ANTHROPIC_MODEL": "claude-sonnet-4-6"
  }
}

You can also choose a model for one session:

claude --model claude-sonnet-5

Verify the Setup

Run a small task after saving the configuration:

claude

If the tool starts and answers with the selected model, the provider setup is ready.

Troubleshooting

IssueWhat to check
Authentication failsConfirm the key is copied correctly and exported as FELO_API_KEY
Tool calls the wrong providerCheck that the Felo provider is selected for the current workspace or session
Base URL errorUse https://openapi.felo.ai/api/v1 for OpenAI-compatible clients and https://openapi.felo.ai/api for Anthropic-compatible clients
Model not foundChoose a model that appears in your Felo model list
The tool ignores local configMove provider settings to the user-level config if the client requires it

Next Steps