Skip to main content

agentkeyring

Python client for AgentVault — AI-native credential vault for autonomous agents.

Install

pip install agentkeyring

Quickstart

from agentkeyring import Vault

vault = Vault(
    base_url="https://agentvault-api-production.up.railway.app",
    agent_key="avk_...",
)

# Retrieve a credential (decrypted, TTL 300s)
stripe_key = vault.get("stripe_key", cost=0.05)

# List what this agent can access
names = vault.list()

# Async variant
import asyncio
from agentkeyring import AsyncVault

async def main():
    async with AsyncVault(base_url="...", agent_key="avk_...") as v:
        return await v.get("openai_key")

asyncio.run(main())

API

  • Vault(base_url, agent_key, timeout=10.0) — sync client
  • AsyncVault(base_url, agent_key, timeout=10.0) — async context-manager client
  • .get(name: str, cost: float = 0.0) -> str — returns the decrypted value
  • .list() -> list[str] — names accessible to this agent

Both raise VaultError on 4xx/5xx with the server's detail message.

License

MIT.

Metadata

Release files for agentkeyring 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 agentkeyring 0.1.0
File Size Uploaded
agentkeyring-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentkeyring 0.1.0
File Interpreter ABI Platform
agentkeyring-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / agentkeyring-0.1.0.tar.gz

Download URL agentkeyring-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c7856f0ecfbfa8df1667b46c3c573589b9717077b4e5f4787f9f70811a20228e
BLAKE2b-256 checksum
How to use checksums
7d10bd47ad5c8618065543e14d0e6bc8e1cdf704bac94c38fe2549dbe1241a28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / agentkeyring-0.1.0-py3-none-any.whl

Download URL agentkeyring-0.1.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40cf9c663889d07e6b07bfec3ed1378b015e9bc687b0d745252bce22c98b48ec
BLAKE2b-256 checksum
How to use checksums
5be56fef8ddb1c385f2bf0f196adfc5579eb6422ae2f98757d9ba3a842a716d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

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