Skip to main content

1Password Agent Broker

Python coverage

Let agents use credentials without handing them the keys. Approve a capability, let the broker perform the operation, and return the result to the agent. Credential access and authorization stay in a service you control.

Contents

Quick start

Install and try it

Requires Python 3.12 or newer, excluding 3.14.1, and Git. No 1Password account, model API key, or cloud infrastructure is needed for the demo.

python -m pip install 'git+https://github.com/astrivant/1password-agent-broker.git'
agent-broker demo

The local demo reports two healthy operations, successful replay protection, cross-identity denial, and zero external provider calls. It creates temporary certificates and synthetic identities, then removes its temporary data on exit.

Use with an AI agent

Point your agent at SKILL.md for the supported setup, validation, and operating procedures. Once a broker is configured, the MCP setup connects an agent through the Model Context Protocol (MCP), using its workload certificate.

Why use this tool?

  • Keep credentials out of agent responses. The broker resolves an approved credential and uses it for a fixed operation.
  • Control each identity's access. Workload certificates identify the caller; grants bind approval to a request, capability, policy revision, and expiry.
  • Retry without repeating completed work. Recorded results survive a lost response. Uncertain outcomes remain visible instead of being silently resubmitted.
  • Attribute operations to reviewed work. Operator policy binds identity, revision, run, and optional task IDs to workload certificates. Denials and replay outcomes retain a validated audit record.
  • Recover results after approval expires. Inspect an existing request without renewing its grant or repeating its operation.
  • Connect through MCP. An agent-facing stdio adapter delegates execution to the authenticated broker.

The first capability is an authenticated HTTPS health check. Provider and executor interfaces allow additional reviewed capabilities; agents cannot supply arbitrary secret references, URLs, headers, or HTTP methods.

How it works

Request and credential flow

flowchart LR
    A[Agent / MCP client] --> M[MCP stdio adapter]
    M -->|Mutual TLS, capability request| B[Broker]
    P[Operator policy and approvals] --> B
    B --> L[Durable audit and replay ledger]
    B -->|Approved field reference| O[1Password SDK worker]
    O -->|In-memory credential| B
    B -->|Fixed HTTPS operation| S[Approved service]

The operator owns policy and approvals. The broker authenticates the workload, validates its request, and records execution state before accessing a credential. The agent receives a bounded result; authorization remains on the broker.

Trust boundary

The broker and its host can access the credentials they use. Protect that host and the workload certificate keys. This alpha has synthetic integration evidence; live account permissions and deployment isolation require operator validation. See security, architecture, and validation boundaries.

For a wholly local developer environment, consider 1Password's native Environments MCP server. This broker is for credential-backed operations executed by a separately authenticated service.

Operate the broker

Connect 1Password and an agent

The broker includes the official 1Password Python SDK. Create a narrowly scoped service account and follow operator setup. It covers platform requirements, policy, certificates, the broker process, request approvals, and MCP configuration.

Review access and recover work

Use the operations guide for revocation, credential rotation, cancellation, and uncertain outcomes. Keep grant management on the operator side and inspect the durable ledger before retrying work whose result is unknown.

Documentation

Deployment and security

Development and releases

This is an independent Astrivant project using 1Password's official SDK. It is not an official 1Password product.

Kubernetes and monitoring

The Helm chart supports two broker replicas with a shared PostgreSQL replay ledger, validated ConfigMaps, and private Flask metrics/status endpoints. See operations for database durability, image/Secret prerequisites, CRD design, and sizing guidance.

Metadata

Release files for 1password-agent-broker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 1password-agent-broker 0.1.0
File Size Uploaded
1password_agent_broker-0.1.0.tar.gz 54.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for 1password-agent-broker 0.1.0
File Interpreter ABI Platform
1password_agent_broker-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / 1password_agent_broker-0.1.0.tar.gz

Download URL 1password_agent_broker-0.1.0.tar.gz
Size 54.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77d68ddf30ffa2a64db4ddfd9cabd28bdd565bf1ef84da52b85d1691acd473e9
BLAKE2b-256 checksum
How to use checksums
a8e42ee1a20643d3c7162f4e9a60ec5a5c33577267173e7783c010d0f9f91a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / 1password_agent_broker-0.1.0-py3-none-any.whl

Download URL 1password_agent_broker-0.1.0-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40d133b6135fc40dcb84bdf211915e8447a0729e6738eadf3ef9ca2c8fe36e97
BLAKE2b-256 checksum
How to use checksums
9b69511c71ff7f8470d5ef60434ac70633ba3ffbfa513734f660b0b0ef75a432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page