OpenCodexの設定・管理API辞典

OpenCodex v2.100.7のconfig.json、環境変数、管理APIの認証、設定キーとメソッド・パスを目的別に引ける索引。

OpenCodex v2.100.7の設定キー、適用範囲、管理APIを調べる索引です。Config Referenceと8つの分冊、Management APIリファレンスを対象にしています。索引では各行からv2.100.7の資料へ進めます。 旧版v2.100.5 · v2.100.5の設定リファレンス · v2.100.5の管理API

設定はどこに適用されるか

鍵と待ち受け先を先に確認してください。 上流のAPIキーは、環境変数を参照するか、対応OSの資格情報ストアを使えます。プロキシの管理トークンは、管理APIの節にある環境変数またはアクセス制限付きのファイルを使います。資格情報をファイルに保管する場合は、ファイルとバックアップを実行ユーザーだけが読める場所に置き、Git・共有ログ・同期フォルダーへ入れないでください。漏えいしたキーは失効させて再発行します。

同じ端末で使う場合はループバックに限定します。別の端末からの接続を許可する場合は、公開前にTLSと接続元の制限を設定し、生成用のキーと管理権限を分けます。認証なしの接続が拒否されることと、TLS証明書の検証が有効なことを確認してください。上流のDeepSeekキーや管理トークンを、別端末の生成クライアントへ配布する必要はありません。 待ち受けと認証の仕様

設定場所 対象・主な値
OPENCODEX_HOME 配下の config.json Windowsでは既定が %USERPROFILE%\.opencodex\config.json。接続するプロバイダー、ルーティング、サーバーの設定を保持する
providers の個別項目 adapter、baseUrl、authMode をプロバイダーごとに指定。DeepSeek API用プリセットは openai-chat、https://api.deepseek.com、キー認証を使用
モデル別の設定 modelWireDefaults などでモデルと入力形式ごとの経路を扱う。対象版ではDeepSeek FlashのResponses入力は既定で上流のResponsesへ進む
ルーティングと候補の組み合わせ defaultProvider は先に適用する規則で送り先が決まらなかったときに使うプロバイダー設定。combos は順序付き候補を定義する。allowMeteredTargets はループバック専用の条件があり、既定は false
環境変数と資格情報サービス プロバイダーのキーは ${ENV_VAR} などの参照または対応OSのキーチェーンで管理。起動プロセスが変数やロック解除済みサービスに届くか確認する
クライアント固有のファイル Codexでは $CODEX_HOME/config.toml の openai_base_url がローカル統合の対象。既定の接続先は http://127.0.0.1:10100/v1

設定を直す前に実効ホームと対象版を確認し、元の設定をアクセス制限のある場所に控えます。設定はダッシュボードや対応するCLIから適用し、変更が反映された設定を読み直します。稼働中のファイル直接編集には、プロセス上に残る古い状態で上書きされる可能性があります。 ocx config validate の成功後は、実際の接続条件も別途確認します。 設定の読込と検証 · 設定ソース · Codex連携

管理APIの認証と応答

管理APIは稼働中のOpenCodexの /api/* にあります。生成用の /v1/* とは資格情報の用途が違います。管理用資格情報は OPENCODEX_ADMIN_AUTH_TOKEN、またはアクセス制限付きのファイルです。管理トークンは管理クライアントに限り、CodexやDeepSeekを呼ぶためのプログラムには入力しません。ループバックで発行できるダッシュボードセッションは5分間有効です。そのセッションは発行時のダッシュボードのオリジン(URLのスキーム・ホスト・ポートの組み合わせ)に結び付き、更新時にはブラウザーの Origin ヘッダーとCSRFトークンの検査も行われます。 管理APIの認証

応答 最初に確認すること
401 管理用の資格情報、セッション期限、Origin、更新時のCSRF
403 管理APIで許可されたOriginと操作の前提
404 メソッド、パス、実行中のOpenCodexの版
413 POST、PUT、PATCHの管理用リクエスト本文の上限2 MiB
503 管理資格情報を初期化できるか。OAuth書き込み、カタログ取得の一時的な混雑も公式資料のエラーコードで確認

管理操作の結果はパスごとに異なります。GETにも上流への問い合わせが含まれる場合があります。保存やユーザー同意、サービスの再起動を伴う経路は、パラメーター、レスポンス、反映先を確認してから扱います。 共通のエラー

Management APIのメソッドとパス

v2.100.7の公式資料から、先頭セルが メソッド /api/… の137行を収録。複数メソッドは一行に含む場合があります。認証・本文・エラーは各行の出典へ進みます。

エージェントとクライアント設定(12行)

クライアント連携の復元記録(2行)

メソッドとパス 操作の種類
GET /api/client-integrations/journal?client=... 参照
DELETE /api/client-integrations/journal?opId=... 変更または実行

Asideプロファイル(10行)

クライアント設定の差分確認(3行)

メソッドとパス 操作の種類
POST /api/client-integrations/preview 変更または実行
POST /api/client-integrations/restore/preview 変更または実行
POST /api/client-integrations/aside/profiles/{profileId}/preview 変更または実行

リモートワークスペース(6行)

Combo(3行)

メソッドとパス 操作の種類
GET /api/combos 参照
PUT /api/combos 変更または実行
DELETE /api/combos?id=... 変更または実行

Codexのプロンプト設定(8行)

メソッドとパス 操作の種類
GET /api/codex-prompt 参照
GET /api/codex-prompt/text 参照
PUT /api/codex-prompt/toggle 変更または実行
PUT /api/codex-prompt/custom 変更または実行
PUT /api/codex-prompt/base/select 変更または実行
PUT /api/codex-prompt/base 変更または実行
POST /api/codex-prompt/adopt 変更または実行
POST /api/codex-prompt/repair 変更または実行

設定・起動・同期・更新(9行)

メソッドとパス 操作の種類
GET /api/config 参照
PUT /api/config 変更または実行
GET /api/startup-health 参照
POST /api/startup-action 変更または実行
GET /api/diagnostics/project-config 参照
POST /api/sync 変更または実行
GET /api/update/check 参照
POST /api/update/run 変更または実行
GET /api/update/status 参照

ログ・利用量・保存領域(19行)

モデルとカタログ(6行)

メソッドとパス 操作の種類
GET /api/catalog 参照
GET /api/models 参照
GET /api/client-config?client=... 参照
PUT /api/disabled-models 変更または実行
PUT /api/model-visibility 変更または実行
PUT /api/model-settings 変更または実行

OAuthアカウントと用途別のキー(17行)

メソッドとパス 操作の種類
GET /api/oauth/providers 参照
GET /api/key-providers 参照
POST /api/oauth/login 変更または実行
POST /api/oauth/login/code 変更または実行
POST /api/oauth/login/cancel 変更または実行
GET /api/oauth/status 参照
POST /api/oauth/logout 変更または実行
GET /api/oauth/accounts 参照
DELETE /api/oauth/accounts 変更または実行
PUT /api/oauth/accounts/active 変更または実行
PUT /api/oauth/accounts/pause 変更または実行
POST /api/oauth/accounts/clear-cooldown 変更または実行
PUT /api/oauth/accounts/alias 変更または実行
PUT /api/providers/keys/active 変更または実行
PUT /api/providers/keys/alias 変更または実行
PUT /api/providers/keys/pause 変更または実行
PUT /api/oauth/accounts/affinity-reset 変更または実行

プロトコルの経路(4行)

メソッドとパス 操作の種類
GET /api/protocols 参照
GET /api/protocols?provider=<name> 参照
POST /api/protocols/plan 変更または実行
PATCH /api/protocols/settings 変更または実行

プロバイダー(11行)

メソッドとパス 操作の種類
GET /api/providers 参照
POST /api/providers 変更または実行
PATCH /api/providers?name=... 変更または実行
DELETE /api/providers?name=... 変更または実行
POST /api/providers/test?name=... 変更または実行
GET /api/provider-quotas 参照
GET /api/quota-pool 参照
GET /api/quota-resets 参照
GET /api/fallback 参照
PUT /api/fallback 変更または実行
GET /api/provider-presets 参照

サイドバーと同意が必要な操作(4行)

メソッドとパス 操作の種類
GET /api/github/star 参照
POST /api/github/star 変更または実行
GET /api/update/badge 参照
POST /api/update/desktop-snapshot 変更または実行

システムの起動・停止(5行)

メソッドとパス 操作の種類
GET /api/system/memory 参照
POST /api/system/restart 変更または実行
POST /api/stop 変更または実行
GET /api/system/codex-app-server 参照
POST /api/system/codex-restart 変更または実行

Codexの認証委任(17行)

v2.100.7で増減した行

公式のメソッドとパス 初回に確認する条件
POST /api/combo-suggestions/save 操作は対象の認証・入力条件を確認

設定リファレンスに載る識別子

各分冊でコード表記の先頭セルを拾い、元資料の場所へつなぎます。JSONキーに末尾の ? は書きません。型が独立した列に定義される場合はその型を載せます。本文で指定する初期値や条件は各行の資料を確認してください。

設定の概要の識別子(4行)

識別子 領域 型・明示値 初期値・参照
subscriptionReserve.enabled Claude subscription reserve false 個別仕様
subscriptionReserve.soft Claude subscription reserve 0.60 個別仕様
subscriptionReserve.hard Claude subscription reserve 0.80 個別仕様
subscriptionReserve.targets Claude subscription reserve [] 個別仕様

アカウントの自動休止。 公式資料

Advisorの識別子(8行)

識別子 領域 型・明示値 初期値・参照
enabled? Configuration boolean 個別仕様
model? Configuration string 個別仕様
effort? Configuration string 個別仕様
policy? Configuration "manual" / "preflight" / "adaptive" 個別仕様
contextMode? Configuration "context" / "question-only" 個別仕様
maxConsultationsPerTask? Configuration integer 個別仕様
timeoutMs? Configuration number 個別仕様
contextSharingConsent? Configuration "v1" 個別仕様

エージェントの識別子(17行)

識別子 領域 型・明示値 初期値・参照
multiAgentMode? Astra roster upgrade "v1" / "default" / "v2" / "v2-plaintext" 個別仕様
keepNativeChatGptOnV1? Astra roster upgrade boolean 個別仕様
subagentModels? Astra roster upgrade string[] 個別仕様
injectionModel? Astra roster upgrade string 個別仕様
injectionEffort? Astra roster upgrade string 個別仕様
injectionPrompt? Astra roster upgrade string 個別仕様
multiAgentGuidanceEnabled? Astra roster upgrade boolean 個別仕様
syncCodexSubagentDefaults? Astra roster upgrade boolean 個別仕様
subagentModelFallback? Astra roster upgrade string[] 個別仕様
subagentModelFallbackByModel? Astra roster upgrade Record<string, string[]> 個別仕様
subagentModelFallbackPollMs? Astra roster upgrade number 個別仕様
codexRoleTiers? Astra roster upgrade { fast?, standard?, frontier?: string[] } 個別仕様
codexRoleCapability? Astra roster upgrade { artificialAnalysis?: { apiKey?: string } } 個別仕様
effortCap? Astra roster upgrade string 個別仕様
subagentEffortCap? Astra roster upgrade string 個別仕様
plaintextV2AgentMessages? Astra roster upgrade boolean 個別仕様
agentTaskRecovery? Astra roster upgrade object 個別仕様

カタログの識別子(4行)

識別子 領域 型・明示値 初期値・参照
includeSkillsUsageInstructions Routed row defaults include_skills_usage_instructions 個別仕様
includeAppsUsageInstructions Routed row defaults include_apps_usage_instructions 個別仕様
includePluginUsageInstructions Routed row defaults include_plugin_usage_instructions 個別仕様
defaultVerbosity Routed row defaults default_verbosity 個別仕様

OSのキーチェーン。 公式資料

プロバイダーの識別子(198行)

識別子 領域 型・明示値 初期値・参照
providers Provider-related top-level fields Record<string, OcxProviderConfig> 個別仕様
openaiProviderTierVersion? Provider-related top-level fields 2 個別仕様
disabledModels? Provider-related top-level fields string[] 個別仕様
providerContextCaps? Provider-related top-level fields Record<string, number> 個別仕様
providerContextCapValues? Provider-related top-level fields Record<string, number> 個別仕様
contextCapValue? Provider-related top-level fields number 個別仕様
codexAccounts? Provider-related top-level fields CodexAccount[] 個別仕様
pausedCodexAccountIds? Provider-related top-level fields string[] 個別仕様
codexUseRemainingQuotaAccountIds? Provider-related top-level fields string[] 個別仕様
creditCodexAccountIds? Provider-related top-level fields string[] 個別仕様
codexQuotaAutoRefresh? Provider-related top-level fields Record<string, object> 個別仕様
codexAccountNamespaces? Provider-related top-level fields Record<string, string> 個別仕様
codexAccountPickerEnabled? Provider-related top-level fields boolean 個別仕様
activeCodexAccountId? Provider-related top-level fields string 個別仕様
codexAccountPriorities? Provider-related top-level fields Record<string, number> 個別仕様
activeCodexAccountPinned? Provider-related top-level fields string 個別仕様
codexPreserveSignedInAccount? Provider-related top-level fields boolean 個別仕様
codexAccountPriorityFailback? Provider-related top-level fields boolean 個別仕様
autoSwitchThreshold? Provider-related top-level fields number 個別仕様
codexAccountAutoSwitchThresholds? Provider-related top-level fields Record<string, number> 個別仕様
accountPoolStrategy? Provider-related top-level fields "quota" / "round-robin" / "fill-first" / "reset-first" / "reset-near-weighted" 個別仕様
pool.cacheAffinity? Provider-related top-level fields boolean 個別仕様
pool.credentialGroups? Provider-related top-level fields Array<{ id: string; credentials: string[]; note?: string }> 個別仕様
accountPoolStickyLimit? Provider-related top-level fields number 個別仕様
upstreamFailoverThreshold? Provider-related top-level fields number 個別仕様
codexFailureWindow? Provider-related top-level fields boolean 個別仕様
codexPinnedTransientPolicy? Provider-related top-level fields "hold" / "detour-new-threads" 個別仕様
codexWsReuseAcrossTurns? Provider-related top-level fields boolean 個別仕様
upstreamHostCircuitThreshold? Provider-related top-level fields number 個別仕様
maxUpstreamBodyBytes? Provider-related top-level fields number 個別仕様
maxInboundBodyBytes? Provider-related top-level fields number 個別仕様
maxConcurrentInboundBodyBytes? Provider-related top-level fields number 個別仕様
upstreamRequestCompression? Provider-related top-level fields "off" / "gzip" / "zstd" 個別仕様
modelCacheTtlMs? Provider-related top-level fields number 個別仕様
cacheRetention? Provider-related top-level fields "none" / "short" / "long" 個別仕様
tokenGuardian? Provider-related top-level fields OcxTokenGuardianConfig 個別仕様
gpt-6-sol GPT-6 Astra, Sol, Luna and Astra Minor 行の定義を参照 個別仕様
gpt-6-luna GPT-6 Astra, Sol, Luna and Astra Minor 行の定義を参照 個別仕様
gpt-6.1-sol GPT-6 Astra, Sol, Luna and Astra Minor 行の定義を参照 個別仕様
adapter Provider entries (OcxProviderConfig) string 個別仕様
baseUrl Provider entries (OcxProviderConfig) string 個別仕様
proxy? Provider entries (OcxProviderConfig) string / null 個別仕様
noProxy? Provider entries (OcxProviderConfig) string / string[] 個別仕様
requestPacing? Provider entries (OcxProviderConfig) { enabled, requestsPerMinute?, minIntervalMs?, maxConcurrentRequests?, models?, keySelection?, keys? } 個別仕様
requestPacing.keySelection? Provider entries (OcxProviderConfig) "active", "round-robin" 個別仕様
requestPacing.keys? Provider entries (OcxProviderConfig) { requestsPerMinute?, minIntervalMs?, maxConcurrentRequests? } 個別仕様
connectTimeoutMs? Provider entries (OcxProviderConfig) number 個別仕様
stallTimeoutSec? Provider entries (OcxProviderConfig) number 個別仕様
upstreamHttpVersion? Provider entries (OcxProviderConfig) "auto" / "http1.1" / "h1" / "http2" / "h2" 個別仕様
tlsProfile? Provider entries (OcxProviderConfig) "antigravity-browser" 個別仕様
responsesPath? Provider entries (OcxProviderConfig) string 個別仕様
chatCompletionsPath? Provider entries (OcxProviderConfig) string 個別仕様
allowEncryptedV2AgentTasks? Provider entries (OcxProviderConfig) boolean 個別仕様
projectResponsesLiteHostedSearchHistory? Provider entries (OcxProviderConfig) boolean 個別仕様
upstreamWebsocket? Provider entries (OcxProviderConfig) boolean 個別仕様
supportsServiceTier? Provider entries (OcxProviderConfig) boolean 個別仕様
responseTierAuthoritative? Provider entries (OcxProviderConfig) boolean 個別仕様
fastEnabled? Provider entries (OcxProviderConfig) boolean 個別仕様
modelSupportsServiceTier? Provider entries (OcxProviderConfig) Record<string, boolean> 個別仕様
chatServiceTier? Provider entries (OcxProviderConfig) boolean 個別仕様
promptCacheKey? Provider entries (OcxProviderConfig) boolean 個別仕様
preserveResponsesReasoningContent? Provider entries (OcxProviderConfig) boolean 個別仕様
preserveResponsesInputItemIds? Provider entries (OcxProviderConfig) boolean 個別仕様
preserveResponsesMessageMetadata? Provider entries (OcxProviderConfig) boolean 個別仕様
dropResponsesReasoningItems? Provider entries (OcxProviderConfig) boolean 個別仕様
disabled? Provider entries (OcxProviderConfig) boolean 個別仕様
apiKey? Provider entries (OcxProviderConfig) string 個別仕様
apiKeyTransport? Provider entries (OcxProviderConfig) "x-api-key" / "bearer" 個別仕様
anthropicOAuthUserInstructions? Provider entries (OcxProviderConfig) boolean 個別仕様
apiKeyPool? Provider entries (OcxProviderConfig) ApiKeyPoolEntry[] 個別仕様
apiKeyPoolStrategy? Provider entries (OcxProviderConfig) "round-robin" / "fill-first" / "quota" 個別仕様
cacheAffinity? Provider entries (OcxProviderConfig) "auto" / "session" / "turn" / "off" 個別仕様
defaultModel? Provider entries (OcxProviderConfig) string 個別仕様
models? Provider entries (OcxProviderConfig) string[] 個別仕様
liveModels? Provider entries (OcxProviderConfig) boolean 個別仕様
modelDiscovery? Provider entries (OcxProviderConfig) { skipInvalidRows?: boolean } 個別仕様
selectedModels? Provider entries (OcxProviderConfig) string[] 個別仕様
retainModels? Provider entries (OcxProviderConfig) string[] 個別仕様
modelDisplayNames? Provider entries (OcxProviderConfig) Record<string, string> 個別仕様
contextWindow? Provider entries (OcxProviderConfig) number 個別仕様
modelContextWindows? Provider entries (OcxProviderConfig) Record<string, number> 個別仕様
inferContextWindow? Provider entries (OcxProviderConfig) boolean 個別仕様
modelContextTiers? Provider entries (OcxProviderConfig) Record<string, "default" / "long_context"> 個別仕様
modelInputModalities? Provider entries (OcxProviderConfig) Record<string, string[]> 個別仕様
modelMaxInputTokens? Provider entries (OcxProviderConfig) Record<string, number> 個別仕様
modelAutoCompactTokenLimits? Provider entries (OcxProviderConfig) Record<string, number> 個別仕様
minMaxOutputTokens? Provider entries (OcxProviderConfig) number 個別仕様
defaultMaxOutputTokens? Provider entries (OcxProviderConfig) number 個別仕様
modelMaxOutputTokens? Provider entries (OcxProviderConfig) Record<string, number> 個別仕様
modelCosts? Provider entries (OcxProviderConfig) Record<string, ProviderCostOverlay> 個別仕様
creditPriceUsd? Provider entries (OcxProviderConfig) number 個別仕様
headers? Provider entries (OcxProviderConfig) Record<string, string> 個別仕様
forwardClientHeaders? Provider entries (OcxProviderConfig) string[] 個別仕様
supportsNativeCompactionTrigger? Provider entries (OcxProviderConfig) boolean 個別仕様
supportsNativeCompactEndpoint? Provider entries (OcxProviderConfig) boolean 個別仕様
decodesNativeCompactionBlobs? Provider entries (OcxProviderConfig) boolean 個別仕様
openRouterRouting? Provider entries (OcxProviderConfig) OpenRouterProviderRouting 個別仕様
modelOpenRouterRouting? Provider entries (OcxProviderConfig) Record<string, OpenRouterProviderRouting> 個別仕様
vercelGatewayRouting? Provider entries (OcxProviderConfig) VercelGatewayRouting 個別仕様
modelVercelGatewayRouting? Provider entries (OcxProviderConfig) Record<string, VercelGatewayRouting> 個別仕様
authMode? Provider entries (OcxProviderConfig) "key" / "forward" / "oauth" / "local" 個別仕様
codexAccountMode? Provider entries (OcxProviderConfig) "pool" / "direct" 個別仕様
refreshPolicy? Provider entries (OcxProviderConfig) "proactive" / "lazy-only" / "disabled" 個別仕様
reasoningEfforts? Provider entries (OcxProviderConfig) string[] 個別仕様
modelReasoningEfforts? Provider entries (OcxProviderConfig) Record<string, string[]> 個別仕様
modelReasoningEffortsAuthoritative? Provider entries (OcxProviderConfig) boolean 個別仕様
modelSuppressSyntheticMax? Provider entries (OcxProviderConfig) Record<string, boolean> 個別仕様
modelSupportsReasoningSummaries? Provider entries (OcxProviderConfig) Record<string, boolean> 個別仕様
modelReasoningSummaryDelivery? Provider entries (OcxProviderConfig) Record<string, "sequential" / "sequential_cutoff" / "concurrent" / "concurrent_cutoff"> 個別仕様
thinkingDisplay? Provider entries (OcxProviderConfig) "auto" / "summarized" / "updates" / "omitted" 個別仕様
modelThinkingDisplay? Provider entries (OcxProviderConfig) Record<string, "auto" / "summarized" / "updates" / "omitted"> 個別仕様
modelAdapters? Provider entries (OcxProviderConfig) Record<string, string> 個別仕様
xaiResponsesXSearch? Provider entries (OcxProviderConfig) boolean 個別仕様
modelPreferHostedTools? Provider entries (OcxProviderConfig) Record<string,string[]> 個別仕様
annotateEmptyToolOutputs? Provider entries (OcxProviderConfig) boolean 個別仕様
promoteAdditionalTools? Provider entries (OcxProviderConfig) boolean 個別仕様
unsupportedHostedTools? Provider entries (OcxProviderConfig) string[] 個別仕様
unsupportedHostedToolsWithClientTools? Provider entries (OcxProviderConfig) string[] 個別仕様
reasoningEffortMap? Provider entries (OcxProviderConfig) Record<string, string> 個別仕様
modelReasoningEffortMap? Provider entries (OcxProviderConfig) Record<string, Record<string, string>> 個別仕様
reasoningWireFormat? Provider entries (OcxProviderConfig) "gateway-object" 個別仕様
noReasoningModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noTemperatureModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noTopPModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noStopModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noPenaltyModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noStructuredOutputModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noJsonSchemaModels? Provider entries (OcxProviderConfig) string[] 個別仕様
foldDeveloperRoleToSystem? Provider entries (OcxProviderConfig) boolean 個別仕様
omitReasoningEffortWithToolsModels? Provider entries (OcxProviderConfig) string[] 個別仕様
parallelToolCalls? Provider entries (OcxProviderConfig) boolean 個別仕様
terminalContinuationGuard? Provider entries (OcxProviderConfig) boolean 個別仕様
responsesItemIdRepair? Provider entries (OcxProviderConfig) { message?: string[]; reasoning?: string[]; repairMissingTerminalIds?: boolean; repairInvalidIds?: boolean } 個別仕様
responsesSnapshotRepair? Provider entries (OcxProviderConfig) boolean 個別仕様
messagePhaseInference? Provider entries (OcxProviderConfig) boolean 個別仕様
estimateMissingUsage? Provider entries (OcxProviderConfig) boolean 個別仕様
webSearchBridge? Provider entries (OcxProviderConfig) { enabled?: boolean; backend?: "ollama" / "openai" / "anthropic" / "xai" / "gemini" / "exa"; maxSearches?: number; timeoutMs?: number; endpoint?: string } 個別仕様
retryOn429? Provider entries (OcxProviderConfig) { enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean } 個別仕様
transientRetryOn5xx? Provider entries (OcxProviderConfig) { enabled?: boolean; attempts?: number } 個別仕様
retryOnReset? Provider entries (OcxProviderConfig) { enabled?: boolean; replacements?: number } 個別仕様
autoToolChoiceOnlyModels? Provider entries (OcxProviderConfig) string[] 個別仕様
preserveReasoningContentModels? Provider entries (OcxProviderConfig) string[] 個別仕様
inlineThinkTagModels? Provider entries (OcxProviderConfig) string[] 個別仕様
reasoningDetailsModels? Provider entries (OcxProviderConfig) string[] 個別仕様
requiresReasoningPlaceholderModels? Provider entries (OcxProviderConfig) string[] 個別仕様
showThinkingSummary? Provider entries (OcxProviderConfig) boolean 個別仕様
hideRawReasoning? Provider entries (OcxProviderConfig) boolean 個別仕様
rawReasoningAsSummary? Provider entries (OcxProviderConfig) boolean 個別仕様
thinkingToggleModels? Provider entries (OcxProviderConfig) string[] 個別仕様
thinkingBudgetModels? Provider entries (OcxProviderConfig) string[] 個別仕様
noVisionModels? Provider entries (OcxProviderConfig) string[] 個別仕様
escapeBuiltinToolNames? Provider entries (OcxProviderConfig) boolean 個別仕様
anthropicEofTolerance? Provider entries (OcxProviderConfig) boolean 個別仕様
anthropicImageContextRecovery? Provider entries (OcxProviderConfig) boolean 個別仕様
forwardAdvisorTool? Provider entries (OcxProviderConfig) boolean 個別仕様
perMessageEffort? Provider entries (OcxProviderConfig) boolean 個別仕様
googleMode? Provider entries (OcxProviderConfig) "ai-studio" / "vertex" / "cloud-code-assist" 個別仕様
googleToolSchemaPolicy? Provider entries (OcxProviderConfig) "compatible" / "reject-lossy" 個別仕様
directGeminiWireRenames? Provider entries (OcxProviderConfig) boolean 個別仕様
project? Provider entries (OcxProviderConfig) string 個別仕様
location? Provider entries (OcxProviderConfig) string 個別仕様
mcpServers? Provider entries (OcxProviderConfig) Record<string, CursorMcpServerConfig> 個別仕様
desktopExecutor? Provider entries (OcxProviderConfig) DesktopExecutorConfig 個別仕様
unsafeAllowNativeLocalExec? Provider entries (OcxProviderConfig) boolean 個別仕様
nativeLocalExec? Provider entries (OcxProviderConfig) "off" / "codex-sandbox" / "on" 個別仕様
auto_review_model Codex catalog and root config.toml settings string 個別仕様
round-robin Codex account pool 行の定義を参照 個別仕様
fill-first Codex account pool 行の定義を参照 個別仕様
anthropicAccountPool.enabled? anthropicAccountPool (experimental) boolean 個別仕様
anthropicAccountPool.nativeMessages? anthropicAccountPool (experimental) boolean 個別仕様
anthropicAccountPool.autoSwitchThreshold? anthropicAccountPool (experimental) number 個別仕様
anthropicAccountPool.strategy? anthropicAccountPool (experimental) "quota" / "round-robin" / "fill-first" / "reset-near-weighted" 個別仕様
anthropicAccountPool.quotaWindow? anthropicAccountPool (experimental) "five-hour" / "weekly" / "max-utilization" 個別仕様
anthropicAccountPool.stickyLimit? anthropicAccountPool (experimental) number 個別仕様
anthropicAccountPool.routes? anthropicAccountPool (experimental) {name, match, accounts, fallback?}[] 個別仕様
"anthropic" Anthropic · Pool 2 (anthropic2) 行の定義を参照 個別仕様
"anthropic2" Anthropic · Pool 2 (anthropic2) 行の定義を参照 個別仕様
oauthAccountFailover.enabled? oauthAccountFailover boolean 個別仕様
providers.<name>.oauthAccountFailover.enabled? oauthAccountFailover boolean 個別仕様
providers.<name>.oauthAccountFailover.sessionAffinity? oauthAccountFailover "conversation" / "none" 個別仕様
providers.<name>.oauthAccountFailover.strategy? oauthAccountFailover "quota" / "round-robin" / "fill-first" / "reset-first" / "least-loaded" (Kiro only) 個別仕様
providers.kiro.oauthAccountFailover.maxConcurrentPerAccount? oauthAccountFailover 行の定義を参照 個別仕様
providers.<name>.oauthAccountFailover.autoSwitchThreshold? oauthAccountFailover number 個別仕様
providers.<name>.oauthAccountFailover.stickyLimit? oauthAccountFailover number 個別仕様
enabled? tokenGuardian (OcxTokenGuardianConfig) boolean 個別仕様
tickSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
jitterSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
concurrency? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
leadSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
failureBackoffBaseSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
failureBackoffMaxSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
codexWarmupEnabled? tokenGuardian (OcxTokenGuardianConfig) boolean 個別仕様
codexWarmupMaxAgeSeconds? tokenGuardian (OcxTokenGuardianConfig) number 個別仕様
codexWarmupModel? tokenGuardian (OcxTokenGuardianConfig) string 個別仕様
cursor/auto Cursor provider (adapter: “cursor”) 行の定義を参照 個別仕様
cursor/auto-cost Cursor provider (adapter: “cursor”) 行の定義を参照 個別仕様
cursor/auto-balance Cursor provider (adapter: “cursor”) 行の定義を参照 個別仕様
cursor/auto-intelligence Cursor provider (adapter: “cursor”) 行の定義を参照 個別仕様

ルーティングの識別子(32行)

識別子 領域 型・明示値 初期値・参照
defaultProvider Top-level routing fields string 個別仕様
combos? Top-level routing fields Record<string, OcxComboConfig> 個別仕様
routingProfiles? Top-level routing fields Record<string, OcxRoutingProfileConfig> 個別仕様
targets Combos (config.combos) { provider: string; model: string; weight?: number; lastResort?: boolean; metered?: boolean }[] 個別仕様
allowMeteredTargets? Combos (config.combos) boolean 個別仕様
strategy? Combos (config.combos) "failover" / "round-robin" / "random" / "least-used" / "reset-window" / "jev" 個別仕様
stickyLimit? Combos (config.combos) number 個別仕様
cooldownMs? Combos (config.combos) number 個別仕様
waitForCooldownMs? Combos (config.combos) number 個別仕様
cooldownWaitPolicy? Combos (config.combos) "before-last-resort" 個別仕様
defaultEffort? Combos (config.combos) "low" / "medium" / "high" / "xhigh" / "max" / "ultra" / null 個別仕様
defaultEffortMode? Combos (config.combos) "fallback" / "force" 個別仕様
reasoningEffortMode? Combos (config.combos) "strict" / "adaptive" 個別仕様
jevEffortMode? Combos (config.combos) "decide" / "client" 個別仕様
capabilityPolicy? Combos (config.combos) "intersection" / "union" 個別仕様
onUnservable? Combos (config.combos) "degrade" / "reject" 個別仕様
imageInput? Combos (config.combos) "auto" / "disabled" 個別仕様
alias? Combos (config.combos) string 個別仕様
nativeAlias? Combos (config.combos) boolean 個別仕様
displayName? Combos (config.combos) string 個別仕様
decisionProvider? Combos (config.combos) string 個別仕様
decisionModel? Combos (config.combos) string 個別仕様
decisionTimeoutMs? Combos (config.combos) number 個別仕様
decisionQuotaSignals? Combos (config.combos) boolean 個別仕様
decisionQuotaTiers? Combos (config.combos) { moderate?: number; limited?: number; nearlyExhausted?: number } 個別仕様
sessionPin? Combos (config.combos) { ttlMs: number, effort?: "pinned" / "per-turn" } 個別仕様
candidates Routing policy profiles (config.routingProfiles) { provider: string; model: string }[] 個別仕様
alias? Routing policy profiles (config.routingProfiles) string 個別仕様
require? Routing policy profiles (config.routingProfiles) 行の定義を参照 個別仕様
optimize? Routing policy profiles (config.routingProfiles) 行の定義を参照 個別仕様
limits? Routing policy profiles (config.routingProfiles) 行の定義を参照 個別仕様
unknownEvidence? Routing policy profiles (config.routingProfiles) 行の定義を参照 個別仕様

サーバーとランタイムの識別子(118行)

識別子 領域 型・明示値 初期値・参照
completeOnMaxOutputTokens? Server fields boolean false
port Server fields number 10100
hostname? Server fields string "127.0.0.1"
proxy? Server fields string —
noProxy? Server fields string / string[] —
emptyCompletionRetry? Server fields boolean false
dropCodexSafetyBuffering? Server fields boolean false
stallTimeoutSec? Server fields number 300 (public) / disabled (local)
oauthOpenBrowser? Server fields boolean true
codexAuthMethod? Server fields "auto" / "device-only" "auto"
connectTimeoutMs? Server fields number 200000 (public) / disabled (local)
offlineResendWaitSec? Server fields number off
shutdownTimeoutMs? Server fields number 5000
websockets? Server fields boolean false
codexNativeSteering? Server fields boolean false
codexNativeInjection? Server fields boolean false
nativeReasoningRetention? Server fields { modelSwitch?: boolean; accountSwitch?: boolean } both false
workflowBudget? Server fields { maxConcurrentChildren?: number; maxPhysicalSends?: number; maxDistinctChildren?: number } 8 / 256 / 64
corsAllowOrigins? Server fields string[] []
dashboardTrustedProxy? Server fields { origin: string; proxyAddresses: string[]; trustHeaders?: ("x-forwarded-host" / "x-forwarded-proto")[] } unset
apiKeys? Server fields OcxApiKey[] []
storageCleanupPolicy? Server fields StorageCleanupPolicy disabled
usageLedgerMaxBytes? Server fields number unset
appOwnedMemoryBudgetMb? Server fields number 256
metricsExport.enabled? Server fields boolean false
serviceHealthRecovery.enabled? Server fields boolean false
spend? Server fields { root?: { maxTokens?: number }; identity?: { maxTokens?: number }; pool?: { maxTokens?: number }; retentionDays?: number } unset
codexAutoStart? Server fields boolean true
codexShimAutoRestore? Server fields boolean true
codexDesktopAuthless? Server fields boolean false
codexReserveEnabled? Server fields boolean false (seeded once from codexDesktopAuthless)
codexAccountPickerEnabled? Server fields boolean unset
codexAccountNamespaces? Server fields Record<string, string> unset
codexClientCompaction? Server fields boolean false
codexProviderDisplayName? Server fields string "OpenCodex Proxy"
codexMainAccountHardLock? Server fields boolean true
codexMainAccountHardLockThresholds? Server fields { short?: number; long?: number } { short: 90, long: 98 }
codexMainAccountHardLockFallback? Server fields { enabled?: boolean; model?: string; reasoningEffort?: string } off
nativeMainRefresh? Server fields "codex" / "opencodex" auto
resetCreditAutoRedeem? Server fields { enabled?: boolean; leadTimeMinutes?: number } off
syncResumeHistory? Server fields boolean true
spendPoolAliases? Server fields Record<string, string> unset
shadowCallIntercept? Server fields { enabled?: boolean; model?: string; sourceModels?: string[] } off
memoryModels? Server fields { extract?: { model: string; reasoningEffort?: string }; consolidation?: { model: string; reasoningEffort?: string } } off
webSearchSidecar? Server fields OcxWebSearchSidecarConfig on when usable
visionSidecar? Server fields OcxVisionSidecarConfig on when usable
images? Server fields OcxImagesConfig automatic OpenAI selection
telemetry? Server fields OcxTelemetryConfig default-on after human disclosure
maxConcurrentChildren Workflow limits 8 2–64
maxPhysicalSends Workflow limits 256 1–10000
maxDistinctChildren Workflow limits 64 1–1024
quotaRefresh.status Codex quota network diagnostics 行の定義を参照 個別仕様
ok Codex quota network diagnostics 行の定義を参照 個別仕様
not_reported Codex quota network diagnostics 行の定義を参照 個別仕様
http_error Codex quota network diagnostics 行の定義を参照 個別仕様
timeout Codex quota network diagnostics 行の定義を参照 個別仕様
network_error Codex quota network diagnostics 行の定義を参照 個別仕様
invalid_response Codex quota network diagnostics 行の定義を参照 個別仕様
internal_error Codex quota network diagnostics 行の定義を参照 個別仕様
/v1/responses Remote access 行の定義を参照 accepted
/v1/chat/completions Remote access 行の定義を参照 accepted
/v1/messages Remote access 行の定義を参照 accepted
/v1/messages/count_tokens Remote access 行の定義を参照 accepted
/v1/models Remote access 行の定義を参照 accepted
/v1/usage/windows Remote access 行の定義を参照 accepted
privacy.maskEmails? Account email masking (privacy) boolean true
telemetry.decision? Telemetry (telemetry) "accepted" / "declined" unset (undecided)
telemetry.decidedAt? Telemetry (telemetry) string (ISO 8601) unset
telemetry.noticeShownAt? Telemetry (telemetry) string (ISO 8601) unset
enabled Catalog auto-refresh (catalogAutoRefresh) true 個別仕様
intervalMinutes Catalog auto-refresh (catalogAutoRefresh) 60 個別仕様
enabled Quota-reset notifications (quotaResetNotify) false 個別仕様
kinds Quota-reset notifications (quotaResetNotify) 行の定義を参照 個別仕様
pollSeconds Quota-reset notifications (quotaResetNotify) 900 個別仕様
webhookUrl Quota-reset notifications (quotaResetNotify) 行の定義を参照 個別仕様
allowPrivateNetwork Quota-reset notifications (quotaResetNotify) false 個別仕様
timeoutMs Quota-reset notifications (quotaResetNotify) 5000 個別仕様
command Quota-reset notifications (quotaResetNotify) 行の定義を参照 個別仕様
apiSurfaces.messages.enabled? API surfaces (apiSurfaces) boolean inherit
apiSurfaces.gemini.enabled? API surfaces (apiSurfaces) boolean true
protocols.unrepresentable? Protocol paths (protocols) "legacy" / "reject" "legacy"
protocols.rollout.nativeChatCombos? Protocol paths (protocols) boolean false
protocols.rollout.managedMessagesNative? Protocol paths (protocols) boolean false
protocols.rollout.managedMessagesNativeOAuth? Protocol paths (protocols) boolean false
protocols.rollout.directEncoders? Protocol paths (protocols) boolean false
protocols.rollout.antigravityDirect? Protocol paths (protocols) boolean true
protocols.rollout.shadowPlan? Protocol paths (protocols) boolean false
claudeCode.bodyStallSec? Claude Code (claudeCode) number 90
claudeCode.bodyMaxBytes? Claude Code (claudeCode) number 67108864
claudeCode.compatibility? Claude Code (claudeCode) "shadow" / "enforce" unset
claudeCode.authMode? Claude Code (claudeCode) "proxy" / "subscription" auto
claudeCode.authModeMigratedAt? Claude Code (claudeCode) string unset
claudeCode.classifierModel? Claude Code (claudeCode) string unset
claudeCode.classifierFallbacks? Claude Code (claudeCode) string[] unset
claudeCode.desktopModelVisibility? Claude Code (claudeCode) { mode: "include" / "exclude"; routes: string[] } unset
claudeCode.subagentEffort? Claude Code (claudeCode) "low" / "medium" / "high" / "xhigh" / "max" inherit
provider? images (OcxImagesConfig) string automatic OpenAI selection
timeoutMs? images (OcxImagesConfig) number 300000
videoProvider? images (OcxImagesConfig) string xAI
enabled? webSearchSidecar (OcxWebSearchSidecarConfig) boolean on when usable
backend? webSearchSidecar (OcxWebSearchSidecarConfig) "openai" / "anthropic" / "xai" / "gemini" / "exa" openai
model? webSearchSidecar (OcxWebSearchSidecarConfig) string backend-dependent
exaApiKey? webSearchSidecar (OcxWebSearchSidecarConfig) string none
xSearch? webSearchSidecar (OcxWebSearchSidecarConfig) object omitted
reasoning? webSearchSidecar (OcxWebSearchSidecarConfig) string low
maxSearchesPerTurn? webSearchSidecar (OcxWebSearchSidecarConfig) number 3
routedModelStallTimeoutMs? webSearchSidecar (OcxWebSearchSidecarConfig) number 200000
timeoutMs? webSearchSidecar (OcxWebSearchSidecarConfig) number 60000
enabled? visionSidecar (OcxVisionSidecarConfig) boolean on when usable
backend? visionSidecar (OcxVisionSidecarConfig) "openai" / "anthropic" auto
model? visionSidecar (OcxVisionSidecarConfig) string backend-dependent
maxDescriptionsPerTurn? visionSidecar (OcxVisionSidecarConfig) number 8
timeoutMs? visionSidecar (OcxVisionSidecarConfig) number 45000
hub.managementPublicOrigin Remote Hub keys and defaults 行の定義を参照 unset
hub.dataPublicOrigin Remote Hub keys and defaults 行の定義を参照 unset
hub.managementIngress Remote Hub keys and defaults {enabled:false} or {enabled:true, port} {enabled:false}
remoteGui.allowedTailscaleUsers Remote Hub keys and defaults 行の定義を参照 [] (empty — nobody)
remoteGui.allowInsecureHttp Remote Hub keys and defaults 行の定義を参照 unset

v2.100.5とv2.100.7で変わる設定

設定・操作 v2.100.5 v2.100.7と制約
codexAuthMethod 公開設定項目なし 文字列。省略時 auto、または device-only。Poolへの追加・再認証に適用。ネイティブの主アカウントと他のProviderには適用しない。再起動が必要
oauthOpenBrowser 既定true 任意のboolean。falseはブラウザーの自動起動を止める。デバイスコード方式の強制とは独立
POST /api/combo-suggestions/save 公開資料に当該行なし id: string、mode: "create" &#124; "append"、targets。作成は allowMeteredTargets: true、追記は保存済み同意が必要。対象は metered: true として保存。Dashboardセッションが必要

device-only では ocx account login openai --code はstdin読込前に拒否します。機械処理で表示する場合は ocx account login openai --no-wait --json の形式です。返った認証情報をファイルや共有ログに残さないでください。 Server設定 · アカウントCLI · 版の比較

待受・資格情報・予算を先に決める

端末内では hostname: "127.0.0.1" を使います。別端末に提供する場合には生成用のキーを有効にし、TLS、許可する接続元、用途別のキーと対象モデルを設定します。 OPENCODEX_API_AUTH_TOKEN はデータ、OPENCODEX_ADMIN_AUTH_TOKEN は管理、DeepSeekキーは上流です。管理トークンをクライアントに配布しません。外部待受でCLIや通知からURLを出力するときは管理URL・トークンを分けます。

spend.root.maxTokens、spend.identity.maxTokens、spend.pool.maxTokens は任意の正整数。設定しなければこの上限は適用されません。 spend.retentionDays は1〜365、既定7日。複数の上限があるときは全部に空きが必要です。キャッシュ命中を当てにせず入力と最大出力を予約し、予算拒否ではローカル429の x-opencodex-local-refusal: workflow_spend_exhausted を返します。 Server設定 · 料金

設定ファイルを保存した後、動作中のプロキシに反映する前にローカルで検査します。入力を表示するシェルの追跡やHTTPヘッダートレースは使いません。

ocx config validate --json

JSONの ok と終了コードを確認し、警告があれば内容も読みます。たとえば codexAuthMethod に不明な値を指定した場合は警告が出て、auto として扱われます。

症状から確認する

症状 切り分け 確認コマンド・画面 次の操作
別端末から401/403 生成キーと管理トークンの用途またはOrigin違い 対象パスが /v1/ か /api/ かを確かめる 用途ごとの資格情報とTLS、接続元を見直す
429の後に停止しない アプリと中継の両方が再試行 応答ヘッダー・設定の送信回数 ローカルの予算拒否は即停止し、再試行を一箇所に絞る
検証記録

確認は公式資料と対象版のソースで行いました。実クライアント・実APIは未検証です。