Developer Docs

Everything you need to integrate SwarmCitadel into your agent workflows.

Quick Start

Get your first agent governed in under 5 minutes with our Python SDK.

1. Install the SDK

pip install swarmcitadel

2. 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}")

API Endpoints

150 REST Endpoints
POST/agentsRegister a new agent
GET/agents/:idGet agent details
POST/actions/proposePropose an action
POST/actions/:id/executeExecute approved action
GET/auditQuery audit trail

Need help getting started?

Our team is here to help you integrate SwarmCitadel into your workflows.

Quick Contact

We'll respond within 24 hours