1Password offers three tools to help you automate administrative tasks: 1Password CLI, 1Password SDKs, and the 1Password Users API (Public Preview).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.
Choose your workflow
Use the following table to decide which tool best suits your use case:| 1Password CLI | 1Password SDKs | 1Password Users API | |
|---|---|---|---|
| Best for | Shell scripts, CI/CD pipelines, and infrastructure-as-code workflows | Integrating directly into applications or services built in Go, JavaScript, or Python | Connecting your 1Password account to a security automation platform for incident response and access remediation |
| User management | Provision, confirm, suspend, reactivate, edit, delete, list, and get users | Not yet directly supported | List, get, suspend, and reactivate users |
| Group management | Create, edit, delete, get, and list groups; add and remove members; manage groups’ access in vaults | Get groups and manage groups’ access in vaults | Not supported |
| Vault management | Create, edit, delete, get, and list vaults | Create, edit, delete, get, and list vaults | Not supported |
| Vault permissions | Grant and revoke user and group access to vaults | Grant and revoke group access to vaults | Not supported |
| Item management | Create, get, edit, delete, list, move, and share items | Create, get, edit, delete, list, and share items | Not supported |
1Password CLI
1Password CLI lets you manage your 1Password account from the command line. You can call 1Password CLI commands from shell scripts, CI/CD pipelines, or any process that can run shell commands. Use the CLI when you want to:- Write shell scripts that automate repetitive tasks, like onboarding a batch of users or rotating group memberships.
- Run one-off administrative tasks from the terminal, like provisioning a new user or creating a vault.
- Run targeted operations on individual user accounts or generate reports about users from the terminal.
- Automate user and group provisioning as part of your infrastructure workflows.
Get started with 1Password CLI
Install the CLI and sign in to your account.
CLI command reference
Full reference for all CLI commands and flags.
Example scripts
Item management
Bulk create, read, update, or delete items and related automation examples built on
op item.Scripted provisioning
Invite, suspend, reactivate, or delete users from a CSV using the CLI provisioning workflow.
Reporting
Generate CSV reports of vault access, permissions, and contents using CLI scripts.
User management
Identify users who have not signed in for a chosen number of days for follow-up or bulk actions.
1Password SDKs
1Password SDKs provide native libraries for Go, JavaScript, and Python that let you manage 1Password programmatically from your application code. Use the SDKs when you want to:- Build custom admin tooling or internal dashboards that manage groups, vaults, and items.
- Embed operations like group provisioning into existing applications and workflows.
- Automate group, vault, and item management as part of a larger programmatic workflow, with native error handling in Go, JavaScript, or Python.
Get started with 1Password SDKs
Install an SDK and authenticate with the desktop app or a service account.
Supported functionality
See what’s currently supported and what’s in development.
Example projects
Inventory tracker web app
Node.js sample that stores inventory in 1Password items and runs with
op run and Docker Compose.Okta user onboarding script
Python utility that creates an Okta user, saves credentials in 1Password, and generates a secure item share link.
Encrypted vault backup app
Web app to back up and restore vaults with encryption, using the JS SDK and CLI for vault operations the SDK does not cover.
Vault migration web app
Self-hosted tool to migrate vaults between accounts with batch SDK operations, progress streaming, and downloadable logs.
1Password Users API (Public Preview)
Use the 1Password Users API to suspend, reactivate, or look up users programmatically through a server-to-server OAuth integration. The API allows you to connect your 1Password account to a security automation platform, so events flagged by your security tools can trigger user access remediation actions in 1Password. Use the Users API when you want to:- Connect your 1Password account to a security automation platform using a pre-built partner integration or a custom integration.
- Automatically suspend a user in 1Password in response to events from your SIEM or other detection tools.
- Reactivate a user after an incident is resolved.
- Programmatically list users or look up a single user’s state to drive other workflows in your security tooling.
Get started with the Users API
Create an OAuth application and make your first request.
Users API reference
Endpoint details for OAuth tokens and user actions.