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

# 1Password

> Connect a 1Password account with a read-only service account, plus an optional write service account for just-in-time elevation.

![1Password](https://mintcdn.com/dave-io/AtVKcSZPLZiXBEsP/images/integrations/1password.svg?fit=max\&auto=format\&n=AtVKcSZPLZiXBEsP\&q=85\&s=efe7b250bc75f08601f85e537b04320a)

1Password connects with up to two **service account** tokens: a **read token** Dave uses on its
own, and an optional **write token** Dave uses only for changes you approve. Dave reads and writes
with the official `op` CLI.

Service accounts see only the vaults you pick when you create them, and 1Password never lets them
into Personal, Private, Employee or the default Shared vault.

## Connect

**Step 1**

In 1Password, open **Developer** → **Directory** → **Service Accounts** and create a service
account, for example `dave-read`.

**Step 2**

Pick the vaults Dave should see, and give the service account only **Read items** on each.
1Password fixes these permissions when you create the account; you cannot change them later.

**Step 3**

Copy the token (`ops_…`). 1Password shows it once.

**Step 4**

Optionally create the write token — see [Write token](#write-token).

**Step 5**

In Dave, go to **Integrations** → **Add integration** → **1Password**.

**Step 6**

Paste the read token. Tokens are stored encrypted and never shown again.

**Step 7**

Set a **Label** — see [labels](https://docs.dave.io/guides/connecting-an-integration.md#labels).

**Step 8**

Optionally check **Enable just-in-time writes** and paste the write token.

**Step 9**

Choose **Connect 1Password**. Dave checks the tokens with 1Password; you do not need to stay
on the page.

> [!WARNING]
>
> **Give the read token Read items only**
>
> Dave cannot tell from the token which permissions it has. If the read service account can write,
> Dave can change items without asking. Create it with Read items only.

## Permissions

| Token | Access | Dave uses it for |
| - | - | - |
| Read | **Read items** on the vaults you choose | Vaults, items, fields and item metadata |
| Write | **Read items** and **Write items** on those vaults | Approved changes: creating, editing and archiving |

Add **Share items** to the write service account if Dave should create share links. Allow it to
**create vaults** only if Dave should; a service account can delete only vaults it created.

## Write token

Optional. Create a second service account, for example `dave-write`, with **Read items** and
**Write items** on the vaults Dave may change.

Dave rejects a write token that belongs to another 1Password account or is the same as the read
token.

## Just-in-time elevation

Dave stores the write token encrypted. The agent only gets it for a single command you approve —
creating an item, rotating a password, archiving an item — and every other command runs with the
read token. Leave the write token blank to keep the account read-only.

## Secrets

Dave shows item titles, fields and metadata, but does not reveal a secret value unless you ask
for that specific field. When Dave creates or rotates a password, it has 1Password generate it, so
the value never appears in the approved command.

## Limits

1Password rate-limits service accounts per token and per account:

| Plan | Reads per hour | Writes per hour | Requests per day (all service accounts) |
| - | - | - | - |
| Business | 10,000 | 1,000 | 50,000 |
| Teams | 1,000 | 100 | 5,000 |
| Families, personal | 1,000 | 100 | 1,000 |

Service accounts cannot manage users or groups, and cannot read the Events API. To manage people
and groups, connect [1Password Admin](https://docs.dave.io/integrations/1password-admin.md).

## Manage the connection

Revoking the read service account in 1Password cuts Dave off; revoking the write service account
disables writes. **Disconnect** in Dave stops Dave using both tokens immediately, but does not
revoke them in 1Password.

To change which vaults Dave sees, create a new service account and connect again — 1Password does
not let you edit one.

## Troubleshooting

* **1Password rejects the read token** — check it is a service account token (`ops_…`) and that
  the service account has not been revoked or expired.
* **Dave cannot see a vault** — the service account was created without it. Create a new service
  account that includes the vault.
* **Writes fail with a permissions error** — the write service account lacks Write items on that
  vault.


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