-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (39 loc) · 1.81 KB
/
Copy path.env.example
File metadata and controls
47 lines (39 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Optional local settings for the Rust `codex-code-router` service.
HOST=127.0.0.1
PORT=60001
# Defaults shown for clarity; override only if GitHub changes endpoint shape.
COPILOT_RESPONSES_URL=https://api.githubcopilot.com/responses
COPILOT_MODELS_URL=https://api.githubcopilot.com/models
# Preferred service-owned auth options. Do not commit real tokens.
# COPILOT_BEARER_TOKEN=replace-with-current-copilot-token
# COPILOT_TOKEN_FILE=/Users/you/.copilot-tokens.json
# COPILOT_TOKEN_REFRESH=true
# COPILOT_TOKEN_URL=https://api.github.com/copilot_internal/v2/token
COPILOT_TOKEN_EXPIRY_BUFFER_SECONDS=300
# Interactive GitHub OAuth device-login defaults. These match GitHub Copilot's
# existing desktop/client flow; override only for tests or if GitHub changes it.
# GITHUB_DEVICE_CODE_URL=https://github.com/login/device/code
# GITHUB_ACCESS_TOKEN_URL=https://github.com/login/oauth/access_token
# GITHUB_OAUTH_CLIENT_ID=01ab8ac9400c4e429b23
# GITHUB_OAUTH_SCOPE=read:user
# Header version knobs. Keep these aligned with current Copilot/VS Code behavior.
COPILOT_CHAT_VERSION=0.35.0
COPILOT_EDITOR_VERSION=vscode/1.109.2
GITHUB_API_VERSION=2025-10-01
# Local inbound request body limit. Set to 0 to disable the local limit.
REQUEST_BODY_LIMIT_BYTES=0
# Provider-transport retry knobs for upstream HTTP 429 responses.
# RATE_LIMIT_MAX_TOTAL_WAIT_MS=0 means wait indefinitely for rate-limit windows.
RATE_LIMIT_MAX_TOTAL_WAIT_MS=0
RATE_LIMIT_MAX_SLEEP_MS=60000
RATE_LIMIT_INITIAL_BACKOFF_MS=1000
RATE_LIMIT_BACKOFF_MULTIPLIER=2
# Optional raw diagnostics levels:
# - off (default)
# - metadata
# - content_redacted
# - full_content
CODEX_CODE_ROUTER_RAW_LOG_LEVEL=off
# CODEX_CODE_ROUTER_RAW_LOG_FILE=/Users/you/.codex-code-router/raw/diagnostics.jsonl
CODEX_CODE_ROUTER_RAW_LOG_MAX_BYTES=65536
CODEX_CODE_ROUTER_RAW_LOG_CONTENT_MAX_BYTES=16384