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

> ## Agent Instructions
> IronBee (ironbee.ai) is an AI QA engineer: it verifies code changes against the running app and keeps the evidence. It is not related to the IronBee open-source web application firewall.
> The console is at https://console.ironbee.ai.
> Install the CLI with `npm install -g @ironbee-ai/cli`, sign in with `ironbee login`, and set up a project with `ironbee install`.
> In GitHub workflows, use the action as `ironbee-ai/ironbee-action@v1` and pass the `IRONBEE_API_KEY` secret as the `ironbee_api_key` input.
> In GitLab pipelines, include the component `gitlab.com/ironbee-ai/ironbee-gitlab/verify@v1`; it reads the `IRONBEE_API_KEY` CI/CD variable by default.
> In Bitbucket Pipelines, run the pipe `docker://ghcr.io/ironbee-ai/ironbee-bitbucket:v1` and pass `IRONBEE_API_KEY: $IRONBEE_API_KEY` and `BITBUCKET_OAUTH_TOKEN: $BITBUCKET_OAUTH_TOKEN` under its `variables:`.
> Console scenarios (https://docs.ironbee.ai/console/scenarios) and CLI saved scenarios (https://docs.ironbee.ai/cli/guides/scenarios) are separate features.
> For plans and prices, link to https://ironbee.ai/pricing; the website is the source of truth for them.

# Privacy mode

> Redact tool detail, screenshots, and recordings from the data the DevTools MCP servers ship to the Collector.

Privacy mode is a single cross-cutting switch that controls how much detail leaves your machine. When it's on, the [IronBee DevTools MCP servers](https://docs.ironbee.ai/cli/configuration/configuration.md#devtools-mcp-overrides) stop shipping potentially sensitive payloads (tool input and output detail, screenshots, and recordings) to the [Collector](https://docs.ironbee.ai/cli/configuration/configuration.md#collector), across **every** verification cycle at once.

It's **opt-in and off by default**: a fresh install ships full detail so your Console sessions are as rich as possible. Turn it on when your code or browser sessions touch data you'd rather keep local.

***

## Enable or disable

```bash theme={null}
ironbee privacy enable    # redact - stop shipping detail/artifacts
ironbee privacy disable   # back to the default (full detail)
```

By default these write to the project config (committed, so the whole team inherits it). Use `-g`/`--global` to apply it across all your projects, or `--local` for a gitignored personal override that nobody else sees.

```bash theme={null}
ironbee privacy enable --global    # redact everywhere on this machine
ironbee privacy enable --local     # just you, not committed
```

Both commands re-render your installed client artifacts so the change lands in the DevTools MCP env. Narrow that re-render to one client with `--client <name>` (or `--client all`); by default it applies to the clients detected in the project.

> [!WARNING]
>
> Restart your editor or agent session after toggling privacy mode. The DevTools MCP servers read their config at session start, so the change takes effect on the **next** Claude Code / Cursor / Codex session - not the running one.

***

## What gets redacted

Enabling privacy mode injects two flags into every DevTools MCP server's environment:

| Flag | Effect when privacy is on |
| - | - |
| `COLLECTOR_EVENTS_TOOL_DETAILS_ENABLE=false` | Drops tool **input/output detail** from the events the DevTools send to the Collector. |
| `COLLECTOR_ARTIFACTS_ENABLE=false` | Drops **screenshots and recordings** (browser and Android artifacts). |

You still get the structural signal: which tools ran, verdicts, timing, and the session lifecycle all keep flowing. The heavy, potentially sensitive payloads stay on your machine. Disabling privacy mode removes both flags, so the DevTools resume their default reporting.

> [!NOTE]
>
> This is a **DevTools-side** switch. The CLI's own event pipeline already whitelists tool input and strips tool responses before sending - shell commands, for example, are reduced to coarse binary/subcommand labels, and a command that can't be parsed confidently is dropped rather than guessed - so privacy mode is specifically about the extra detail and artifacts the DevTools MCP servers contribute.

***

## Tool-call reasons

IronBee asks its verifier and scenario sub-agents to annotate each DevTools call with a one-sentence **reason** - *why this call, what it expects to see* - which is recorded on the `tool_call` event and rendered on the Console timeline. It's a readability feature: it never changes what a tool does or whether a cycle passes.

Because it's model-authored free text, it's worth knowing exactly where it sits:

* **Privacy mode does not redact it.** The two flags above gate the DevTools' tool input/output detail and artifacts; the reason is a separate top-level field on the `tool_call` event that the CLI records itself.
* **There's no switch for it.** The channel that carries it (`TOOL_INPUT_EXTRAS_ENABLE`) is one of the IronBee invariants that always wins last when the DevTools MCP env is rendered, so an `ironbeeDevTools.env` override can't turn it off. If you need it gone, suspend the [Collector](https://docs.ironbee.ai/cli/configuration/configuration.md#collector) (`collector.enable: false`) - then nothing ships at all.
* **IronBee instructs the agent** to keep it to one sentence and to put no secrets, tokens, or personal data in it. The instruction lives in the sub-agent prompts, so it only reaches the modes that have one.

> [!NOTE]
>
> **Scope:** reasons come from the delegated sub-agents - Claude Code's verifier and scenario agents, and Codex in its default `sub-agent` mode. Where the main agent drives the tools itself (Cursor, and Codex in [`main-agent` mode](https://docs.ironbee.ai/cli/clients/codex#how-verification-is-delivered)) no annotation is requested, so no reason is recorded. On **Claude Code** there's one extra source: a `Bash` call the agent didn't annotate records the model's own `description` for the command (a field Claude Code already asks for) instead. Codex and Cursor shell tools carry no description.

***

## Who a session belongs to

Every event the CLI sends to the Collector names whose session it is, so the Console can attribute it:

| Field | What it holds |
| - | - |
| `user_email` | The email of the account you're signed in to in your AI client: Claude Code's from `~/.claude.json`, Codex's from `~/.codex/auth.json`, Cursor's from the hook input or Cursor's local `state.vscdb`. For Claude Code on a GitHub Actions runner with no sign-in, it's `<github-actions:<actor>>`, with the GitHub user that started the run. For Claude Code in a GitLab CI job with no sign-in, it's `<gitlab-ci:<login>>`, with the GitLab user that started the job, or `<gitlab-ci>` when the job names none. For Claude Code in a Bitbucket Pipelines step with no sign-in, it's `<bitbucket-pipelines:<uuid>>`, with the UUID of the Bitbucket user who triggered the step (`BITBUCKET_STEP_TRIGGERER_UUID`), or `<bitbucket-pipelines>` when the step names none |
| `usage_type` | `api` or `subscription`: how the Claude Code or Codex session is billed, when the CLI can tell. Absent for Cursor |
| `usage_plan` | The subscription plan, such as `pro`, `max` or `team`, when it's known |

A field the CLI can't work out is left out. Privacy mode doesn't remove these fields; suspending the [Collector](https://docs.ironbee.ai/cli/configuration/configuration.md#collector) (`collector.enable: false`) stops them along with everything else.

***

## How it relates to telemetry and the collector

These three are independent knobs, privacy mode doesn't touch the other two:

| Control | Governs | Default |
| - | - | - |
| **Privacy** (`privacy.enable`) | How much detail the DevTools send to *your* Collector | Off (full detail) |
| [**Telemetry**](https://docs.ironbee.ai/cli/advanced/telemetry.md) (`telemetry.enable`) | Anonymous PostHog product analytics for the CLI itself | On |
| [**Collector**](https://docs.ironbee.ai/cli/configuration/configuration.md#collector) (`collector.enable`) | Whether session data is sent to the Console at all | On when credentials are set |

To stop sending your session data entirely, suspend the Collector (`collector.enable: false`) rather than reaching for privacy mode: privacy mode trims *what* is sent, not *whether* anything is sent.

> [!NOTE]
>
> [VCS linkage](https://docs.ironbee.ai/cli/guides/issue-tracking.md#vcs-linkage-sessions-to-prs-and-issues) sends **repository and branch names** through the CLI's own pipeline, which privacy mode doesn't touch (it gates the DevTools payloads). If branch names in your repos can carry sensitive text, opt out of the linkage itself with `ironbee config set vcs.enable false`.
>
> For a checkout of a github.com repository, every event, including the DevTools events, also carries the repository's `owner/repo`, so the console can file it under the [GitHub project](https://docs.ironbee.ai/cli/concepts/projects.md). A gitlab.com checkout's events carry the project's full path, for its GitLab project, and a bitbucket.org checkout's carry the repository's `workspace/repo_slug`, for its Bitbucket project. That's independent of `vcs.enable`. The only way to stop it is to suspend the Collector.

***

## Config equivalent

The command is a convenience wrapper around one [config key](https://docs.ironbee.ai/cli/configuration/configuration.md#privacy):

```bash theme={null}
ironbee config set privacy.enable true     # same as: ironbee privacy enable
```

Both paths write the same `privacy.enable` value and re-render artifacts. The key is read from disk when the DevTools env is built, so the layer that wins (`local > project > global`) is the one that takes effect.

### Gate only one channel

Privacy mode flips both flags together. If you want, say, recordings off but tool detail on, set the [DevTools env override](https://docs.ironbee.ai/cli/configuration/configuration.md#devtools-mcp-overrides) your `ironbeeDevTools.env` values are applied *after* the privacy flags, so they win:

```json theme={null}
{
  "privacy": { "enable": true },
  "ironbeeDevTools": {
    "env": { "COLLECTOR_EVENTS_TOOL_DETAILS_ENABLE": "true" }
  }
}
```

Here screenshots and recordings stay redacted (privacy mode), but tool detail is allowed back through.

***

## What's next?

> [card] [Telemetry](https://docs.ironbee.ai/cli/advanced/telemetry.md)
>
> The other data toggle - anonymous CLI telemetry.

> [card] [Configuration](https://docs.ironbee.ai/cli/configuration/configuration.md#privacy)
>
> The `privacy.enable` key and the DevTools env overrides in full.


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