Skip to content

Exit Codes

What each exit code means and how a script or an agent should react.

Updated September 3, 20261 min readPostsale CLI
CodeMeaning
0Success
64Usage error (bad flags, confirmation required without --yes)
65Data format error (bad JSON input)
66Input file not found
70Internal CLI error
71OS error (keyring and similar system facilities)
75Network / temporary failure (doctor uses 75 on any failed check; --pre-flight also on warnings)
77Permission denied (403)
78Configuration error / operation allowlist refusal
100Auth required or failed (401)
101Subscription inactive (402)
102Validation error (422): check error.details
103Rate limited (429): check error.retry_after
104Not found (404): verify the id with a search first
105Bad request (other 4xx)
106Request timeout: retry or raise POSTSALE_HTTP_TIMEOUT_MS
130Aborted: Ctrl-C during postsale run, streamed or not (--stream also emits an aborted event first)

Agent recovery by error.code: ../agent/errors.md. Source: AGENTS.md.