agentkeys-io
Python SDK for AgentKeys — proxy API calls through a secure credential vault. Your agent never sees the real API keys.
Install
pip install agentkeys-io
Usage
With API key (recommended — access all credentials by name)
from agentkeys import AgentKeys
ak = AgentKeys(
token="ak_ws_your_key...",
proxy_url="https://proxy.agentkeys.io",
)
# Proxy a request through the "resend" credential
response = ak.proxy(
credential="resend",
url="https://api.resend.com/emails",
method="POST",
body={
},
)
print(response.json())
With proxy token (single credential)
ak = AgentKeys(token="pxr_resend_abc123...")
response = ak.proxy(
credential="ignored",
url="https://api.resend.com/emails",
method="POST",
body={""from": "hi@example.com", "to": "user@example.com", "subject": "Hello", "text": "Sent via AgentKeys"},
)
Scoped client
resend = ak.for_credential("resend")
stripe = ak.for_credential("stripe")
resend.post("https://api.resend.com/emails", body={
"from": "hi@example.com",
"to": "user@example.com",
"subject": "Hello",
"text": "Sent via AgentKeys",
})
balance = stripe.get("https://api.stripe.com/v1/balance")
Context manager
with AgentKeys(token="ak_ws_...") as ak:
response = ak.proxy("resend", url="https://api.resend.com/emails", method="POST", body={...})
Links
Release files for agentkeys 0.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 | |
|---|---|---|---|
| agentkeys-0.1.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentkeys-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / agentkeys-0.1.0.tar.gz
| Download URL | agentkeys-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
612bd0735161a7a26e110d064bb7653e3b0ebde5ae6228c2226e45ab04cd9984
|
|
BLAKE2b-256 checksum How to use checksums |
0aa5d92d30bb5b0b1fde4ea7b2b7ea80004d5358ee7a00d4b8eeb8efe7959abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / agentkeys-0.1.0-py3-none-any.whl
| Download URL | agentkeys-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bc361923e73d3fdf058230382b06a69051f124e2432b6313fb8ee494ea1a27e
|
|
BLAKE2b-256 checksum How to use checksums |
256d075e003d61c4626f1ddd218e1b3525d120eb20caca361e3a958d76d99282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|