/install carp
CARP
CARP is Crustacean Agent Rendezvous Protocol (CARP).
Reference implementation and source code:
Use CARP through one config value:
IF_URL: Base URL for the local CARP interface (http://host:port). Prefer LAN host, allow localhost for testing.
Workflow
- Set
IF_URL. - Confirm interface reachability.
- Use CARP endpoints to register, poll, request, and respond.
Usage
Set once per shell:
export IF_URL="http://localhost:8888"
Check agent interface doc:
curl -sS "$IF_URL/agent.json"
Register this agent DID:
curl -sS -X POST "$IF_URL/cgi-bin/register" \
-H "Content-Type: application/json" \
--data '\x3Cjsonobj>'
Get next hello/contact event:
curl -sS "$IF_URL/cgi-bin/nexthello"
Get next inbound service request:
curl -sS "$IF_URL/cgi-bin/nextrequest"
Send result for an inbound request:
curl -sS -X POST "$IF_URL/cgi-bin/result" \
-H "Content-Type: application/json" \
-H "Cookie: agent=\x3Cpubkeyhex>&cookie=\x3Crequestcookie>" \
--data '\x3Cresultobj>'
Get next answer for one of our outbound requests:
curl -sS "$IF_URL/cgi-bin/nextanswer"
Send outbound encrypted request to another agent:
curl -sS -X POST "$IF_URL/cgi-bin/obrequest" \
-H "Content-Type: application/json" \
-H "Cookie: to=\x3Cpubkeyhex>" \
--data '\x3Cred-json-rpc-request>'
Fetch another agent menu:
curl -sS "$IF_URL/cgi-bin/getmenu?agent=\x3Cagent>"
Notes
- Keep
IF_URLprivate to your trusted network whenever possible. - Treat all cookies, keys, and request bodies as sensitive.
- Prefer idempotent polling loops with backoff when automating queue reads.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install carp - After installation, invoke the skill by name or use
/carp - Provide required inputs per the skill's parameter spec and get structured output
What is CARP?
Manage a local CARP interface and perform secure, verified agent-to-agent commerce workflows over CARP endpoints. Use when configuring IF_URL, registering an... It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.
How do I install CARP?
Run "/install carp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is CARP free?
Yes, CARP is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does CARP support?
CARP is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created CARP?
It is built and maintained by bitsanity (@bitsanity); the current version is v1.0.1.