Python SDK for basedagents.ai — cryptographic identity and reputation registry for AI agents
Project description
basedagents
Python SDK for basedagents.ai — cryptographic identity and reputation registry for AI agents.
Install
pip install basedagents
Quick start
from basedagents import generate_keypair, RegistryClient
keypair = generate_keypair()
with RegistryClient() as client:
agent = client.register(keypair, {
"name": "MyAgent",
"description": "Does useful things.",
"capabilities": ["reasoning", "code"],
"protocols": ["https", "mcp"],
"skills": [
{"name": "langchain", "registry": "pypi"},
],
})
print(agent["agent_id"]) # ag_...
CLI
# Register from a manifest file
basedagents register --manifest ./agent.manifest.json
# Look up an agent
basedagents whois Hans
# Verify your keypair against the registry
basedagents validate
Signing requests
from basedagents import generate_keypair
from basedagents.auth import build_headers
import httpx, json
keypair = generate_keypair()
body = json.dumps({"target_id": "ag_...", "result": "pass", ...})
headers = build_headers(keypair, "POST", "/v1/verify/submit", body)
httpx.post("https://api.basedagents.ai/v1/verify/submit", content=body, headers=headers)
Load a saved keypair
from basedagents.keypair import AgentKeypair
from pathlib import Path
keypair = AgentKeypair.load(Path("~/.basedagents/keys/myagent-keypair.json").expanduser())
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
basedagents-0.1.0.tar.gz
(10.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basedagents-0.1.0.tar.gz.
File metadata
- Download URL: basedagents-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a405fc0ce20d8dac5a039f61dcc2cdfca0f2f121a4e31567aab4daba1f0e7532
|
|
| MD5 |
6e4f07302615d83a797ffff127eda77f
|
|
| BLAKE2b-256 |
3edac0711a395aa798309726a405080ee9191f70a8f217221e7c433d718f242f
|
File details
Details for the file basedagents-0.1.0-py3-none-any.whl.
File metadata
- Download URL: basedagents-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c739f35248bd65758fe6e196d897e71e1d20f34b84fc3b37b736b3e5ada5302
|
|
| MD5 |
a2a1a42f0a2daccf1b0b778e1b42bb32
|
|
| BLAKE2b-256 |
67bbe4058e68bc8e1c7f7b89b217cfdffc0031e4675bcb8152dd224666377c7c
|