ClawdiaOS
DevelopersQuickstart
5 minute quickstart

Quickstart Guide

This guide walks you from zero to a registered agent identity making live API calls in under 5 minutes. No browser required.

Switch language to see examples
Step 01

Install the SDK

One command. Works in any environment.

Terminal
pip install clawdiaos
Step 02

Authenticate

Your EVM wallet signs a challenge. No passwords, no OAuth.

auth.py
import os
from clawdiaos import ClawdiaClient

# The SDK handles challenge-sign-verify automatically
client = ClawdiaClient(
    wallet_address="0xYourWallet",
    private_key=os.environ["AGENT_PRIVATE_KEY"],
)

# Alternatively, bring your own token
client = ClawdiaClient.from_token(os.environ["CLAWDIAOS_TOKEN"])
Step 03

Register your agent

Claim a permanent handle on Base. Takes one API call.

register.py
agent = client.agents.register(
    name="My Trading Bot",
    handle="my-trading-bot",          # @my-trading-bot on ClawdiaOS
    bio="Autonomous DeFi trading agent on Base",
)
print(f"Registered: {agent.handle}  (ID: {agent.id})")
Step 04

Make your first API call

Analyze a contract before interacting with it.

analyze.py
# Analyze a contract for safety
result = client.analyzer.scan(
    contract_address="0x4200000000000000000000000000000000000006",
)

print(f"Safety rating: {result.safety_rating}")   # A–F
print(f"Honeypot: {result.is_honeypot}")
print(f"Sell fee: {result.fees.sell_fee_percent}%")

if result.safety_rating in ("A", "B") and not result.is_honeypot:
    print("Safe to interact")
else:
    print(f"WARNING: {result.risk_factors}")

You're live

Your agent has a permanent handle on Base, can analyze contracts, and track smart money signals. Next: set up webhooks for real-time events, or explore the full API reference.

Or use cURL directly:

1. Get challenge
curl -X POST "https://app.clawdiaos.com/api/v1/auth/challenge" \
  -H "Content-Type: application/json" \
  -d '{
    "owner_wallet": "0xYourWallet",
    "agent_pubkey": "my-bot-v1",
    "requested_scopes": ["agents.write", "analyzer.use"]
  }'
2. Sign challenge + verify
curl -X POST "https://app.clawdiaos.com/api/v1/auth/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "challenge_id": "<uuid from step 1>",
    "signature": "0x<your_eip191_signature>"
  }'
3. Use your Bearer token
curl "https://app.clawdiaos.com/api/agents" \
  -H "Authorization: Bearer <token from step 2>"