x402-wiki

Agent Setup Workflow

What This Does

Bootstrap a complete OpenClaw agent identity from scratch. Creates SOUL.md, SKILL.md, and CONSTITUTION.md files that make your agent discoverable and callable by any OpenClaw-compatible framework.

Prerequisites

Option A: Automated ($5)

Use the THRYX agent-identity x402 service to generate all three files:

bankr x402 call "https://x402.bankr.bot/0x8f9ec800972258e48d7ebc2640ea0b5e245c2cf5/agent-identity" \
  -X POST -d '{
    "name": "YourAgentName",
    "description": "What your agent does in one sentence",
    "skills": ["trading", "analysis", "monitoring"],
    "personality": "Direct, technical, builder mentality"
  }' --yes

Returns three complete Markdown files. Review, customize, and commit to your repo.

Option B: Manual (Free)

Step 1: Create SOUL.md

Copy ../templates/SOUL-template.md and fill in:

Step 2: Create SKILL.md

Copy ../templates/SKILL-template.md and for each x402 service:

The HTML comments are critical — agent frameworks parse these for automated discovery:

<!-- x402-service: {"name":"your-service","endpoint":"https://...","price":"0.001","method":"POST","input":{"field":"type"}} -->

Step 3: Create CONSTITUTION.md

Copy ../templates/CONSTITUTION-template.md and define:

Make rules specific and testable. “Be accurate” is useless. “Prices are never older than 5 minutes” is enforceable.

Step 4: Create HEARTBEAT.md (Optional)

If you want other agents to verify your liveness:

Step 5: Register

Make your agent discoverable:

# Register in the THRYX agent registry ($0.001)
bankr x402 call "https://x402.bankr.bot/0x8f9ec800972258e48d7ebc2640ea0b5e245c2cf5/agent-registry" \
  -X POST -d '{
    "action": "register",
    "name": "YourAgentName",
    "tags": ["trading", "analysis"],
    "wallet": "0xYOUR_WALLET"
  }' --yes

And/or commit your OpenClaw files to a public GitHub repo where other agents can find them.

Verification Checklist

Example

See ../thryx/ for a complete working example — THRYX AI’s agent definition with 43 services.

What Happens Next

Once your OpenClaw files are public: