Troubleshooting
Common issues and solutions for the OpenRouter proxy.
Docker Issues
Docker Not Running
Symptoms:
- “Cannot connect to Docker daemon”
- Launcher waits for Docker but times out
Solutions:
- Open Docker Desktop application
- Wait for it to fully start (watch the system tray icon)
- 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:
docker compose upfails- Container exits immediately
Solutions:
- Check container logs:
docker logs y-router - Check if port is in use:
# Windows netstat -an | findstr 8787 # Mac/Linux netstat -an | grep 8787 - Free the port or use a different one in docker-compose.yml
Build Failed
Symptoms:
- “repository does not exist” error
- Network issues during build
Solutions:
- Clean rebuild:
docker image rm y-router:latest docker builder prune -a -f docker compose build --no-cache - Check Docker has internet access:
docker run --rm curlimages/curl curl https://openrouter.ai
Connection Issues
“Connection Refused” Error
Symptoms:
- Claude Code can’t reach the proxy
curl http://localhost:8787/healthfails
Solutions:
- Verify container is running:
docker ps | grep y-router - Start if not running:
docker compose up -d - Check proxy health:
curl http://localhost:8787/health
Proxy Timeout
Symptoms:
- Requests hang for a long time
- Eventually timeout errors
Solutions:
- Check OpenRouter status: https://status.openrouter.ai
- Try a different/faster model
- Restart the proxy:
docker compose restart
API Key Issues
Invalid API Key
Symptoms:
- 401 Unauthorized errors
- “Invalid API key” messages
Solutions:
- Verify key format starts with
sk-or-v1- - Get a new key from https://openrouter.ai/keys
- Check for typos or extra whitespace in
.env
API Key Not Loading from .env
Symptoms:
- Launcher still prompts for API key
- Wrong key being used
Solutions:
- Check file exists and is named exactly
.env - Verify variable name:
ANTHROPIC_AUTH_TOKEN(case-sensitive) - No spaces around
=:ANTHROPIC_AUTH_TOKEN=sk-or... - Use UTF-8 encoding
Model Issues
Model Not Found (404)
Symptoms:
- “Model not found” errors
- 404 responses
Solutions:
- Check model spelling exactly matches OpenRouter’s ID
- Verify model at https://openrouter.ai/models
- Some models require credits - check your balance
Wrong Model Being Used
Symptoms:
- Different model responding than expected
- Performance doesn’t match model capabilities
Solutions:
- Check
ANTHROPIC_MODELin.env - Clear shell environment:
# PowerShell $env:ANTHROPIC_MODEL=""# Bash unset ANTHROPIC_MODEL - Verify
.envwas saved after editing
Response Issues
Incomplete or Truncated Responses
Symptoms:
- Responses cut off mid-sentence
- Agent loops stop unexpectedly
Solutions:
- Increase
max_tokensin your requests - Check for rate limits on OpenRouter
- Try a different model
Tool Calls Not Working
Symptoms:
- Tools not being called
- Tool results not being processed
Solutions:
- Check proxy logs for conversion errors:
docker logs y-router -f - Verify model supports function calling
- See architecture.md for supported features
Launcher Issues
Script Execution Blocked (Windows)
Symptoms:
- “Running scripts is disabled on this system”
- PowerShell security error
Solution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Permission Denied (Mac/Linux)
Symptoms:
- “Permission denied” when running launcher
- Script not executable
Solution:
chmod +x launch-claude-openrouter.sh
Getting Help
Collect Diagnostic Information
Before asking for help, gather:
- Proxy logs:
docker logs y-router > proxy-logs.txt - Docker status:
docker ps -a docker compose ps - Environment check:
echo $ANTHROPIC_BASE_URL echo $ANTHROPIC_MODEL - Health check:
curl -v http://localhost:8787/health
Resources
- y-router GitHub - Report proxy issues
- OpenRouter Docs - API documentation
- OpenRouter Status - Service status