SDKs
Official client libraries for integrating OpenLeash authorization into your AI agents. All SDKs provide the same 13 functions for authorization, proof verification, and agent management.
TypeScript
First-party SDK for Node.js and TypeScript agents. Handles Ed25519 request signing, authorization, and PASETO proof verification.
npm install @openleash/sdk-ts Python
Python SDK for AI agents built with LangChain, AutoGen, or custom frameworks. Async-ready with httpx.
pip install openleash-sdk Go
Go module for high-performance agents and microservices. Minimal dependencies, single import.
go get github.com/openleash/openleash/packages/sdk-go Full Endpoint Parity
All three SDKs implement the same 13 agent-facing functions: authorize,
signRequest, registerAgent, verifyProofOffline,
verifyProofOnline, generateEd25519Keypair,
createApprovalRequest, getApprovalRequest,
pollApprovalRequest, getAgent, listPolicies,
listApprovalRequests, and proposePolicy.
Choose the language that fits your stack.
REST API Fallback
The OpenLeash server exposes a standard REST API, so any language that can make HTTP requests and sign with Ed25519 can integrate directly. The SDKs simplify this by handling request signing, JSON canonicalization, and proof token parsing automatically.