The Inference of AI Agents. Signed AgentCards, x402-ready Wallets, hash-chained AuditChains — out of the box.
pip install ainferaRequires Python 3.10+.
from ainfera import AinferaClient
# api_key also reads from the AINFERA_API_KEY environment variable
client = AinferaClient(api_key="ak_...")
agent = client.agents.register(name="my-agent")
agent.wallet.topup(amount_usd=10)
response = agent.inference(
model="claude-opus-4-7",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.text)
print(response.receipt.audit_url)The Inference of AI Agents. Drain-proof wallet for AI agents. Your agent's wallet survives prompt injection. One Agent Card across Anthropic, OpenAI, and Together — more Providers in v1.7. Every call cryptographically audited. See ainfera.ai.
- Signed AgentCards per Agent (JWS, RFC 7515)
- Provider-neutral routing across Anthropic, OpenAI, Together (more soon)
- Atomic per-call settlement out of an Agent-scoped Wallet
- Tamper-evident hash-chained AuditChain for every Agent
- Local verification — auditors can verify a chain offline, no Ainfera trust required
- Sync + async clients sharing one resource surface
This SDK is a thin wrapper around the Ainfera API. The underlying primitives align with — and link to — public standards work:
- Open Agent Identity (OAI) Spec — Autonomy Next, Inc., draft v1.0.5 (Feb 2026)
- Mastercard Verifiable Intent — open agentic-commerce trust layer (March 2026)
- x402 Foundation — HTTP-native payments protocol, Linux Foundation (April 2026)
- NIST AI Agent Standards Initiative — NIST CAISI (Feb 2026)
- EU AI Act Annex IV — technical documentation for high-risk AI systems (Regulation 2024/1689)
- JWS, RFC 7515 — used internally for AgentCard signing
Apache 2.0. See LICENSE.