The CLI collects deployment and connection diagnostics, plus workspace and agent details when you specify a workspace.
With workspace agent version 2.35.0 or later, agent logs include up to 10 MiB of the active log plus retained rotated logs modified in the last 24 hours, capped at 100 MiB in total.
Older agents return only the active log.
The lookback doesn't guarantee a full 24 hours of history because rotation can remove older logs.
Additional workspace files are opt-in through `--workspace-file`.
IDE integrations add their own diagnostics, which aren't included by the CLI alone.
| `agent/logs.txt` | Up to 10 MiB of the active agent log. Agents on version 2.35.0 or later also include retained rotated logs modified in the last 24 hours, capped at 100 MiB in total. |
| `agent/workspace_files/collection_errors.txt` | Workspace file entries dropped while assembling the bundle, such as entries exceeding the size budget. Only present when entries were dropped. |
| `agent/workspace_files/files/` | Files collected from inside the remote workspace with `--workspace-file`. Only present when workspace paths are requested. |
| `agent/workspace_files/manifest.json` | Describes the remote workspace file collection: requested patterns, collected files, per-path errors, truncation, and applied limits. Only present when workspace paths are requested. |
| `agent/manifest.json` | The manifest of the selected agent with environment variables stripped. |
| `agent/startup_logs.txt` | Startup logs of the workspace agent. |
| `network/connection_info.json` | Information used by workspace agents used to connect to Coder (Designated Encrypted Relay for Packets (DERP) map etc.) |
| `network/coordinator_debug.html` | Peers currently connected to each Coder instance and the tunnels established between peers. *Requires Owner role.* |
| `--output-file <path>` | Choose where to save the ZIP archive. |
| `--workspaces-total-cap <count>` | Set the maximum number of entries in `deployment/workspaces.json`. Defaults to 10; zero or a negative value removes the cap. |
| `--template <name>` | Include a template's active version and source, independently of the selected workspace. Use `org_name/template_name` if the name exists in multiple organizations. |
| `--pprof` | Include control plane and agent profiling data. Requires Coder version 2.28.0 or later. CPU and trace profiles sample 30 seconds per target; collecting both control plane and agent profiles takes longer. |
For all options, refer to the [`coder support bundle` reference](../reference/cli/support/bundle.md).
For extension installation and settings, refer to the [Coder Remote README](https://github.com/coder/vscode-coder/blob/main/README.md#getting-started).
Sign in to your Coder deployment in the plugin before collecting a bundle.
After sign-in, Coder's main page lists your environments.
Each environment represents a workspace and agent pair.
The plugin uses the deployment's CLI and existing login.
A running, reachable workspace provides the most complete agent diagnostics, but collection doesn't start a stopped workspace.
1. On Coder's main page, find the environment you want to troubleshoot.
1. Open the environment's action menu.
The same action menu is available in the individual environment view.
1. Select **Collect logs** to generate the Toolbox diagnostic ZIP archive.
1. [Review the archive before sharing it](#review-and-share-the-bundle), including the nested Coder bundle and local SSH logs.
> [!NOTE]
> The general **Settings** > **About** > **Collect logs and diagnostic data** action does not generate a Coder support bundle.
The Toolbox archive contains `coder-support.zip` inside the selected workspace's diagnostic directory.
This nested archive contains the [Coder bundle contents](#bundle-contents) for the selected workspace and its agent, when available.
Available data depends on your permissions and connectivity.
The plugin also adds local CLI SSH logs under `toolbox-logs/ssh/` in `coder-support.zip`:
- Files modified within the last 3 days, plus the identified active session's log regardless of age.
- At most the last 50 MiB of each file.
- Logs from the configured SSH log directory, `CODER_SSH_LOG_DIR`, or `ssh-logs/` inside the deployment's plugin data directory, in that order.
Logs in a directory shared by multiple workspaces can include other workspaces' sessions.
The plugin collects matching `coder-ssh*-<pid>.log` files directly in that directory, where `<pid>` contains only digits.
It skips subdirectories, symbolic links, and rotated `.log.<number>` files.
The size limit applies to archived copies and leaves the original logs unchanged.
Collection runs until the CLI finishes or you cancel it.
If bundle generation fails, the plugin removes the partial bundle and tries to write `coder-support-error.txt` in the workspace's diagnostic directory.
Local SSH logs go into a separate `coder-ssh.zip` when no usable Coder bundle is available.