Skip to the content.

Troubleshooting

Common issues and solutions for the OpenRouter proxy.

Docker Issues

Docker Not Running

Symptoms:

Solutions:

  1. Open Docker Desktop application
  2. Wait for it to fully start (watch the system tray icon)
  3. The launcher will auto-detect when Docker is ready (up to 60 seconds)

Linux:

# Start Docker daemon
sudo systemctl start docker

# Check status
sudo systemctl status docker

Container Won’t Start

Symptoms:

Solutions:

  1. Check container logs:
    docker logs y-router
    
  2. Check if port is in use:
    # Windows
    netstat -an | findstr 8787
    
    # Mac/Linux
    netstat -an | grep 8787
    
  3. Free the port or use a different one in docker-compose.yml

Build Failed

Symptoms:

Solutions:

  1. Clean rebuild:
    docker image rm y-router:latest
    docker builder prune -a -f
    docker compose build --no-cache
    
  2. Check Docker has internet access:
    docker run --rm curlimages/curl curl https://openrouter.ai
    

Connection Issues

“Connection Refused” Error

Symptoms:

Solutions:

  1. Verify container is running:
    docker ps | grep y-router
    
  2. Start if not running:
    docker compose up -d
    
  3. Check proxy health:
    curl http://localhost:8787/health
    

Proxy Timeout

Symptoms:

Solutions:

  1. Check OpenRouter status: https://status.openrouter.ai
  2. Try a different/faster model
  3. Restart the proxy:
    docker compose restart
    

API Key Issues

Invalid API Key

Symptoms:

Solutions:

  1. Verify key format starts with sk-or-v1-
  2. Get a new key from https://openrouter.ai/keys
  3. Check for typos or extra whitespace in .env

API Key Not Loading from .env

Symptoms:

Solutions:

  1. Check file exists and is named exactly .env
  2. Verify variable name: ANTHROPIC_AUTH_TOKEN (case-sensitive)
  3. No spaces around =: ANTHROPIC_AUTH_TOKEN=sk-or...
  4. Use UTF-8 encoding

Model Issues

Model Not Found (404)

Symptoms:

Solutions:

  1. Check model spelling exactly matches OpenRouter’s ID
  2. Verify model at https://openrouter.ai/models
  3. Some models require credits - check your balance

Wrong Model Being Used

Symptoms:

Solutions:

  1. Check ANTHROPIC_MODEL in .env
  2. Clear shell environment:
    # PowerShell
    $env:ANTHROPIC_MODEL=""
    
    # Bash
    unset ANTHROPIC_MODEL
    
  3. Verify .env was saved after editing

Response Issues

Incomplete or Truncated Responses

Symptoms:

Solutions:

  1. Increase max_tokens in your requests
  2. Check for rate limits on OpenRouter
  3. Try a different model

Tool Calls Not Working

Symptoms:

Solutions:

  1. Check proxy logs for conversion errors:
    docker logs y-router -f
    
  2. Verify model supports function calling
  3. See architecture.md for supported features

Launcher Issues

Script Execution Blocked (Windows)

Symptoms:

Solution:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Permission Denied (Mac/Linux)

Symptoms:

Solution:

chmod +x launch-claude-openrouter.sh

Getting Help

Collect Diagnostic Information

Before asking for help, gather:

  1. Proxy logs:
    docker logs y-router > proxy-logs.txt
    
  2. Docker status:
    docker ps -a
    docker compose ps
    
  3. Environment check:
    echo $ANTHROPIC_BASE_URL
    echo $ANTHROPIC_MODEL
    
  4. Health check:
    curl -v http://localhost:8787/health
    

Resources