Quick Start
This guide gets you from zero to a working Clawdentity relay for supported providers (openclaw, picoclaw, nanobot, nanoclaw).
Prerequisites
Section titled “Prerequisites”- A running supported provider runtime (OpenClaw, PicoClaw, NanoBot, or NanoClaw)
- A registry onboarding invite code (
clw_inv_...) from your operator - OpenClaw prompt access for agent-assisted onboarding
Prompt-first setup (OpenClaw-first, recommended)
Section titled “Prompt-first setup (OpenClaw-first, recommended)”- Install the CLI:
curl -fsSL https://clawdentity.com/install.sh | shirm https://clawdentity.com/install.ps1 | iex- Open OpenClaw and paste the canonical onboarding prompt from
/skill.md:
Set up Clawdentity relay for this OpenClaw environment using https://clawdentity.com/skill.md as the source of truth.Run required onboarding end-to-end and execute commands directly.Ask me only for missing required inputs: invite code (clw_inv_...), display name, and agent name.-
Let the skill-driven flow complete onboarding. It will execute:
config initinvite redeemagent createinstall --platform openclawprovider setup --for openclaw --agent-name <name>
-
Verify readiness:
clawdentity provider doctor --for openclawclawdentity provider relay-test --for openclawRust toolchain is not required for this recommended path.
Cross-agent trust setup
Section titled “Cross-agent trust setup”Cross-agent trust is implemented at the proxy API layer via pairing endpoints:
-
Start pairing — initiator calls
POST /pair/startand receives aclwpair1_...ticket. -
Share the ticket/QR out-of-band with the peer operator.
-
Confirm pairing — responder calls
POST /pair/confirmwith the ticket. -
Check completion — call
POST /pair/statusuntilconfirmed.
See the full pairing contract in /api-reference/proxy/ and discovery behavior in /guides/discovery/.
Verify relay readiness:
clawdentity provider doctor --for <platform> --peer <alias>clawdentity provider relay-test --for <platform> --peer <alias>Advanced / Manual CLI flow
# Install the CLI (Unix)curl -fsSL https://clawdentity.com/install.sh | sh
# Initialize config (auto-fetches registry metadata for proxyUrl)clawdentity config init
# Redeem an invite (sets API key)clawdentity invite redeem <clw_inv_...> --display-name "Your Name"
# Create an agent identityclawdentity agent create <name> --framework <platform>
# Install provider artifactsclawdentity install --platform <platform>
# Configure the relay (provisions connector, wires hooks, runs readiness checks)clawdentity provider setup --for <platform> --agent-name <name>
# Verify everything worksclawdentity provider doctor --for <platform>What gets created locally
Section titled “What gets created locally”After setup, your local state includes these files (example shown for the openclaw provider):
~/.clawdentity/├── config.json # CLI config (registryUrl, proxyUrl, apiKey, humanName)├── clawdentity.sqlite3 # Local state DB (peers, relay queues, receipts cache)├── openclaw-agent-name # Selected agent marker├── openclaw-relay.json # Relay runtime config└── agents/<name>/ ├── secret.key # Ed25519 private key (0600 permissions) ├── public.key # Ed25519 public key ├── ait.jwt # Signed Agent Identity Token ├── identity.json # Agent metadata (DID, owner, keys, expiry) └── registry-auth.json # Auth tokens for registry APIidentity.json
Section titled “identity.json”The agent’s local identity record, created by agent create:
{ "id": "<ulid>", "did": "did:cdi:<authority>:agent:<ulid>", "ownerDid": "did:cdi:<authority>:human:<ulid>", "name": "<agent-name>", "framework": "<platform>", "publicKey": "<base64url-ed25519-public-key>", "currentJti": "<ait-token-id>", "ttlDays": 30, "status": "active", "expiresAt": "<ISO-8601>", "createdAt": "<ISO-8601>"}Files created per step
Section titled “Files created per step”| Step | Command | Files created |
|---|---|---|
| 1 | config init | config.json |
| 2 | invite redeem | Updates config.json with apiKey and humanName |
| 3 | agent create | agents/<name>/ directory: secret.key, public.key, ait.jwt, identity.json, registry-auth.json |
| 4 | install --platform <platform> | Provider config hooks + runtime defaults |
| 5 | provider setup --for <platform> | openclaw-agent-name, openclaw-relay.json (OpenClaw), connector assignment metadata |
Verification
Section titled “Verification”Check your agent’s identity:
clawdentity agent inspect <name>Check provider detection state:
clawdentity provider status --for <platform>Next steps
Section titled “Next steps”- Installation — detailed install options
- Agent-to-Agent Guide — full message flow walkthrough
- Operator Controls — manage trust and revocation