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

# Environment variables

> Every variable proving reads, the install script reads, and the tool sets for your agent.

## Read by the tool

Set these to change what the tool does.

| Variable | Meaning |
| - | - |
| `PROVING_TOKEN` | An API token for use without a person at the keyboard (CI). When set, it is used instead of this machine's sign-in to meter runs through the service, and sent to the address the API URL variable names; without that variable it goes to the hosted service, so set both when you use another service. |
| `PROVING_API_URL` | The service's address. The default is the product's own; set it for another region or a test service. |
| `PROVING_WORKSPACE` | The workspace to act on, as `--workspace` does. |
| `PROVING_PROJECT` | The project file to use, as `--project` does. |
| `PROVING_HOME` | The data directory: recordings, runs, twins and keys. The default is under XDG\_DATA\_HOME, or \~/.local/share. |
| `PROVING_BLIND_KEY` | The blinding key as 64 hexadecimal characters, when it is not kept in the project directory's blind.key. |
| `PROVING_KEYCHAIN` | Where secrets are kept: auto (the default: the system keychain when it takes a write, else files), system, or file (0600 files under the configuration directory, or the KEYCHAIN\_DIR folder, for CI and headless machines; doctor warns). |
| `PROVING_KEYCHAIN_DIR` | The folder where the file store keeps secrets, as an absolute path. The default is the configuration directory (under XDG\_CONFIG\_HOME, or \~/.config). Set it in CI or tests so secrets never land in a real user's folder. Other users must not be able to change it or any folder above it. Secrets stored before it was set (or changed) stay in the old folder, unread: move them first (the device and redaction keys are made by the tool, so new ones would replace them). See the security page. |
| `PROVING_NO_UPDATE_CHECK` | Set to 1 to turn off the daily notice of a newer version. |
| `PROVING_RELEASE_URL` | Where releases are downloaded from (https only): a mirror. Read by update and by the install script. |

## Read by the install script

See [Install](https://docs.hex65.com/install.md).

| Variable | Meaning |
| - | - |
| `PROVING_VERSION` | The install script installs this version instead of the channel's newest. |
| `PROVING_CHANNEL` | The install script's channel: stable (the default) or canary. |
| `PROVING_INSTALL_DIR` | Where the install script puts the binary. |

## Set for your agent

The tool sets these for the agent it starts, while recording and during a lap. Your agent may read them.

| Variable | Meaning |
| - | - |
| `PROVING_MODE` | Set for the agent: record while recording a session, lap during a lap. |
| `PROVING_LAP_ID` | Set for the agent: the id of the lap it is in. |
| `PROVING_LAP_SOCKET` | Set for the agent: the lap socket of the jsonl adapter, for an agent that keeps standard output for logs. |
| `PROVING_MCP_CONFIG` | Set for the agent during a lap: the MCP configuration file that points its servers at the twin. |
| `PROVING_TOOL_SOCKET` | Set for the agent: the socket of tools served by the runner. |
| `PROVING_SESSION_ID` | Set for the agent while recording: the session its MCP servers record into. |
| `PROVING_SELFTEST_AGENT_TOKEN` | Set by self-test for the agents it runs, a token for that run only. Not for you to set. |

## Development and tests

For the tool's own development and tests. Do not set them on a machine you use.

| Variable | Meaning |
| - | - |
| `PROVING_UPDATE_BACKGROUND` | Set by the tool for its own background version check. Not for you to set. |
| `PROVING_DEV_RELEASE_KEYS` | Development and tests only: extra release keys to trust, as JSON. |
| `PROVING_DEV_SEAL_KEYS` | Development and tests only: extra seal keys to trust, as JSON. |

The tool also reads the usual `HOME`, `XDG_DATA_HOME`, `XDG_CONFIG_HOME`, `XDG_CACHE_HOME`, `TMPDIR`, `NO_COLOR` and `PATH`.


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