-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
57 lines (41 loc) · 1.73 KB
/
Copy pathconfig.example.yaml
File metadata and controls
57 lines (41 loc) · 1.73 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
48
49
50
51
52
53
54
55
56
57
# codex-oauth-proxy server bind host.
host: "127.0.0.1"
# Server port.
port: 8317
# Existing Codex auth JSON files are loaded from this directory.
# The official Codex CLI ~/.codex/auth.json format is supported directly.
auth-dir: "~/.codex"
# Enable request and proxy debug logs. Secrets are masked.
debug: false
# Admin API key for /v0/management endpoints. Leave empty to disable them.
admin-api-key: ""
# SQLite database for managed users and generated user API keys.
# Empty path resolves to <auth-dir>/codex-oauth-proxy.db.
database:
path: ""
# Local usage accounting for managed user API keys.
usage:
enabled: true
debug-openai-response: false
# Allow Codex Fast mode. Disabled by default because Fast mode consumes credits
# at a higher rate. When false, Fast tier metadata is hidden and explicit
# service_tier="fast" or service_tier="priority" requests are rejected.
allow-fast-mode: false
# Optional outbound proxy. Use "direct" or "none" to bypass proxy settings.
proxy-url: ""
# Number of additional cooldown retry rounds after the initial credential round.
request-retry: 3
# Maximum distinct Codex credentials tried in one round. 0 tries all eligible.
max-retry-credentials: 0
# Maximum seconds to wait for the nearest auth cooldown. 0 disables waiting.
max-retry-interval: 30
# Codex upstream base URL.
codex-base-url: "https://chatgpt.com/backend-api/codex"
# ChatGPT backend base URL used by Codex file uploads.
chatgpt-base-url: "https://chatgpt.com/backend-api"
# Optional upstream User-Agent override. Its version is the default model catalog version.
codex-user-agent: ""
# Optional x-codex-beta-features fallback.
codex-beta-features: ""
# Optional Codex OAuth refresh token endpoint override.
codex-refresh-token-url: ""