-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodex-router.config.example.json
More file actions
110 lines (110 loc) · 3.11 KB
/
Copy pathcodex-router.config.example.json
File metadata and controls
110 lines (110 loc) · 3.11 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"databasePath": "./data/codex-router.sqlite",
"allowedWorktreeRoots": ["/absolute/path/to/worktrees"],
"maxWaitMs": 30000,
"leaseTtlMs": 120000,
"idempotencyTtlMs": 604800000,
"inference": {
"callerTokenRef": "env:CODEX_ROUTER_INFERENCE_TOKEN",
"host": "127.0.0.1",
"port": 4202,
"maxBodyBytes": 8388608,
"requestTimeoutMs": 900000,
"preflightBytes": 65536,
"preflightTimeoutMs": 2000,
"translation": {
"baseUrl": "http://127.0.0.1:4000",
"capabilityRef": "env:CODEX_ROUTER_LITELLM_TOKEN",
"healthPath": "/health/liveliness",
"requestTimeoutMs": 5000
},
"compaction": {
"integrityKeyRef": "env:CODEX_ROUTER_COMPACTION_KEY",
"maxEnvelopeBytes": 524288,
"maxSummaryBytes": 262144
},
"toolResultAging": {
"enabled": false,
"preserveRecent": 8,
"minimumBytes": 65536,
"headBytes": 2048,
"tailBytes": 2048
},
"visionBridge": {
"enabled": false,
"engineModelIds": [],
"fallback": false,
"maxDataUrlBytes": 8388608,
"allowedRemoteHosts": [],
"cacheEntries": 64
},
"localModels": {
"baseUrl": "http://127.0.0.1:11434"
},
"routingPolicy": {
"limitedThreshold": 0.2,
"criticalThreshold": 0.05,
"recoveryMargin": 0.05,
"policyVersion": "routing/v1"
},
"providers": [
{
"id": "example-provider",
"displayName": "Example Responses Provider",
"baseUrl": "https://api.example.invalid/v1",
"credentialRef": "env:CODEX_ROUTER_EXAMPLE_PROVIDER_KEY",
"protocol": "responses",
"requestProfile": "generic-openai",
"enabled": true
}
],
"models": [
{
"id": "example-provider/model",
"providerId": "example-provider",
"upstreamModel": "model",
"displayName": "Example Model",
"contextWindow": 128000,
"maxOutputTokens": 16384,
"enabled": true,
"publication": "listed",
"capabilities": {
"input": ["text"],
"nativeImage": false,
"derivedImage": false,
"reasoningEfforts": ["low", "medium", "high"],
"defaultReasoningEffort": "medium",
"tools": true,
"forcedToolChoice": false,
"parallelTools": false,
"structuredOutput": true,
"standaloneSearch": false,
"compaction": true,
"collaboration": false
},
"pricing": {
"source": "operator-approved-example",
"version": "2026-08-13",
"inputPerMillion": 1,
"outputPerMillion": 4
}
}
]
},
"runtimes": [
{
"id": "sol-main",
"adapter": "codex_app_server",
"provider": "openai",
"capabilityTiers": ["architect", "principal", "senior", "worker"],
"allowedModels": ["gpt-5.6-sol", "gpt-5.6-terra"],
"maxConcurrency": 2,
"codexHomeRef": "env:CODEX_ROUTER_SOL_MAIN_HOME",
"policyTags": ["local", "authorized"],
"enabled": true,
"command": "codex",
"args": ["app-server"],
"protocolVersion": "0.147.0"
}
]
}