pool: groupName: unidesk-codex-pool apiKeyName: unidesk-codex-pool-api-key apiKeySecretName: sub2api-codex-pool-api-key apiKeySecretKey: API_KEY minOwnerBalanceUsd: 1000 minOwnerConcurrency: 50 defaultAccountCapacity: 5 defaultAccountLoadFactor: 1 defaultTempUnschedulable: enabled: true rules: - statusCode: 401 keywords: [unauthorized, invalid api key, invalid_api_key, authentication, recovered upstream error] durationMinutes: 120 description: Credential/auth failures should use the longest cooldown. - statusCode: 403 keywords: [forbidden, access denied, quota, billing, capacity, weekly limit, less than 10% of your weekly limit left, run /status for a breakdown, recovered upstream error] durationMinutes: 120 description: Permission, quota, or account-state failures should use the longest cooldown. - statusCode: 429 keywords: [capacity, rate limit, rate_limit, quota, weekly limit, less than 10% of your weekly limit left, run /status for a breakdown, too many requests, overloaded, resource_exhausted, recovered upstream error] durationMinutes: 10 description: Capacity and rate-limit responses are often temporary; start with a ten-minute cooldown and use another account. - statusCode: 500 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, recovered upstream error] durationMinutes: 10 description: Transient upstream server failures should start with a ten-minute cooldown and prefer another account. - statusCode: 502 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, bad gateway, upstream request failed, websocket dial, handshake response, recovered upstream error] durationMinutes: 30 description: Gateway upstream failures, including recovered upstream error wrappers, should cool down longer. - statusCode: 503 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, recovered upstream error, model_not_found, no available channel for model] durationMinutes: 30 description: Service unavailable and upstream model-routing failures should cool down longer than one-off transient failures. - statusCode: 529 keywords: [capacity, overloaded, temporarily unavailable, temporary, recovered upstream error] durationMinutes: 30 description: Provider overloaded responses should cool down longer than generic transient failures and use another account. profiles: entries: - profile: default accountName: unidesk-codex-403de5 configFile: config.toml.pre-sub2api authFile: auth.json.pre-sub2api fallbackConfigFile: config.toml fallbackAuthFile: auth.json openaiResponsesWebSocketsV2Mode: off priority: 10 - profile: HY accountName: unidesk-codex-hy configFile: config.toml.HY authFile: auth.json.HY openaiResponsesWebSocketsV2Mode: passthrough capacity: 10 loadFactor: 10 priority: 1 - profile: gptclub accountName: unidesk-codex-gptclub configFile: config.toml.gptclub authFile: auth.json.gptclub priority: 100 - profile: only accountName: unidesk-codex-only configFile: config.toml.only authFile: auth.json.only priority: 110 - profile: fixwikihub accountName: unidesk-codex-fixwikihub configFile: config.toml.fixwikihub authFile: auth.json.fixwikihub openaiResponsesWebSocketsV2Mode: off priority: 10 - profile: zakuzaku accountName: unidesk-codex-zakuzaku configFile: config.toml.zakuzaku authFile: auth.json.zakuzaku priority: 10 - profile: 17nas accountName: unidesk-codex-17nas configFile: config.toml.17nas authFile: auth.json.17nas priority: 10 upstreamUserAgent: codex_cli_rs/0.137.0 (Ubuntu 22.04; x86_64) xterm-256color publicExposure: enabled: true proxyName: platform-infra-sub2api configMapName: sub2api-frpc-config deploymentName: sub2api-frpc frpcImage: fatedier/frpc:v0.68.1 serverAddr: 74.48.78.17 serverPort: 7000 remotePort: 21880 localIP: sub2api.platform-infra.svc.cluster.local localPort: 8080 publicBaseUrl: https://sub2api.74-48-78-17.nip.io masterBaseUrl: http://127.0.0.1:21880 masterFrps: configPath: /opt/hwlab-frp/frps.dev.toml containerName: hwlab-frps-dev masterCaddy: enabled: true domain: sub2api.74-48-78-17.nip.io configPath: /etc/caddy/Caddyfile serviceName: caddy upstreamBaseUrl: http://127.0.0.1:21880 localCodex: backupSuffix: pre-sub2api providerName: OpenAI wireApi: responses supportsWebSockets: true responsesWebSocketsV2: true responsesSmokeModel: gpt-5.5