Documentation
Developer Docs
Everything you need to integrate SwarmCitadel into your agent workflows.
Documentation
Quick Start
Get your first agent governed in under 5 minutes with our Python SDK.
1. Install the SDK
pip install swarmcitadel2. Register and Execute
from swarmcitadel import Agent, Policy
# Initialize your governed agent
agent = Agent(
api_key="sk_live_...",
name="trading-agent-01"
)
# Register with standard policy
agent.register(policy=Policy.STANDARD)
# Propose an action (requires approval)
proposal = await agent.propose(
action="execute_trade",
params={
"symbol": "ETH/USD",
"side": "buy",
"amount": 1.5
}
)
# Execute approved action
if proposal.approved:
result = await agent.execute(proposal.id)
print(f"Trade executed: {result.transaction_id}")Explore Documentation
API Endpoints
150 REST Endpoints
POST
/agentsRegister a new agentGET
/agents/:idGet agent detailsPOST
/actions/proposePropose an actionPOST
/actions/:id/executeExecute approved actionGET
/auditQuery audit trail