# ────────────────────────────────────────────────────────────── # cursor-api-proxy 設定範例 # 複製為 .env 後填入你的設定:cp .env.example .env # ────────────────────────────────────────────────────────────── # ── 伺服器設定 ──────────────────────────────────────────────── # Docker 模式固定使用 0.0.0.0;本機直接執行時可改 127.0.0.1 CURSOR_BRIDGE_HOST=0.0.0.0 CURSOR_BRIDGE_PORT=8766 CURSOR_BRIDGE_API_KEY= CURSOR_BRIDGE_TIMEOUT_MS=3600000 CURSOR_BRIDGE_MULTI_PORT=false CURSOR_BRIDGE_VERBOSE=false # ── Agent / 模型設定 ────────────────────────────────────────── # Docker 模式:容器內 agent 路徑(預設掛載至 /usr/local/bin/agent) CURSOR_AGENT_BIN=/usr/local/bin/agent CURSOR_BRIDGE_DEFAULT_MODEL=auto CURSOR_BRIDGE_STRICT_MODEL=true CURSOR_BRIDGE_MAX_MODE=false CURSOR_BRIDGE_FORCE=false CURSOR_BRIDGE_APPROVE_MCPS=false # ── 工作區與帳號 ────────────────────────────────────────────── CURSOR_BRIDGE_WORKSPACE=/workspace CURSOR_BRIDGE_CHAT_ONLY_WORKSPACE=true # 多帳號設定目錄(逗號分隔),留空則自動探索 ~/.cursor-api-proxy/accounts/ CURSOR_CONFIG_DIRS= # ── TLS / HTTPS(選用)──────────────────────────────────────── CURSOR_BRIDGE_TLS_CERT= CURSOR_BRIDGE_TLS_KEY= # ── Docker 專用:宿主機路徑對映 ────────────────────────────── # 宿主機上 Cursor agent 二進位檔的實際路徑 CURSOR_AGENT_HOST_BIN=/usr/local/bin/agent # 宿主機上的帳號資料目錄(會掛載至容器的 /root/.cursor-api-proxy) CURSOR_ACCOUNTS_DIR=~/.cursor-api-proxy # 宿主機上要掛載進容器的工作區目錄 WORKSPACE_DIR=/tmp/workspace