onepasswordconnectsdk
Python SDK for 1Password Connect
What it is and what it does
The 1Password Connect SDK is a Python client library for accessing 1Password vaults through a self-hosted Connect server. It abstracts the HTTP API behind a simple Python interface, letting you read secrets, create items, and manage vault contents programmatically without embedding credentials directly in your code. The library depends on httpx for HTTP communication and python-dateutil for timestamp handling.
You configure it via environment variables (OP_CONNECT_HOST, OP_CONNECT_TOKEN, and optionally OP_CONNECT_CLIENT_REQ_TIMEOUT) and then instantiate a client to perform vault operations. It's designed for applications that need to integrate 1Password as a centralized secrets store, such as deployment pipelines, configuration management tools, or services that need to fetch credentials at runtime.
Use it for:
- Retrieve database credentials or API keys from 1Password during application startup or on-demand.
- Automate secret rotation by reading updated credentials from 1Password in a CI/CD pipeline.
- Programmatically create and manage login items or secure notes in 1Password from Python applications.
- Build a secrets proxy that fetches credentials from 1Password and injects them into environment or configuration.
- Audit and sync secrets between 1Password and other systems by reading vault contents via the SDK.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python access to 1Password vaults through a self-hosted 1Password Connect server, allowing applications to read and write secrets programmatically.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a clear problem for teams using 1Password as a centralized secrets store. It requires a self-hosted Connect server and proper environment setup, but those are architectural choices, not package defects. No known security vulnerabilities. Install it if you need programmatic access to 1Password vaults from Python.
Install
onepasswordconnectsdk on PyPI
pip
pip install onepasswordconnectsdkuv
uv add onepasswordconnectsdkpoetry
poetry add onepasswordconnectsdkInstalling onepasswordconnectsdk
Before you install
Low install friction with only two runtime dependencies (httpx and python-dateutil). Actively maintained as of August 2026 with recent commits; the repository is not archived and has modest community engagement (231 stars).
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install onepasswordconnectsdk
from onepasswordconnectsdk.client import new_client_from_environment
client = new_client_from_environment()
item = client.get_item(item_id, vault_id)
Requires OP_CONNECT_HOST and OP_CONNECT_TOKEN environment variables to be set, and a running 1Password Connect server accessible at the specified host.
Verify before relying
- Whether the SDK supports all 1Password item types and field categories beyond the LOGIN example shown.
- Performance characteristics and rate limits when working with large vaults or frequent API calls.
- Whether custom timeout configuration via OP_CONNECT_CLIENT_REQ_TIMEOUT applies to all request types or only specific operations.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — httpx, python-dateutil |
| Maintenance | actively maintained — 100 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,964/month — #10,229 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: onepasswordconnectsdk-2.1.0-py3-none-any.whl
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
onepassword-sdkProgrammatic Python interface to read and…
permissive · top 5,000 on PyPI
onepasswordWrapper around the 1Password CLI that lets you…
permissive · top 15,000 on PyPI
azure-keyvault-secretsSecurely store, retrieve, and manage secrets…
permissive · top 1,000 on PyPI
robocorp-vaultProvides read and write access to secrets…
permissive · top 15,000 on PyPI
bitwarden-sdkProvides a Python client library to interact…
unclear · top 15,000 on PyPI
skyflowA Python SDK for securely integrating with…
unclear · top 15,000 on PyPI
akeylessProvides Python client access to the Akeyless…
unclear · top 5,000 on PyPI
pykeepassRead, write, and manipulate KeePass password…
copyleft · top 15,000 on PyPI
hvachvac is a Python client library for HashiCorp…
permissive · top 1,000 on PyPI
keeper-secrets-manager-corePython SDK for Keeper Secrets Manager that…
permissive · top 15,000 on PyPI