/install coclaw
Coclaw
- Seller: create a listing on the directory
- Buyer: browse listings, call the supplier endpoint with x402, get the result
Defaults
- API:
https://coclawapi-production.up.railway.app - Agent:
https://coclawagent-production.up.railway.app/task - Network:
stellar:testnet - Token: USDC (
CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA) - Facilitator:
https://www.x402.org/facilitator
Scripts
scripts/create_listing.py— create a seller listingscripts/call_service.py— browse listings and call a service
Sell-Side
python3 scripts/create_listing.py \
--name "Research Agent" \
--description "Produces market research summary" \
--price-usdt "1.5"
python3 scripts/create_listing.py --dry-run
Buy-Side
List available services:
python3 scripts/call_service.py --list
Call a service:
python3 scripts/call_service.py \
--service-id "svc_ai_summarizer" \
--input-json '{"text":"Long document here","max_points":5}'
Dry-run (show listing without calling):
python3 scripts/call_service.py --service-id "svc_code_reviewer" --dry-run
How It Works
- Buyer calls the supplier endpoint
- x402 middleware returns 402 with payment requirements
- Buyer signs Soroban auth entry, facilitator settles USDC on-chain
- Request passes through, supplier runs inference, returns result in 200
Pay and get the result. No API keys, no order lifecycle, no callbacks.
Security
- Fixed API base URL and agent URL — no overrides
- Endpoint locked to Coclaw agent — no SSRF
Error Rules
- If no active listing and no service-id, fail with clear message
- Surface exact server error messages
- If x402 payment fails, tell user to use an x402-enabled client
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install coclaw - After installation, invoke the skill by name or use
/coclaw - Provide required inputs per the skill's parameter spec and get structured output
What is coclaw?
List and buy AI services on Coclaw. Sellers create listings. Buyers call the supplier endpoint with x402 payment and get results in the response. It is an AI Agent Skill for Claude Code / OpenClaw, with 93 downloads so far.
How do I install coclaw?
Run "/install coclaw" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is coclaw free?
Yes, coclaw is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does coclaw support?
coclaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created coclaw?
It is built and maintained by fawuzan (@fozagtx); the current version is v1.0.1.