> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Crash Reports

> Turn the CLI's crash reports off, see exactly what a report holds, and send one yourself when something breaks.

When the CloudThinker CLI crashes, it sends a short report so we can fix the problem fast. Reports are on by default. They hold no personal data and go only to the CloudThinker server your CLI uses.

## What you see

After a crash, the CLI prints one line:

```text theme={null}
Crash report sent: cr_3f9a1c0d2b7e4a51
```

Give that reference to support and we find your crash at once. The first run after you install or update also prints one line saying reports are on and how to turn them off.

If the machine is offline, the CLI saves the report and prints the command that sends it later.

Two more reports are sent without a crash line:

* **Interrupted runs.** If a command stopped before it finished, for example the machine ran out of memory or the window closed, the next run sends a short note saying so. It prints nothing.
* **Install failures.** If the CLI cannot start right after install, the installer sends a short install report.

Reports go to the CloudThinker server your CLI uses. Self-hosted? They go to your own server. The install report goes to CloudThinker, or to your server when `CLOUDTHINKER_URL` points to it during the install.

## Turn crash reports off

> [tab] macOS / Linux
>
> Stop automatic reports on this machine:
>
> ```bash theme={null}
> cloudthinker config set reports.auto false
> ```
>
> Never send any report, for example on CI runners and server fleets:
>
> ```bash theme={null}
> export CLOUDTHINKER_CLI_NO_REPORTS=1
> ```

> [tab] Windows (PowerShell)
>
> Stop automatic reports on this machine:
>
> ```powershell theme={null}
> cloudthinker config set reports.auto false
> ```
>
> Never send any report, for example on CI runners and server fleets:
>
> ```powershell theme={null}
> $env:CLOUDTHINKER_CLI_NO_REPORTS = "1"
> [Environment]::SetEnvironmentVariable("CLOUDTHINKER_CLI_NO_REPORTS", "1", "User")
> ```
>
> The first line turns reports off in this window. The second keeps them off in new windows.

`reports.auto false` stops crash reports and interrupted-run notes. `CLOUDTHINKER_CLI_NO_REPORTS=1` also stops install reports. Set it before you install.

Check the setting:

```bash theme={null}
cloudthinker config get reports.auto
```

The command is the same in Windows PowerShell. **Success state:** it prints `reports.auto false`. With `CLOUDTHINKER_CLI_NO_REPORTS` set, nothing is sent, and the CLI prints `Something broke. Save a report for support with: cloudthinker doctor --report --out report.json`.

## Send a report yourself

Run this when something is wrong but the CLI did not crash:

```bash theme={null}
cloudthinker doctor --report --message "chat stops after login"
```

The command is the same in Windows PowerShell. The CLI shows the full report first, then asks before it sends anything. It asks again before it adds the recent CLI log.

To send a report from a machine with no internet, save it and email the file to [support@cloudthinker.io](mailto:support@cloudthinker.io):

```bash theme={null}
cloudthinker doctor --report --out report.json
```

The command is the same in Windows PowerShell.

## What a report holds

| Field | What it is |
| - | - |
| `ref` | A random reference, like `cr_3f9a1c0d2b7e4a51` |
| `at` | When the crash happened, in UTC |
| `cli` | CLI version, build, how you installed it, and the build target |
| `machine` | OS and version, kernel, libc, chip, CPU count, a memory range such as `4-8 GB`, and a free disk range such as `1-5 GB` |
| `setup` | Shell, whether a terminal is attached, language setting, whether it runs in Docker, WSL, or CI, and whether a proxy or custom certificate is set |
| `run` | The command, the names of the flags you used, the step that failed, the exit code, and the time to the crash |
| `error` | The error lines, with secrets and names removed |
| `frames` | The CloudThinker CLI functions on the crash path |
| `breadcrumbs` | The last 20 steps before the crash |
| `call` | The failed API call: method, route pattern such as `/api/v1/workspaces/{id}/chats`, status, time, retries, kind of network error, and request ID |
| `server` | `cloud` or `custom`, never the address |
| `set` | The names of the settings and `CLOUDTHINKER_*` variables you set, never their values |

A report never holds flag or argument values, tokens, cookies, environment variable values, file contents, host names, user names, folder paths, IP addresses, email addresses, workspace or organization names, or prompt and chat text.

`doctor --report` adds your note and the names and status of each check. It adds the recent CLI log, with secrets removed, only when you say yes.

## Related

> [card] [CLI reference](https://docs.cloudthinker.io/guide/cli/reference.md)
>
> Every command, flag, variable, and exit code

> [card] [CLI overview](https://docs.cloudthinker.io/guide/cli/overview.md)
>
> Install the CLI and run your first session


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.