For Developers
3 lines of code.
Zero breaking changes.
CAIRN wraps your existing agent with checkpoint-based recovery. No architecture changes. No new patterns to learn.
FOR AUTONOMOUS AGENTS
Machine-Readable Integration
AI agents can discover and integrate with CAIRN automatically via our skill endpoints.
QUICK START (5 min)View raw →
curl -s https://cairn.protocol/skill.mdEssential integration guide for agents
For Human Developers
Python
pip install cairn-sdkJavaScript
npm i @cairn/sdkIntegration Examples
from cairn_sdk import CairnClient
from langgraph.prebuilt import create_react_agent
# Initialize CAIRN (Base Sepolia)
cairn = CairnClient(
rpc_url="https://sepolia.base.org",
contract="0x2eFd1De57BfF1Ea3E40b049F70bb58590Ea73417"
)
# Wrap your agent with CAIRN protection
@cairn.protect(escrow="0.1 ETH", fallback_agent="0x...")
async def my_agent(state):
result = await create_react_agent(...)
cairn.checkpoint(state=state, progress=0.5)
return resultProduction Ready
✓
TypeScript Types
✓
Full Docs
✓
95%+ Coverage
✓
MPL-2.0
ERC-8183 (Phase 4)ERC-8004 (Phase 4)ERC-7710 (Phase 4)
Start Building
Questions? Join our Discord or check the docs.