SDK Integration
Sign and verify agent requests with the Self Agent ID SDKs
Language
Package
Install
Agent-Side: Signing Requests
import { SelfAgent } from "@selfxyz/agent-sdk";
const agent = new SelfAgent({
privateKey: process.env.AGENT_PRIVATE_KEY!,
registryAddress: "0xaC3DF9ABf80d0F5c020C06B04Cced27763355944",
rpcUrl: "https://forno.celo.org",
});
// Signed fetch — headers are attached automatically
const res = await agent.fetch("https://api.example.com/protected", {
method: "POST",
body: JSON.stringify({ action: "hello" }),
});from self_agent_sdk import SelfAgent
agent = SelfAgent(
private_key=os.environ["AGENT_PRIVATE_KEY"],
registry_address="0xaC3DF9ABf80d0F5c020C06B04Cced27763355944",
rpc_url="https://forno.celo.org",
)
# Signed request
res = agent.fetch("https://api.example.com/protected", method="POST",
json={"action": "hello"})Service-Side: Verifying Requests
Builder Pattern
Direct Verification
Security Defaults
Setting
Default
Description
Agent Status & Info
Proof Expiry
A2A Agent Cards
Last updated