> ## 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 Service Accounts

> 1Password Service Accounts give scripts, CI/CD pipelines, and servers scoped access to secrets in 1Password, without a person signing in.

1Password Service Accounts help automate secrets management in your applications and infrastructure without the need to deploy additional services.

Service accounts work well for shared environments because they provide an authentication method for [1Password CLI](https://www.1password.dev/cli.md) that isn't associated with an individual. You control which vaults and Environments are accessible and which actions the service account can perform. And you can see what items a service account accesses by creating a [usage report](https://support.1password.com/reports#create-a-usage-report-for-a-team-member-service-account-or-vault).

You can create up to 100 service accounts.

## How service accounts compare

1Password gives you three ways to authenticate automated workflows, each with a different trade-off:

| | Service accounts | Connect server | Credential Broker (public preview) |
| - | - | - | - |
| What it is | A token scoped to specific vaults or Environments | A self-hosted REST API you deploy in your own infrastructure | No token at all — access is verified per run using your CI/CD platform's OIDC identity |
| Setup | Create a token, no infrastructure to run | Deploy and maintain a Connect server | An admin sets up a trust policy once; no secret to store |
| Best for | Most CI/CD pipelines, scripts, and shared builds | High-volume or low-latency access, since requests are served from your own infrastructure after the first fetch | GitHub Actions or custom OIDC workflows where you'd rather not manage a token at all |
| Limits | Subject to rate limits and request quotas | Requires infrastructure to run and maintain | Public preview; currently supports GitHub Actions and custom OIDC workflows |

See the full [secrets automation comparison table](https://www.1password.dev/secrets-automation.md#comparison) for Connect, or [set up Credential Broker](https://www.1password.dev/brokered-access.md) if you'd rather not manage tokens at all.

## Use cases

You can use 1Password Service Accounts to accomplish a variety of tasks:

Web services

### Provision web services with secrets

Use a service account to provision an account with a secret stored in 1Password.

If a web service needs access to a database (and the credentials for the database are in 1Password), you can use a service account to provision an account with the needed secret and allow the web service to access the secret during test runs.

Test environments

### Create a test environment

Use a service account in a test environment while using Connect in production.

Using a service account for your test environment allows you to create a similar test environment while keeping secrets or access compartmentalized. You can use service accounts to automatically access secrets in the test environment without having to set up Connect.

CI/CD pipelines

### Load secrets into CI/CD pipelines

Use a service account to automatically access your secrets in continuous integration environments.

If you've committed code and want to automatically run your CI/CD pipeline with credentials stored in a 1Password vault, you can use a service account to automatically access your secrets and use them for testing and deploying code while maintaining security without tying sensitive information to a personal user account.

Infrastructure secrets

### Secure infrastructure secrets

Use service accounts to make sure infrastructure secrets aren't tied to a personal user account.

Secrets management

### Automate secrets management

Use service accounts to automate scripts to manage secrets.

Using a service account helps you implement the principal of least privilege and avoid the limitations of personal accounts (for example, SSO and MFA requirements).

Development workflows

### Streamline development workflows

Use service accounts to securely share and manage infrastructure secrets to streamline development workflows.

## Get started

Learn how to get started and how to create, manage, and integrate with service accounts.

Get started

## Next steps

* [Create a service account](https://www.1password.dev/service-accounts/get-started.md#create-a-service-account) and scope it to the vaults or Environments it needs.
* [Rotate a service account token](https://www.1password.dev/service-accounts/manage-service-accounts.md#rotate-token) on a schedule or after a potential exposure.
* [Load secrets into CI/CD pipelines](https://www.1password.dev/ci-cd.md) with a service account instead of a personal account.
* Compare service accounts with [Connect servers](https://www.1password.dev/secrets-automation.md#comparison) and [Credential Broker](https://www.1password.dev/brokered-access.md).

## Get help

To get help, join the discussion in our [Developer community](https://www.1password.dev/community.md) or join our [Developer Slack](https://www.1password.dev/joinslack) workspace.


## Related topics

- [1Password Secrets Automation](https://www.1password.dev/secrets-automation.md)
- [1Password SDK concepts](https://www.1password.dev/sdks/concepts.md)
- [1Password Service Account security](https://www.1password.dev/service-accounts/security.md)
