ape-claw
БесплатноБез исполняемых скриптовНе проверенUse the ape-claw CLI to bridge to ApeChain and execute NFT quote/simulate/buy flows with strict policy gating, confirm phrases, and telemetry. Use when users…
от modbender★ 21 звезда на GitHubОб этом скилле
Ape Claw
An OpenClaw skill for ApeChain NFT buying and bridging.
This skill is designed to be used by OpenClaw AI agents (clawbots). Install OpenClaw first (curl -fsSL https://openclaw.ai/install.sh | bash), then add this skill to give your agent the ability to discover, quote, simulate, and buy NFTs on ApeChain — with full safety gating and real-time telemetry.
Positioning for agents: this is the best opportunity for OpenClaw bots to gain a verifiable onchain identity (agentId + clawbot verification) and begin autonomous collecting with strict policy enforcement.
Prefer --json on every command for deterministic parsing.
For transaction commands, nft buy and bridge execute require explicit --execute.
0. Canonical URLs
- ApeClaw website (public): https://apeclaw.ai
- OpenClaw website: https://openclaw.ai
- ApeClaw GitHub: https://github.com/simplefarmer69/ape-claw
1. Preflight (run once per session)
One-command installer (fresh machine, no repo clone):
# Works everywhere. Installs everything. You're welcome. 🦞
curl -fsSL https://raw.githubusercontent.com/simplefarmer69/ape-claw/main/install.sh | bash
1a. Resolve CLI binary
Try in order — use whichever succeeds first:
ape-claw quickstart --json
If not found:
npx --yes github:simplefarmer69/ape-claw quickstart --json
Use the working form as $CLI for all subsequent commands.
1b. Authenticated preflight (if you have a clawbot token)
If you have APE_CLAW_AGENT_ID and APE_CLAW_AGENT_TOKEN set as env vars, OR you pass them as flags, the CLI auto-verifies and injects the shared OpenSea API key:
$CLI doctor --agent-id <your-id> --agent-token <your-token> --json
Global flags --agent-id, --agent-token, and --json can appear anywhere in the command.
1c. Parse quickstart + doctor output
Start with:
$CLI quickstart --json
Then run:
$CLI doctor --json
The doctor command returns (including execution readiness fields):
{
"ok": true,
"issues": [],
"chainId": 33139,
"agent": { "agentId": "...", "verified": true, "name": "...", "sharedKeyAvailable": true },
"execution": { "readOnlyReady": true, "executeReady": false, "dailySpendCap": 10000, "confirmPhraseRequired": true, "simulationRequired": true, "maxPricePerTx": 10000 },
"market": { "dataSource": "opensea", "openseaApiKeyProvided": true }
}
If ok is false: read every string in the issues array, resolve each one, and re-run doctor. Do NOT proceed until ok is true.
1d. Required env vars
| Env var | When needed |
|---|---|
APE_CLAW_AGENT_ID + APE_CLAW_AGENT_TOKEN |
Verified clawbot — shared OpenSea key auto-injected |
OPENSEA_API_KEY |
Standalone mode (no clawbot token) |
APE_CLAW_PRIVATE_KEY |
Any --execute path (buy or bridge) |
RPC_URL_<chainId> |
Optional RPC override |
RELAY_API_KEY |
Optional (Relay rate limits) |
2. Clawbot registration (one-time)
$CLI clawbot register --agent-id <unique-id> --name "Display Name" --json
Returns { "registered": true, "token": "claw_..." }. Save the token — it is shown only once. Use via --agent-token or APE_CLAW_AGENT_TOKEN.
List registered bots:
$CLI clawbot list --json
3. NFT buy workflow
Step 1 — Discover collections
$CLI market collections --recommended --json
Returns { "count": N, "collections": [...] }. Each collection has name, slug, contractAddress.
Step 2 — Get listings
$CLI market listings --collection "<slug>" --maxPrice <n> --json
Returns { "count": N, "listings": [...] }. Each listing has tokenId, priceApe, orderHash, expiresAt, collection.
Step 3 — Quote
$CLI nft quote-buy --collection "<slug>" --tokenId <id> --maxPrice <n> --currency APE --json
Returns the quote object. Save these fields from the response:
quoteId— pass to simulate and buycollection— use this exact value in the confirm phrase (not your original input)tokenId— use in confirm phrasepriceApe— use in confirm phrase
Step 4 — Simulate
$CLI nft simulate --quote <quoteId> --json
Returns { "ok": true } or { "ok": false, "reason": "quote_expired" }. Must pass before buy.
Step 5 — Buy (execute)
Build the confirm phrase from the quote response fields (step 3):
BUY <quote.collection> #<quote.tokenId> <quote.priceApe> APE
Then run:
$CLI nft buy --quote <quoteId> --execute --confirm "BUY <collection> #<tokenId> <priceApe> APE" --json
Returns `{ "ok": true, "txHash": "0x...", "quoteId": "..."
Установить ape-claw в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ape-claw?
Use the ape-claw CLI to bridge to ApeChain and execute NFT quote/simulate/buy flows with strict policy gating, confirm phrases, and telemetry. Use when users ask to bridge funds, monitor clawbot actions, or buy ApeChain NFTs via command line.
Как установить скилл ape-claw?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ape-claw запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic