-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (27 loc) · 1.38 KB
/
.env.example
File metadata and controls
31 lines (27 loc) · 1.38 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
# Required: OAuth access token from your Claude Code login.
# Either variable name works; CLAUDE_OAUTH_TOKEN is checked first.
CLAUDE_OAUTH_TOKEN=
# CLAUDE_CODE_OAUTH_TOKEN=
# Strongly recommended: refresh token. Without it the proxy will stop
# working when the access token expires (typically every 8 hours).
CLAUDE_OAUTH_REFRESH_TOKEN=
# CLAUDE_CODE_OAUTH_REFRESH_TOKEN=
# Optional tuning.
# MAX_CONCURRENT_REQUESTS=5
# SUBPROCESS_TIMEOUT=120
# CLAUDE_CLI_VERSION=2.1.109
# CLAUDE_OAUTH_CLIENT_ID=9d1c250a-e61b-44d9-88ed-5944d1962f5e
# Where the token state (with refreshed tokens) is persisted inside the
# container. The provided docker-compose mounts ./data for this.
# TOKEN_STATE_FILE=/data/token_state.json
# ── Direct API mode (EXPERIMENTAL, FRAGILE — read the README) ─────
# When enabled, the proxy exposes a second set of routes under /direct/*
# that bypass the Claude Code CLI and hit api.anthropic.com directly with
# the OAuth bearer token. This skips CLI subprocess overhead but sends
# requests without the client-attestation hash the CLI computes per
# request (cch, in x-anthropic-billing-header). Anthropic does not
# validate that hash today, but likely will — at which point accounts
# sending unsigned or forged traffic may be banned. Opt in knowing that.
# ENABLE_DIRECT_API=false
# DIRECT_API_ENDPOINT=https://api.anthropic.com/v1/messages
# DIRECT_API_MAX_TOKENS=4096