Directories
¶
| Path | Synopsis |
|---|---|
|
Package appserver is a second client of a Codex app-server: the session's private one in stage 1, or a home's shared daemon in stage 2.
|
Package appserver is a second client of a Codex app-server: the session's private one in stage 1, or a home's shared daemon in stage 2. |
|
Package brain is the stage 2 router of one Codex home (plan decision M6).
|
Package brain is the stage 2 router of one Codex home (plan decision M6). |
|
Package catalog reads the Codex model catalog (GET {base_url}/models, or $CODEX_HOME/models_cache.json read-only) and answers two questions: which models share a compatibility group, and how large a model's usable context window is.
|
Package catalog reads the Codex model catalog (GET {base_url}/models, or $CODEX_HOME/models_cache.json read-only) and answers two questions: which models share a compatibility group, and how large a model's usable context window is. |
|
Package classifier asks an external model which tier and activity a prompt needs.
|
Package classifier asks an external model which tier and activity a prompt needs. |
|
Package config holds the router configuration: tiers, activities, routes, policy, classifiers, and the JSON file under the XDG config dir they load from.
|
Package config holds the router configuration: tiers, activities, routes, policy, classifiers, and the JSON file under the XDG config dir they load from. |
|
Package control is the router's local control channel, protocol v2: JSON lines over a 0600 unix socket.
|
Package control is the router's local control channel, protocol v2: JSON lines over a 0600 unix socket. |
|
Package cost keeps the prompt-cache ledger per thread and model and prices a switch in uncached tokens, with USD only when a model has list prices.
|
Package cost keeps the prompt-cache ledger per thread and model and prices a switch in uncached tokens, with USD only when a model has list prices. |
|
Package facts derives what the policy needs from one Responses request: the prompt and recent dialogue for the classifier, a repeated tool-failure signature, the activity the tools show, whether a verification passed, and a context size estimate.
|
Package facts derives what the policy needs from one Responses request: the prompt and recent dialogue for the classifier, a repeated tool-failure signature, the activity the tools show, whether a verification passed, and a context size estimate. |
|
Package home resolves the Codex home a router serves ($CODEX_HOME, else ~/.codex) into a stable identity: a short ID hashed from the canonical path and a display name.
|
Package home resolves the Codex home a router serves ($CODEX_HOME, else ~/.codex) into a stable identity: a short ID hashed from the canonical path and a display name. |
|
Package hook implements `codex-router hook`, the optional Codex command hook (UserPromptSubmit, Stop) that prints a systemMessage when the route changed since the previous turn.
|
Package hook implements `codex-router hook`, the optional Codex command hook (UserPromptSubmit, Stop) that prints a systemMessage when the route changed since the previous turn. |
|
Package launcher runs one routed Codex session: it makes the runtime dir, starts and probes the proxy, starts the private app-server with -c overrides only, connects the router client, wires the engine to the app-server and control socket, then runs `codex --remote`.
|
Package launcher runs one routed Codex session: it makes the runtime dir, starts and probes the proxy, starts the private app-server with -c overrides only, connects the router client, wires the engine to the app-server and control socket, then runs `codex --remote`. |
|
Package link is the edge-brain socket of stage 2 (plan decision M7).
|
Package link is the edge-brain socket of stage 2 (plan decision M7). |
|
Package listen takes a listening socket from the service manager (plan decision M8): systemd socket activation on Linux, launchd Sockets on macOS.
|
Package listen takes a listening socket from the service manager (plan decision M8): systemd socket activation on Linux, launchd Sockets on macOS. |
|
Package modestore keeps each session's routing mode override: one small file per Codex thread under <state>/codex-router/modes/<home id>/.
|
Package modestore keeps each session's routing mode override: one small file per Codex thread under <state>/codex-router/modes/<home id>/. |
|
Package policy decides the tier for a step: escalation on a repeated tool failure, holds, votes with hysteresis, cost-gated upgrade and downgrade bars, and the context-fit tier search.
|
Package policy decides the tier for a step: escalation on a repeated tool failure, holds, votes with hysteresis, cost-gated upgrade and downgrade bars, and the context-fit tier search. |
|
Package proxy is the loopback Responses proxy: POST /v1/responses and GET /v1/models go to the fixed ChatGPT backend with no redirects; SSE streams through unchanged except for the stripped model headers.
|
Package proxy is the loopback Responses proxy: POST /v1/responses and GET /v1/models go to the fixed ChatGPT backend with no redirects; SSE streams through unchanged except for the stripped model headers. |
|
Package registry is the shared list of running routers: $XDG_STATE_HOME/codex-router/registry (else ~/.local/state/...), one <endpoint_id>.json file per control endpoint.
|
Package registry is the shared list of running routers: $XDG_STATE_HOME/codex-router/registry (else ~/.local/state/...), one <endpoint_id>.json file per control endpoint. |
|
Package responses models the Codex Responses request as the proxy sees it: the body fields the router reads or rewrites (model, reasoning.effort, input items), the turn metadata header, the request kind, and the usage reported in the response.completed SSE event.
|
Package responses models the Codex Responses request as the proxy sees it: the body fields the router reads or rewrites (model, reasoning.effort, input items), the turn metadata header, the request kind, and the usage reported in the response.completed SSE event. |
|
Package route is the router engine: it keys state by thread, turn and request fingerprint, asks the classifier on a turn's first step and in background reviews, runs the policy, checks the compatibility group and context fit, pins a decision for retries, and publishes decisions and snapshots.
|
Package route is the router engine: it keys state by thread, turn and request fingerprint, asks the classifier on a turn's first step and in background reviews, runs the policy, checks the compatibility group and context fit, pins a decision for retries, and publishes decisions and snapshots. |
|
Package service installs, loads and checks the stage 2 service units of one Codex home: launchd agents on macOS, systemd user units on Linux.
|
Package service installs, loads and checks the stage 2 service units of one Codex home: launchd agents on macOS, systemd user units on Linux. |
|
Package sessions finds the running sessions of every router in the registry, or of one control socket, and picks one: by id or label for the panel, by thread id or working dir for a shell command.
|
Package sessions finds the running sessions of every router in the registry, or of one control socket, and picks one: by id or label for the panel, by thread id or working dir for a shell command. |
|
Package setup routes one Codex home through a stage 2 edge and brain (codex-router setup), and undoes it.
|
Package setup routes one Codex home through a stage 2 edge and brain (codex-router setup), and undoes it. |
|
Package statedir is codex-router's state dir, $XDG_STATE_HOME/codex-router (else ~/.local/state/codex-router): where it is, the privacy rule for its dirs, the layout of a home's stage 2 dir in it, and atomic file writes.
|
Package statedir is codex-router's state dir, $XDG_STATE_HOME/codex-router (else ~/.local/state/codex-router): where it is, the privacy rule for its dirs, the layout of a home's stage 2 dir in it, and atomic file writes. |
|
Package tui is the router panel: a Bubble Tea program over the control sockets of every registry endpoint, with a Sessions tab and per-session tabs Now, Routes, Policy, Classifier and Usage.
|
Package tui is the router panel: a Bubble Tea program over the control sockets of every registry endpoint, with a Sessions tab and per-session tabs Now, Routes, Policy, Classifier and Usage. |
Click to show internal directories.
Click to hide internal directories.