| # ========== Server ========== | |
| PORT=3003 | |
| # API key for incoming requests (leave empty for open access) | |
| API_KEY= | |
| # Directory for persisted JSON state and logs (Docker 推荐用 /data) | |
| DATA_DIR= | |
| # ========== Codeium Auth ========== | |
| # Option 1: Direct API key from Windsurf | |
| CODEIUM_API_KEY= | |
| # Option 2: Token from windsurf.com/show-auth-token | |
| CODEIUM_AUTH_TOKEN= | |
| # ========== Language Server ========== | |
| # Path to the language server binary. | |
| # Linux x64 default: /opt/windsurf/language_server_linux_x64 | |
| # Linux arm64 default: /opt/windsurf/language_server_linux_arm | |
| # macOS Apple Silicon default: ~/.windsurf/language_server_macos_arm | |
| # macOS Intel default: ~/.windsurf/language_server_macos_x64 | |
| LS_BINARY_PATH=/opt/windsurf/language_server_linux_x64 | |
| # Per-proxy language server data root. | |
| # macOS local runs should use a user-writable directory, e.g. ~/.windsurf/data. | |
| LS_DATA_DIR=/opt/windsurf/data | |
| # gRPC port for language server | |
| LS_PORT=42100 | |
| # ========== Dashboard ========== | |
| # Dashboard password — protects /dashboard and all /dashboard/api/* endpoints. | |
| # If empty AND API_KEY is also empty, dashboard is completely open (anyone can | |
| # view accounts, API keys, logs, and trigger updates). Set this for any | |
| # internet-facing deployment. | |
| DASHBOARD_PASSWORD= | |
| # ========== Advanced ========== | |
| CODEIUM_API_URL=https://server.self-serve.windsurf.com | |
| DEFAULT_MODEL=claude-4.5-sonnet-thinking | |
| MAX_TOKENS=8192 | |
| LOG_LEVEL=info | |
| # ========== Security ========== | |
| # Allow private/internal hosts (e.g., 192.168.x.x, 10.x.x.x, localhost) in proxy tests. | |
| # Set to 1 for local deployments where you need to test proxies on private networks. | |
| # Leave empty or set to 0 for public-facing deployments (default: only public hosts allowed). | |
| ALLOW_PRIVATE_PROXY_HOSTS= | |