Connect your favorite AI tools to 8Router in seconds. Copy the configuration below and you're ready to go.
If deploying publicly, set AUTH_REQUIRED=true and configure an API key. Public access without authentication exposes your provider API keys.
config.json{
"models": [
{
"title": "8Router",
"provider": "openai",
"model": "llama-3.3-70b-versatile",
"apiBase": "http://localhost:8080/v1",
"apiKey": "sk-8router"
}
]
}
ANTHROPIC_BASE_URL=http://localhost:8080 claude
OPENAI_BASE_URL=http://localhost:8080/v1 codex
curl http://localhost:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "llama-3.3-70b-versatile",
"messages": [{"role": "user", "content": "Hello"}]
}'