-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
35 lines (28 loc) · 1.05 KB
/
config.example.yaml
File metadata and controls
35 lines (28 loc) · 1.05 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
host: ""
port: 8317
# Directory to store OAuth tokens
auth-dir: "~/.auth2api"
# API keys for client authentication (clients use these to access this proxy)
api-keys:
- "your-api-key-here"
# Maximum JSON request body size
body-limit: "200mb"
# Upstream request timeouts
timeouts:
messages-ms: 120000 # non-stream /v1/messages timeout
stream-messages-ms: 600000 # stream /v1/messages timeout, suitable for Claude Code long tasks
count-tokens-ms: 30000 # /v1/messages/count_tokens timeout
# Debug logging level:
# off = no extra logs
# errors = upstream/network failure details
# verbose = errors + per-request access logs
debug: "off"
# Request fingerprinting — controls how auth2api mimics Claude Code CLI
# These settings affect the User-Agent, billing header, and fingerprint
cloaking:
# CLI version to impersonate (default: 2.1.88)
# This affects User-Agent and the fingerprint in billing-header
cli-version: "2.1.88"
# Entrypoint for billing attribution (default: cli)
# Claude Code uses: cli, mcp, sdk, etc.
entrypoint: "cli"