Skip to content

启动了服务,但还是无法连接 #46

@lx1054331851

Description

@lx1054331851
(claude-code-proxy) (base) lee@Mac claude-code-proxy % uv run claude-code-proxy
Warning: ANTHROPIC_API_KEY not set. Client API key validation will be disabled.
 Configuration loaded: API_KEY=********************..., BASE_URL='https://xxx.openai.azure.com'
🚀 Claude-to-OpenAI API Proxy v1.0.0
✅ Configuration loaded successfully
   OpenAI Base URL: https://xxx.openai.azure.com
   Big Model (opus): gpt-5
   Middle Model (sonnet): gpt-4.1
   Small Model (haiku): gpt-5-mini
   Max Tokens Limit: 4096
   Request Timeout: 90s
   Server: 0.0.0.0:8082
   Client API Key Validation: Disabled

INFO:     Started server process [1767]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8082 (Press CTRL+C to quit)
export ANTHROPIC_BASE_URL=http://localhost:8082
claude
╭──────────────────────────╮
│ ✻ Welcome to Claude Code │
╰──────────────────────────╯

 Unable to connect to Anthropic services

 Failed to connect to api.anthropic.com: ERR_BAD_REQUEST

 Please check your internet connection and network settings.

 Note: Claude Code might not be available in your country. Check supported countries at
  https://anthropic.com/supported-countries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions