zeno-secrets-1password
1Password-backed SecretsStore for Zeno.
Ships OpCliSecretsStore, a SecretsStore adapter that reads secrets
through the 1Password CLI (op read). Intended for agents that run in
environments where a 1Password service-account token is available but
mounting the raw secret material into the process env is undesirable.
Install
uv add 'zeno-framework[secrets-1password]'
Install the 1Password CLI on the host:
brew install 1password-cli # macOS
# or follow https://developer.1password.com/docs/cli/get-started/
Export a service-account token:
export OP_SERVICE_ACCOUNT_TOKEN="ops_..."
Usage
from zeno.app import ZenoApp
from zeno.secrets_1password import OpCliSecretsStore
app = ZenoApp(
...,
secrets=OpCliSecretsStore(
references={
"OPENAI_API_KEY": "op://Engineering/openai/credential",
"STRIPE_KEY": "op://Engineering/stripe/api_key",
},
cache_ttl=60.0,
),
)
Inside a tool:
@tool
async def call_stripe(ctx: Ctx) -> str:
api_key = await ctx.secrets.get("STRIPE_KEY")
...
What it does
get(name)— ifnamebegins withop://, invokesop read namedirectly; otherwise looks up the reference in thereferencesmap and shellsop read <ref>.- Results are cached in-process for
cache_ttlseconds (default 60). Passcache_ttl=Noneto disable caching. - Invocations time out at
timeoutseconds (default 5). The subprocess is killed and reaped on timeout; noResourceWarningleaks. OP_SERVICE_ACCOUNT_TOKENis passed to the subprocess via an explicit env dict that inherits onlyPATH— unrelated parent env vars are not leaked into theopprocess. Passtoken="ops_..."to the constructor to override the env var.- Missing
opbinary →ConfigurationErrorwith an install pointer. - Missing token →
ConfigurationErrorraised before the subprocess runs. op readexit codes are inspected: "item not found" / "no such" / "isn't an item" map toSecretNotFoundError; everything else (auth failures, network errors) maps toSecretsBackendErrorwith the stderr text preserved in the message.
Why op CLI, not the Connect HTTP API?
The CLI path works both locally (via 1Password desktop auth) and in CI (via a service-account token) with no Connect server to self-host. Connect-based and SDK-based stores can ship later as sibling classes inside the same package without breaking existing callers.
Part of the Zeno framework.
Metadata
Release files for zeno-secrets-1password 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zeno_secrets_1password-1.1.0.tar.gz | 7.1 kB | With provenance | Details for zeno_secrets_1password-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zeno_secrets_1password-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for zeno_secrets_1password-1.1.0-py3-none-any.whl |
Total release size: 13.5 kB
Release files / zeno_secrets_1password-1.1.0.tar.gz
| Download URL | zeno_secrets_1password-1.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e675a1ae534828b7c4a707bf7b21356143d164c49928a76491de69d0cbaef4b0
|
|
BLAKE2b-256 checksum How to use checksums |
2dc3321ae6134e1443dc4cb25b6799edeac6b7a9b46c1bc80bc7fb20f33914fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logRelease files / zeno_secrets_1password-1.1.0-py3-none-any.whl
| Download URL | zeno_secrets_1password-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84909c563aac79c47cef8b8fccdf7484474522f3057373f158fbfcc6960bb52f
|
|
BLAKE2b-256 checksum How to use checksums |
1d4897fb3fe2f020165eac7022d962de33e0f0ef4eb972170d9de6772a7b54c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logSecurity for zeno-secrets-1password 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zeno_secrets_1password-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.