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.2.tar.gz (11.0 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basedagents-0.1.2.tar.gz
  • Upload date:
  • Size: 11.0 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.2.tar.gz
Algorithm Hash digest
SHA256 6ac055fd0515cd195302c16eea40c38bfcb83b8a5e379f4b8c94418bd297773c
MD5 b39dc7ff0e2759ceee2bd334f7074e99
BLAKE2b-256 95c68c71d1eb724526b7d914c506a4808b1e8999b7539de8e5f0027e9ebccc6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: basedagents-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32375c96bc445643754325f3e9e8cde5c3d1a89b374dfbf05dd4f7c103b140e7
MD5 62e27a855db4ecfb84395fddf9f46903
BLAKE2b-256 eb298db1db5572bbc49ec98f77909350ca4db854384cde19431973257ca691b6

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