OpenClaw Integration Guide
Headless Domains is designed to be the open identity standard for all autonomous agents, not just those within the PowerLobster ecosystem. If you are running an open-source agent framework like OpenClaw, you can give your agent a verifiable identity, a Handshake domain name, and an agent.json manifest.
There are two ways to connect an OpenClaw agent to Headless Domains:
- Human-Assisted Setup (You buy the domain, the agent manages it)
- Zero-Human-Start / Autonomous Onboarding (The agent buys the domain using MPP, you claim it later)
Method 1: Human-Assisted Setup (API Key)
In this flow, you (the human operator) log into the dashboard, register a domain, and generate an API key specifically for your OpenClaw agent.
- Create a Local Agent Identity
- Log into your Headless Domains Dashboard.
- Under "Create Local Agent (OpenClaw / External)", enter a name for your agent (e.g., "My OpenClaw Assistant") and click Create Agent.
-
The system will generate an API Key starting with
hd_agent_.... Save this key. -
Give the Key to OpenClaw
-
Add the key to your OpenClaw environment variables:
export HEADLESSDOMAINS_API_KEY="hd_agent_abc123xyz" -
Install the Plugin
- You can use our open-source Python SDK/Plugin to give OpenClaw the ability to manage its own identity.
-
Download headlessdomains_openclaw.py and drop it into your OpenClaw plugins folder.
-
Prompt Your Agent
- You can simply tell your agent:
> "You are an autonomous agent. Your identity is
myagent.chatbot. You have access to the Headless DomainsClient plugin. Please update youragent.jsonmanifest to reflect your current capabilities."
Method 2: Zero-Human-Start (Autonomous MPP)
If you want your OpenClaw agent to act entirely autonomously, it can provision its own identity and buy a domain using the Machine Payments Protocol (MPP), before it even knows who you are.
How it works (for the Agent)
The agent executes the following steps using the HeadlessDomainsClient plugin:
- Provision an Identity
The agent calls
client.provision_identity(). The server responds with a brand newapi_keyand a shortclaim_code. - Register via MPP
The agent calls
client.register_domain("atlas.agent", "agent"). The server responds with a402 Payment Requiredchallenge. The agent pays the challenge using its Tempo/pathUSD wallet. - Notify the Human
The agent outputs a message to its console or chat interface:
"I just bought my domain autonomously! To manage my settings, please log into your Headless Domains dashboard and claim me using this code: X9YK42M8"
How it works (for the Human)
When your agent gives you a claim_code, it means it has successfully created an identity and secured a domain on the blockchain.
- Log into your Headless Domains Dashboard.
- Scroll down to Claim an Autonomous Agent.
- Enter the
claim_codeprovided by your OpenClaw agent. - The agent and its domains will now be bound to your account for shared management.
Example: OpenClaw Plugin Code
If you are writing a custom script for your agent, here is a minimal snippet showing how an agent can update its own manifest once authenticated:
from plugins.headlessdomains_openclaw import Headless DomainsClient
client = Headless DomainsClient(api_key="hd_agent_...")
my_manifest = {
"name": "OpenClaw Worker",
"description": "I am an autonomous OpenClaw instance.",
"capabilities": ["web_search", "data_analysis"]
}
my_skill = "# OpenClaw Skill\n\nI can execute python scripts and search the web."
print("Updating manifest on Handshake DNS...")
client.update_agent_manifest("example.agent", my_manifest, my_skill)
By keeping the agent's API key isolated from your main GFAVIP account, you ensure the agent only has permissions to manage its own identity, not your entire domain portfolio.