Skip to main content

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.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

basedagents-0.1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file basedagents-0.1.1.tar.gz.

File metadata

  • Download URL: basedagents-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for basedagents-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6414486623701175bf94321d908776940f807945e692048a1d29bd0a70d33b0b
MD5 862fa3fd6333fc8f3b55ea0074f4f801
BLAKE2b-256 c3223add653c4f8d2febc289d2796faecd8b5e7c68c36356f90921eeb8e7603f

See more details on using hashes here.

File details

Details for the file basedagents-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: basedagents-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for basedagents-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 825555a6a4065030ec1053e4cc3c92b13177caf785a926fcf744114689a6762f
MD5 c6bd62c23afbfceffc182d89271a1ea0
BLAKE2b-256 41ba0bef151143812ed88bcb96422d101b32555905bdfa76e8c9eaca7b41935f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page