# CLI exit codes

AI agent getting started? Read [Agents: start here](https://docs.openeng.io/agents/start-here.md) first.

Meaning of each CLI exit code.

Source: https://docs.openeng.io/reference/exit-codes/

Use the process exit code to decide whether a CLI command completed, was refused or needs investigation.

## How to read this page

Code 0 indicates success. A nonzero code identifies the class of failure; read the command output for its specific reason. An unknown write outcome does not prove the write failed: [check it before retrying](https://docs.openeng.io/developers/overview.md#write-through-a-branch).

| Code | Meaning |
| --- | --- |
| `0` | Success |
| `2` | Client refusal: configuration, host form or store. |
| `3` | Unauthenticated: sign-in is required or did not complete. |
| `4` | The platform refused the operation. |
| `5` | The host's outcome is unknown. |
| `6` | Invalid request, missing subject or exceeded bound. |
| `7` | The host failed or did not answer. |
