> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 1Password CLI environment variables

You can use the following environment variables with 1Password CLI:

| Environment variable          | Description                                                                                                                                                                                                                                                |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OP_ACCOUNT`                  | Specifies a default 1Password account to execute commands. Accepts an [account sign-in address or ID](/cli/use-multiple-accounts/#find-an-account-sign-in-address-or-id). An account specified with the `--account` flag takes precedence.                 |
| `OP_BIOMETRIC_UNLOCK_ENABLED` | Toggles the [1Password app integration](/cli/app-integration#optional-set-the-biometric-unlock-environment-variable) on or off. Options: `true`, `false`.                                                                                                  |
| `OP_CACHE`                    | Toggles the option to [store and use cached information](/cli/reference#cache-item-and-vault-information) on or off. Options: `true`, `false`. Default: `true`.                                                                                            |
| `OP_CONFIG_DIR`               | Specifies a [configuration directory](/cli/config-directories) to read and write to. A directory specified with the `--config` flag takes precedence.                                                                                                      |
| `OP_CONNECT_HOST`             | Sets a [Connect server instance host URL](/connect/cli/) to use with 1Password CLI.                                                                                                                                                                        |
| `OP_CONNECT_TOKEN`            | Sets a [Connect server token](/connect/cli/) to use with 1Password CLI.                                                                                                                                                                                    |
| `OP_DEBUG`                    | Toggles debug mode on or off. Options: `true`, `false`. Default: `false`.                                                                                                                                                                                  |
| `OP_FORMAT`                   | Sets the output format for 1Password CLI commands. Options: `human-readable`, `json`. Default: `human-readable`.                                                                                                                                           |
| `OP_INCLUDE_ARCHIVE`          | Allows items in the archive to be retrieved with [`op item get`](/cli/reference/management-commands/item#item-get) and [`op document get`](/cli/reference/management-commands/document#document-get) commands. Options: `true`, `false`. Default: `false`. |
| `OP_ISO_TIMESTAMPS`           | Toggles the option to format timestamps according to ISO 8601 and RFC 3339 standards on or off. Options: `true`, `false`. Default: `false`.                                                                                                                |
| `OP_RUN_NO_MASKING`           | Toggles masking off for the output of [`op run`](/cli/reference/commands/run).                                                                                                                                                                             |
| `OP_SESSION`                  | Stores a session token when you [sign in to 1Password CLI manually](/cli/sign-in-manually).                                                                                                                                                                |
| `OP_SERVICE_ACCOUNT_TOKEN`    | Configures 1Password CLI to [authenticate with a service account](/service-accounts/use-with-1password-cli).                                                                                                                                               |
