← Back to 8Router

8Router Setup Guide

Connect your favorite AI tools to 8Router in seconds. Copy the configuration below and you're ready to go.

⚠️ Security Notice

If deploying publicly, set AUTH_REQUIRED=true and configure an API key. Public access without authentication exposes your provider API keys.

Cursor

Settings → Models → Add OpenAI API
Base URL http://localhost:8080/v1
API Key sk-8router

Cline / Roo Code

OpenAI Compatible provider
Base URL http://localhost:8080/v1
API Key sk-8router
Model llama-3.3-70b-versatile

Continue.dev

Add to your config.json
{
  "models": [
    {
      "title": "8Router",
      "provider": "openai",
      "model": "llama-3.3-70b-versatile",
      "apiBase": "http://localhost:8080/v1",
      "apiKey": "sk-8router"
    }
  ]
}
🌐

Open WebUI

Settings → Connections
OpenAI API http://localhost:8080/v1
API Key sk-8router

Claude Code

Run in terminal
ANTHROPIC_BASE_URL=http://localhost:8080 claude
$

Codex CLI

Run in terminal
OPENAI_BASE_URL=http://localhost:8080/v1 codex

Generic curl

Test with any HTTP client
curl http://localhost:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "llama-3.3-70b-versatile",
    "messages": [{"role": "user", "content": "Hello"}]
  }'