Client environment settings
These variables affect the catalex command-line process, not an agent’s permissions or server limits. Set one for a specific command when diagnosing slow networks, large responses or bounded history reads. Leave it unset to use the default; values are decimal integers in the listed range.
For example:
CATALEX_CLIENT_REQUEST_TIMEOUT_MS=60000 catalex status
This gives a request up to one minute; it cannot make an unreachable server respond. A shorter caller deadline still wins. Higher byte/frame/history budgets increase potential memory and network work.
| Environment setting | Unit | Default | Inclusive range |
|---|---|---|---|
CATALEX_CLIENT_DISCOVERY_MAX_BYTES | bytes per publication | 65536 | 1024–1048576 |
CATALEX_CLIENT_REGISTRY_MAX_BYTES | bytes per registry read/write | 16777216 | 1024–67108864 |
CATALEX_CLIENT_RESPONSE_MAX_BYTES | bytes per HTTP response/request | 16777216 | 1024–67108864 |
CATALEX_CLIENT_ATTACHMENT_MAX_BYTES | bytes per chat attachment upload or download | 16777216 | 1024–67108864 |
CATALEX_CLIENT_DISCOVERY_MAX_ENTRIES | directory entries per scan | 1024 | 1–16384 |
CATALEX_CLIENT_MAX_CONNECTIONS | references plus removal identities | 1024 | 1–16384 |
CATALEX_CLIENT_REQUEST_TIMEOUT_MS | milliseconds per identity/scan/input/control request or console handshake | 30000 | 1–600000 |
CATALEX_CLIENT_OPERATION_TIMEOUT_MS | milliseconds a command follows an accepted operation | 600000 | 1–3600000 |
CATALEX_CLIENT_POLL_INTERVAL_MS | milliseconds between status reads while following, and between the health checks of a new release after an update | 200 | 10–60000 |
CATALEX_CLIENT_DISCOVERY_PROBE_TIMEOUT_MS | milliseconds per liveness probe when several agent computers are discoverable | 2000 | 1–600000 |
CATALEX_CLIENT_CHAT_TIMEOUT_MS | milliseconds per chat link handshake or request | 30000 | 1–600000 |
CATALEX_CLIENT_CHAT_WRITE_TIMEOUT_MS | milliseconds per chat frame write | 5000 | 1–600000 |
CATALEX_CLIENT_CHAT_WATCH_MS | default chats watch duration in milliseconds | 30000 | 1–600000 |
CATALEX_CLIENT_CHAT_MAX_FRAMES | frames one chat link reads | 1000 | 1–65536 |
CATALEX_CLIENT_CHAT_HISTORY_LIMIT | messages per history page | 100 | 1–100 |
CATALEX_CLIENT_CHAT_HISTORY_PAGES | history pages one command reads | 5 | 1–100 |
CATALEX_CLIENT_CHAT_COMMAND_TTL_MS | milliseconds a sent chat command stays admissible | 1800000 | 1–86400000 |
CATALEX_CLIENT_CHAT_RESEND_MS | milliseconds before a chat command with no receipt yet is sent again | 1000 | 1–600000 |
CATALEX_CLIENT_CONNECT_TIMEOUT_MS | milliseconds catalex join and catalex devices trust-this wait for this computer to connect | 15000 | 0–600000 |
CATALEX_CLIENT_SIGNIN_TIMEOUT_MS | milliseconds catalex login waits for you to finish signing in | 600000 | 1–3600000 |
CATALEX_CLIENT_GOOGLE_LOGIN_TIMEOUT_MS | milliseconds for the final step of a Google sign-in | 60000 | 1–600000 |
CATALEX_CLIENT_COMPUTER_NAME_TIMEOUT_MS | milliseconds to read the Mac's Computer Name before the host name is used | 1000 | 100–10000 |
CATALEX_CLIENT_DELETE_RETRIES | times catalex account delete repeats a failed request | 2 | 0–10 |
CATALEX_CLIENT_DELETE_RETRY_MS | milliseconds before the first repeat | 1000 | 1–600000 |
CATALEX_CLIENT_DISCONNECT_IDLE_POLLS | consecutive idle status reads before a command that waits for this computer to disconnect gives up | 3 | 1–100 |
CATALEX_CLIENT_PROMPT_MAX_BYTES | bytes of one line read from a terminal prompt | 4096 | 1024–1048576 |
CATALEX_CLIENT_RECENT_AGENTS_SESSION_FILES | recent AI tool session files catalex agents discover looks at | 200 | 1–1000 |
CATALEX_CLIENT_RECENT_AGENTS_READ_BYTES | bytes read from each session file | 65536 | 1024–1048576 |
CATALEX_CLIENT_RECENT_AGENTS_MAX_RESULTS | most agent folders it lists | 12 | 1–100 |
CATALEX_CLIENT_RECENT_AGENTS_MAX_DEPTH | folder depth it follows | 4 | 1–16 |
CATALEX_CLIENT_RECENT_AGENTS_CODEX_THREADS | Codex threads it reads | 300 | 1–20000 |
CATALEX_CLIENT_RECENT_AGENTS_CODEX_TIMEOUT_MS | milliseconds the Codex thread lookup may take | 5000 | 1–600000 |
CATALEX_CLIENT_LOCK_WAIT_MS | milliseconds a command waits for a busy sign-in state lock | 10000 | 0–600000 |
CATALEX_CLIENT_LOCK_RETRY_MS | milliseconds between attempts to take that lock | 50 | 1–10000 |
CATALEX_CLIENT_KEYCHAIN_TIMEOUT_MS | milliseconds one keychain call may take before the credential file is used | 10000 | 1–600000 |
CATALEX_CLIENT_CREDENTIAL_MAX_BYTES | bytes read from the stored sign-in | 65536 | 1024–1048576 |
CATALEX_CLIENT_UPDATE_STAGE_ATTEMPTS | times one catalex update auto run downloads again because a newer release appeared meanwhile | 3 | 1–10 |
CATALEX_CLIENT_UPDATE_DOWNLOAD_TIMEOUT_MS | milliseconds one release file may take to download | 1800000 | 1–86400000 |
CATALEX_CLIENT_UPDATE_DOWNLOAD_MAX_BYTES | bytes of one release file | 2147483648 | 1–68719476736 |
CATALEX_RELAY_HOME selects an absolute configuration and state home instead of ~/.catalex; a relative path is refused. Change it only to work with an intentionally separate installation. Saved connections and existing setup discovery then use that home.
CATALEX_CLIENT_CREDENTIAL_STORE chooses where catalex login keeps the sign-in: auto (default: an existing credential file, else a usable keychain, else a new private file), keychain or file.
Other CATALEX_CLIENT_* variables, such as the Google sign-in pacing ones, are for diagnostics; leave them unset.
For runtime capacity use advanced settings. For the remote computer selected by a command, use --connection NAME; do not change state-home variables to select a different server.