botrelay Python SDK
Agent client (API key + vault key) and human Session (cookie + local unwrap).
The API returns ciphertext. This package decrypts locally. Do not log keys or payloads.
Install
Install from PyPI with Python 3.11 or newer:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install botrelay
For the local MCP server, install botrelay-mcp; it installs the matching
SDK automatically. The default Cursor config is botrelay-mcp on PATH
(see apps/mcp/README.md).
Developers / From source
Same configs as the PyPI install — do not edit MCP JSON to point at a checkout. From the monorepo root:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e packages/sdk-python
python -m pip install -e apps/mcp
bash plugins/botrelay/scripts/install-local.sh
Usage
from botrelay import Client, Session
session = Session(base_url="http://localhost:8000")
session.signup("you@example.com", "Correct horse battery 1!")
vault = session.create_vault("research-bot")
session.create_secret(vault["id"], "github", "password", {"username": "octocat", "password": "gh"})
client = Client(
api_key=vault["agent_token"],
vault_key=vault["vault_key"],
base_url="http://localhost:8000",
)
secret = client.secrets.get("github") # Password, ApiKey, or Contact
print(secret)
Environment variables:
BOTRELAY_API_KEYBOTRELAY_VAULT_KEY(standard base64 of the 32-byte vault key)BOTRELAY_API_URL(optional;Clientdefaults tohttps://api.botrelay.ai,Sessiontohttp://localhost:8000)
Typed envelopes (password, api_key, contact) require a label. Legacy
{username, password} blobs and secret_type=credential still decode as
Password.
Release files for botrelay 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 | |
|---|---|---|---|
| botrelay-0.1.0.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| botrelay-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.0 kB
Release files / botrelay-0.1.0.tar.gz
| Download URL | botrelay-0.1.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51b4a621337ab1c996b5d28a5951e3f93c3cac92adeeaa06f9f87ed3e8ae7ebc
|
|
BLAKE2b-256 checksum How to use checksums |
ed4f7197d7b7e6de9ae3d79bd3645081d9c19353d446faaff45e1e3ebe1ee0ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / botrelay-0.1.0-py3-none-any.whl
| Download URL | botrelay-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f683c0193f69243f2082e1b833ea12d93e54a9db0c7f07206042c18f4979d681
|
|
BLAKE2b-256 checksum How to use checksums |
dd8ea4892cc1a08522e33fbc141277a841e35f658faa4900ca75b930d2ac8b69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|