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

# Integrating 1Password

Bruno integrates with 1Password using a **Service Account token**. Configure the provider once in **Preferences**, then attach it to any collection environment. PREMIUM

## Prerequisites

1. Create a [1Password Service Account](https://developer.1password.com/docs/service-accounts/) with access to the vaults you need.
2. Copy the Service Account token (it starts with `ops_`).

## Configuration Steps

1. Go to **Preferences** and open the **Secrets Manager** section.
2. Click **+ Add Secret Manager**.
3. Select **1Password** (described as 1Password secrets with service account token auth).

![Add Secret Manager provider selection](https://mintcdn.com/bruno-a6972042/VX3WPts363I_eNpX/images/screenshots/v4/1password/add-secret-manager-provider.webp?fit=max\&auto=format\&n=VX3WPts363I_eNpX\&q=85\&s=5463bdb30ac2eaf9f40307b1a2231fd8)

4. Enter:
   * **Name** - a label for this account in Bruno (for example `Production Secrets` or `1pass`)
   * **Service Account Token** - your `ops_...` token
5. Click **Test Connection** to verify Bruno can reach 1Password with that token.
6. Click **Add** to save the account.

![New 1Password account](https://mintcdn.com/bruno-a6972042/VX3WPts363I_eNpX/images/screenshots/v4/1password/new-1password-account.webp?fit=max\&auto=format\&n=VX3WPts363I_eNpX\&q=85\&s=c209421ced1d968170870bd43ae634c8)

Once saved, the account appears in the **Secrets Manager** list and is available when you configure **External Secrets** on an environment.

Calls to 1Password use the same **proxy** settings as the rest of the Bruno app.

## Exporting as a .env file

Once a provider is saved, you can export its configuration as a `.env` file from **Preferences** > **Secrets Manager**. That is useful for the Bruno CLI or CI without typing the token by hand.

1. In the **Secrets Manager** list, hover over the 1Password account.
2. Click the **Export as .env** icon.
3. Bruno writes the credentials to a `.env` file on your machine.

> [!WARNING]
>
> The exported `.env` file contains your Service Account token in plain text. Add it to `.gitignore` immediately and never commit it to version control.

Pass the exported file to the CLI:

```bash theme={null}
bru run collection/ --env local --secrets-env-file ./secrets.env
```

The token is supplied as `BRUNO_ONE_PASSWORD_SERVICE_ACCOUNT_TOKEN` in that file. See [Using secrets](https://docs.usebruno.com/secrets-management/secret-managers/1password/using-secrets.md#using-secrets-with-bruno-cli).

## Next Steps

* [Configure and fetch secrets](https://docs.usebruno.com/secrets-management/secret-managers/1password/configuring-and-fetching-secrets.md) — attach 1Password to an environment and resolve `op://` references
* [Use secrets in requests](https://docs.usebruno.com/secrets-management/secret-managers/1password/using-secrets.md) — reference resolved values in headers, body, auth, and scripts
