> ## 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.

# Environment variables

> Environment variables IronBee reads for CI, secrets, debugging, and project resolution.

Most configuration lives in [config files](https://docs.ironbee.ai/cli/configuration/configuration.md), but a few settings can be supplied via environment variables, handy for CI runners, ephemeral shells, and secrets you don't want to commit.

***

## Common

| Variable | Effect |
| - | - |
| `IRONBEE_SERVICE_API_KEY` | Supplies [`service.apiKey`](https://docs.ironbee.ai/cli/configuration/configuration#service-identity) (the shared account API key) without committing it. **Takes precedence over every config layer.** The credential of choice for CI and the [GitHub Action](https://docs.ironbee.ai/github-action/get-started/getting-started.md). |
| `IRONBEE_SERVICE_OAUTH_TOKEN` | Supplies [`service.oauthToken`](https://docs.ironbee.ai/cli/configuration/configuration#service-identity) (the personal token from [`ironbee login`](https://docs.ironbee.ai/cli/guides/authentication)) without committing it. When both credentials are set, the OAuth token wins. |
| `IRONBEE_SERVICE_DOMAIN` | Supplies [`service.domain`](https://docs.ironbee.ai/cli/configuration/configuration#service-identity), the stage selector every service URL derives from. |
| `IRONBEE_API_KEY` | Legacy - supplies the deprecated `collector.apiKey` fallback, which is read **only when `service.apiKey` is unset** (a recent `ironbee login` writes `service.*`, which then wins). One exception: [`ironbee verify`](https://docs.ironbee.ai/cli/guides/verification-jobs#credentials), [`ironbee review`](https://docs.ironbee.ai/cli/guides/code-review) and [`ironbee credits`](https://docs.ironbee.ai/cli/guides/credits) read it as a deliberate high-priority override, although an OAuth token still wins. |
| `IRONBEE_OAUTH_TOKEN` | Legacy - supplies the deprecated `collector.oauthToken` fallback, which is read **only when `service.oauthToken` is unset**. Unlike `IRONBEE_API_KEY`, no command reads it ahead of the config. |
| `IRONBEE_TELEMETRY` | Set to `false` to turn off [anonymous CLI telemetry](https://docs.ironbee.ai/cli/advanced/telemetry.md) for this shell/run, a per-session alternative to the `telemetry.enable` config key. |
| `IRONBEE_LOG_LEVEL` | Logging verbosity: `debug`, `info` (default), `warn` or `error`. Set to `debug` to see detailed output when troubleshooting. |

An override set to an empty string counts as unset.

```bash theme={null}
# CI: provide the API key from a secret, no file commit
export IRONBEE_SERVICE_API_KEY=sk-...
ironbee install --mode enforce --yes
```

> [!NOTE]
>
> Because these override the files, a merged read (`ironbee config get service.apiKey`) returns the env value. A layer-scoped read (`--project` / `--global` / `--local`) bypasses env and shows only what's on disk.

***

## Verification jobs, code reviews and credits

[`ironbee verify`](https://docs.ironbee.ai/cli/guides/verification-jobs) - the cloud verification-job runner - reads two extra overrides of its own, plus the GitHub Actions, GitLab CI or Bitbucket Pipelines context. [`ironbee review`](https://docs.ironbee.ai/cli/guides/code-review) and [`ironbee credits`](https://docs.ironbee.ai/cli/guides/credits) read the same two overrides, and like `verify` they also read `IRONBEE_API_KEY` ahead of the config. An OAuth token still wins over any API key; see [Credentials](https://docs.ironbee.ai/cli/guides/verification-jobs.md#credentials) for the full order.

| Variable | Effect |
| - | - |
| `IRONBEE_ACCESS_TOKEN` | OAuth access token for the API, overriding `service.oauthToken`. |
| `IRONBEE_API_URL` | API base URL, overriding `api.url` (the `--api-url` flag wins over both). |
| `GITHUB_ACTIONS` | When exactly `"true"`, a created job is declared with the `github_actions` trigger, shown as **GitHub Actions** in the console, and secret-header values are masked with `::add-mask::`. The API refuses that trigger on a job bound to a gitlab.com project or a bitbucket.org repository; see [Binding the run to your repository](https://docs.ironbee.ai/cli/guides/verification-jobs.md#binding-the-run-to-your-repository). |
| `GITHUB_REPOSITORY` / `GITHUB_SHA` / `GITHUB_REF` | Fill the run's repository binding: the `owner/repo`, the authoritative commit, and the pull-request number on a PR run. A checkout whose remote is on gitlab.com or bitbucket.org is never bound through them. |
| `GITLAB_CI` | When exactly `"true"`, and `GITHUB_ACTIONS` isn't, a created job is declared with the `gitlab_ci` trigger, shown as **GitLab CI** in the console. The API refuses that trigger on a job bound to a GitHub or bitbucket.org repository. With no Claude Code sign-in, it also names the session's user `<gitlab-ci:<login>>`, from `GITLAB_USER_LOGIN`; see [Who a session belongs to](https://docs.ironbee.ai/cli/advanced/privacy.md#who-a-session-belongs-to). |
| `CI_SERVER_HOST` / `CI_PROJECT_PATH` | In a gitlab.com CI job, the project the job runs for. The job's merge request and commit bind the run only when that project is the checkout's remote, or when there's no remote. |
| `CI_MERGE_REQUEST_IID` / `CI_MERGE_REQUEST_PROJECT_PATH` | Bind a GitLab CI run to its merge request, when the merge request belongs to the bound project. |
| `CI_COMMIT_SHA` | The commit a GitLab CI run binds to when there's no merge request to bind. |
| `BITBUCKET_BUILD_NUMBER` / `BITBUCKET_PIPELINE_UUID` | When both are set, and neither `GITHUB_ACTIONS` nor `GITLAB_CI` is `"true"`, a created job is declared with the `bitbucket_pipelines` trigger, shown as **Bitbucket Pipelines** in the console. The API refuses that trigger on a job bound to a GitHub or gitlab.com repository. |
| `BITBUCKET_REPO_FULL_NAME` | In a Bitbucket Pipelines step, the repository the step runs for. The step's pull request, commit and branch bind the run only when that repository is the checkout's remote, or when there's no remote. |
| `BITBUCKET_PR_ID` / `BITBUCKET_COMMIT` / `BITBUCKET_BRANCH` | Bind a Bitbucket Pipelines run to the step's pull request, else to its commit, and name the step's branch so the run's build status reaches the pull request. |
| `BITBUCKET_STEP_TRIGGERER_UUID` | With no Claude Code sign-in, names the session's user `<bitbucket-pipelines:<uuid>>`, the Bitbucket user who triggered the step; see [Who a session belongs to](https://docs.ironbee.ai/cli/advanced/privacy.md#who-a-session-belongs-to). |
| `CI` | When set to any non-empty value, `false` and `0` included, `ironbee review` uses the text form instead of the Review area, and the lines of a review or verification carry only the job's own credits, never the team's balance. |
| `NO_COLOR` | When set, `ironbee review` draws no colour in the Review area or the text form. |
| `VISUAL` / `EDITOR` | The editor the Review area's `e` key opens a finding in (falls back to `vi`). |

`ironbee review` and `ironbee credits` read the credential and the endpoints from the environment, the flags, the personal file and the global config only, never from a file inside the checkout. They're the only commands that read the [personal file](https://docs.ironbee.ai/cli/configuration/configuration.md#the-personal-file). See [Where the review goes, and as whom](https://docs.ironbee.ai/cli/guides/code-review.md#where-the-review-goes-and-as-whom).

***

## Issue-tracker credentials

The [issue-tracker integrations](https://docs.ironbee.ai/cli/guides/issue-tracking.md) normally keep their secrets in your global config (`~/.ironbee/config.json`, written by `ironbee integrations <provider> setup`). In CI - or anywhere you'd rather source them from a vault - supply them via env instead. Like the collector credentials, these **take precedence over every config layer**:

| Variable | Effect |
| - | - |
| `IRONBEE_JIRA_API_TOKEN` | Supplies `integrations.jira.apiToken` (Jira **Cloud** API token). Combine with a file-set `integrations.jira.baseUrl` + `email` for a complete config. |
| `IRONBEE_JIRA_PAT` | Supplies `integrations.jira.pat` (Jira **Server/DC** personal access token). |
| `IRONBEE_LINEAR_API_KEY` | Supplies `integrations.linear.apiKey` (Linear personal API key or OAuth token). |

GitHub, GitLab and Bitbucket need no IronBee credential variable:

* The [GitHub issue tracker](https://docs.ironbee.ai/cli/guides/issue-tracking.md#github-issues) runs the `gh` CLI, which uses its own auth: `gh auth login`, or a `GH_TOKEN` in the environment. In GitHub Actions, set `GH_TOKEN` yourself, for example to `${{ github.token }}`.
* [VCS linkage](https://docs.ironbee.ai/cli/guides/issue-tracking.md#vcs-linkage-sessions-to-prs-and-issues) calls the GitHub API only with a token meant for the host it asks, the first one set:
  * for github.com: `GH_TOKEN`, then `GITHUB_TOKEN`. On a GitHub Actions runner of another server, `GITHUB_TOKEN` belongs to that server and isn't sent to github.com.
  * for the runner's own server, the host in `GITHUB_SERVER_URL`: `GH_ENTERPRISE_TOKEN`, then `GITHUB_ENTERPRISE_TOKEN`, then `GITHUB_TOKEN`.
  * for the GitHub Enterprise host `GH_HOST` names: `GH_ENTERPRISE_TOKEN`, then `GITHUB_ENTERPRISE_TOKEN`. A GitHub Enterprise Cloud tenant on `ghe.com` works the same way, and is read at its `api.` host.
  * then, for any host, the login `gh` stored for it with `gh auth login`.
* For gitlab.com merge requests, VCS linkage uses `GITLAB_TOKEN` when it's set and asks anonymously otherwise. A private project then reports `unauthenticated`.
* For bitbucket.org pull requests, VCS linkage uses `BITBUCKET_TOKEN`, a Bitbucket access token sent as a bearer token. In a Bitbucket Pipelines step, it reads the step's own pull request with the token when it's set, and anonymously otherwise, so a private repository needs the token. Anywhere else it needs the token, and without it the status is `unauthenticated`.

> [!NOTE]
>
> Since CLI 0.49, an environment token goes only to the host it's meant for: `GH_TOKEN` to github.com, and `GITHUB_TOKEN` to the runner's own server, or to github.com outside a runner. For any other GitHub Enterprise host, name it in `GH_HOST` and set `GH_ENTERPRISE_TOKEN`, or run `gh auth login` for that host.

***

## Config placeholder bridges

[Config placeholders](https://docs.ironbee.ai/cli/configuration/configuration.md#placeholders-param-env-built-ins) let a committed config carry references that resolve from the environment - the way to override a team default per developer or per CI run without editing a file:

| Variable pattern | Feeds | Notes |
| - | - | - |
| `IRONBEE_PARAM_<NAME>` | `${param:<name>}` references | Overrides the [`params`](https://docs.ironbee.ai/cli/configuration/configuration#core-options) block for that key. `<name>` maps case-insensitively - `IRONBEE_PARAM_API_URL` fills `${param:api_url}`. |
| `IRONBEE_ENV_<NAME>` | `${env:<name>}` references | The **only** environment source a `${env:}` reference can read. `IRONBEE_ENV_STAGING_URL` fills `${env:staging_url}`. |

```bash theme={null}
# CI: override a committed ${param:api_url} for this run
export IRONBEE_PARAM_API_URL=https://api.staging.internal
```

> [!NOTE]
>
> The `IRONBEE_PARAM_*` / `IRONBEE_ENV_*` prefixes are **reserved for placeholder input** - the implied prefix means arbitrary environment variables (secrets, tokens) are structurally unreachable from config text. An empty value counts as unset (the reference falls through to its `:-` default). IronBee's own operational env vars never use these prefixes.

***

## Project directory resolution

When a hook or command needs to know which project it's acting on, IronBee resolves the directory in this order:

1. The client's own variable - `CLAUDE_PROJECT_DIR` (Claude Code), `CURSOR_PROJECT_DIR` (Cursor), or `CODEX_PROJECT_DIR` (Codex) - set automatically by the host
2. `IRONBEE_PROJECT_DIR`, an explicit override you can set
3. The current working directory

You normally don't set these yourself; the AI client provides them. `IRONBEE_PROJECT_DIR` is the escape hatch for scripted or non-standard setups.

***

## Advanced

Rarely needed, mostly for internal wiring and test harnesses:

| Variable | Effect |
| - | - |
| `IRONBEE_CLIENT` | Tells a hook runner which client it's acting as, when the hook command doesn't pass `--client`. The installed hooks pass `--client`, so this is only a fallback. |
| `IRONBEE_RUNTIME_LOCATION` | Overrides [`runtime.location`](https://docs.ironbee.ai/cli/configuration/configuration#runtime) for this process - `external` (default, per-session data under `~/.ironbee/projects/<token>/`) or `in-project` (`<project>/.ironbee/sessions/`). Takes precedence over the config layers; mainly used by the test suite. |
| `IRONBEE_BIN` | Overrides the path to the `ironbee` binary used when spawning background workers. |
| `IRONBEE_COLLECTOR` | Set to `false` to disable Collector sends entirely (used by the test harness). |
| `IRONBEE_UPDATE_CHECK` | Set to `false` to skip the npm-registry version check (and its update banner, printed on stderr) that runs after a command. Worth setting for scripts that spawn `ironbee` in a loop - each check keeps the event loop alive for up to a 3 s round trip. |
| `IRONBEE_DEVTOOLS_MCP` | Points the `ironbee-devtools` MCP server at your own entry without writing an [`ironbeeDevTools.mcp`](https://docs.ironbee.ai/cli/configuration/configuration#devtools-mcp-overrides) block. A full JSON object: `{"command": "...", "args": [...], "env": {...}}`. Read at install / re-render time, so the resolved command is baked into the artifact - export it when you run `ironbee install`. Wins over the config block; IronBee's invariant env is still layered on top. Mainly for editor extensions that bundle DevTools. |
| `IRONBEE_DEVTOOLS_ENTRY` | Simpler form of the above: a path, rendered as `node <path>`. Used only when `IRONBEE_DEVTOOLS_MCP` is unset or malformed. |
| `IRONBEE_VCS_STAMP_BUDGET_MS` | Total budget (ms, default `3000`) for the git-ref stamp taken at the start of each agent turn. An ops escape hatch - raise it on a heavily loaded machine where the stamp would otherwise go partial and drop `repo`/`host` from the [VCS linkage](https://docs.ironbee.ai/cli/guides/issue-tracking.md#vcs-linkage-sessions-to-prs-and-issues). |
| `IRONBEE_CURSOR_USER_DIR` | Overrides where IronBee looks for Cursor's local user data (the read-only `state.vscdb` store it reads the signed-in user's email from, for event attribution). Defaults to Cursor's standard per-OS location; mainly for non-standard installs and tests. |
| `IRONBEE_NO_AUTO_RERENDER` | Disables the [auto re-render](https://docs.ironbee.ai/cli/guides/managing-projects.md#auto-re-rendering-after-an-upgrade) of registered projects after a structure-changing upgrade. A kill switch for CI and locked-down machines. |
| `IRONBEE_NO_PREFETCH` | Global kill-switch for the [devtools prefetch](https://docs.ironbee.ai/cli/guides/managing-projects.md#devtools-prefetch-warming-the-first-mcp-start) - any value other than empty/`0`/`false` skips the npx cache warm on `install`, upgrade re-renders, `ironbee browser enable`, and `ironbee devtools prefetch`. |
| `IRONBEE_CLAUDE_VERSION` | Replaces the `claude --version` probe `ironbee install` uses to decide whether to write the [Claude Code in-app view](https://docs.ironbee.ai/cli/clients/claude-code.md#in-app-view) while `claude.mod.enable` is unset. A version string is used as-is; `none` means not detectable. For a wrapper that knows the Claude Code version without `claude` on `PATH`. An explicit `claude.mod.enable` decides regardless. |
| `IRONBEE_GH_AUTHENTICATED` | Forces the [GitHub issue-tracker](https://docs.ironbee.ai/cli/guides/issue-tracking.md#github-issues) activation probe deterministically - `1`/`true` = active, `0`/`false` = inactive - bypassing the `gh auth status` check. For CI/test environments where a deterministic result is wanted. `integrations.github.enable: false` still suspends it regardless. |
| `CI` | Any non-empty value other than `0` or `false` (in any case) also short-circuits the upgrade auto re-render - belt-and-suspenders so a CI that allocates a pseudo-TTY can't hang on the confirmation prompt. This rule differs from the one `ironbee review` and the credits lines use, where any non-empty value counts. |

***

## What's next?

> [card] [Configuration](https://docs.ironbee.ai/cli/configuration/configuration.md)
>
> The full config-key reference, the file-based equivalents of these overrides.

> [card] [Runtime files](https://docs.ironbee.ai/cli/advanced/runtime-files.md)
>
> Where config and credentials are stored on disk.


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