# Diagnostics bundle

```
openprogram diagnostics                           # ./openprogram-diagnostics-<date>.zip
openprogram diagnostics --output /tmp/report.zip
```

Prints the files it wrote.

## Contents

| File | Contents |
| --- | --- |
| `version.json` | OpenProgram and Python versions, Python executable, platform, machine |
| `config.json` | Your `config.json`, credential-shaped values replaced |
| `credentials.json` | Providers with credentials and account counts. Names and counts only |
| `environment.json` | `openprogram doctor` checks, Web build state, state and log directory modes |
| `logs/worker.log`, `logs/runtime.log`, `logs/ink-startup.log` | Last 2000 lines of each, redacted. Absent if the log does not exist |
| `manifest.json` | Every file, its source and size |

## Removed

| Layer | Replaced with `[secret removed]` |
| --- | --- |
| Key names | Any key containing `api_key`, `token`, `password`, `client_secret`, `authorization`, `cookie`, `auth`, `credential`, `session_id` and similar, so `openai_api_key` and `github_token` match. The whole subtree goes. |
| Value shapes, anywhere in text | `sk-` keys, `Bearer` and `Basic` headers, GitHub `ghp_` and similar tokens, Slack `xox` tokens, AWS access key ids, Google `AIza` keys, JWTs, credentials in URLs |
| Credential files | Never read. `credentials.json` comes from listing directory names in the auth store. |

Both layers run over every text file, logs and tracebacks included. They cannot know that a path, project name or prompt fragment is sensitive to you: read the zip before attaching it to a public issue.

[CLI reference](https://fzkuji.github.io/OpenProgram/docs/reference/cli.html) · [Configuration reference](https://fzkuji.github.io/OpenProgram/docs/reference/config.html)
