ape-claw 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.cursor/skills/ape-claw/SKILL.md +322 -0
  2. package/LICENSE +21 -0
  3. package/README.md +826 -0
  4. package/allowlists/opensea-slug-overrides.json +13 -0
  5. package/allowlists/recommended.apechain.json +322 -0
  6. package/config/clawbots.example.json +3 -0
  7. package/config/policy.example.json +27 -0
  8. package/data/starter-pack-bundle.json +1 -0
  9. package/data/starter-pack.json +495 -0
  10. package/docs/ACP_BOUNTIES.md +108 -0
  11. package/docs/APECLAW_V2_ALPHA.md +206 -0
  12. package/docs/AUTONOMY_AND_SUBSTRATE.md +69 -0
  13. package/docs/CLAWBOTS_AND_INVITES.md +102 -0
  14. package/docs/CLI_GUIDE.md +124 -0
  15. package/docs/CONTRIBUTING.md +130 -0
  16. package/docs/DASHBOARD_GUIDE.md +108 -0
  17. package/docs/GLOBAL_BACKEND.md +145 -0
  18. package/docs/ONCHAIN_V2_GUIDE.md +140 -0
  19. package/docs/PRODUCT_OVERVIEW.md +127 -0
  20. package/docs/README.md +40 -0
  21. package/docs/SKILLCARDS_AND_IMPORTER.md +147 -0
  22. package/docs/STARTER_PACK.md +297 -0
  23. package/docs/SUPPORTED_NETWORKS.md +58 -0
  24. package/docs/TELEMETRY_AND_EVENTS.md +103 -0
  25. package/docs/THE_POD_RUNNER.md +198 -0
  26. package/docs/V1_WORKFLOWS.md +108 -0
  27. package/docs/V2_ONCHAIN_SKILLS.md +157 -0
  28. package/docs/WEB4_PLAN_STATUS.md +95 -0
  29. package/docs/WEB4_SWARM_MODEL.md +104 -0
  30. package/docs/archive/AUTONOMY_AND_SUBSTRATE.md +66 -0
  31. package/docs/archive/WEB4_PLAN_STATUS.md +93 -0
  32. package/docs/archive/WEB4_SWARM_MODEL.md +98 -0
  33. package/docs/developer/01-architecture.md +345 -0
  34. package/docs/developer/02-contracts.md +1034 -0
  35. package/docs/developer/03-writing-modules.md +513 -0
  36. package/docs/developer/04-skillcard-spec.md +336 -0
  37. package/docs/developer/05-backend-api.md +1079 -0
  38. package/docs/developer/06-telemetry.md +798 -0
  39. package/docs/developer/07-testing.md +546 -0
  40. package/docs/developer/08-contributing.md +211 -0
  41. package/docs/operator/01-quickstart.md +49 -0
  42. package/docs/operator/02-dashboard.md +174 -0
  43. package/docs/operator/03-cli-reference.md +818 -0
  44. package/docs/operator/04-skills-library.md +169 -0
  45. package/docs/operator/05-pod-operations.md +314 -0
  46. package/docs/operator/06-deployment.md +299 -0
  47. package/docs/operator/07-safety-and-policy.md +311 -0
  48. package/docs/operator/08-troubleshooting.md +457 -0
  49. package/docs/operator/09-env-reference.md +238 -0
  50. package/docs/social/STARTER_PACK_THREAD.md +209 -0
  51. package/package.json +77 -0
  52. package/skillcards/import-sources.json +93 -0
  53. package/skillcards/seed/acp-bounty-poll.v1.json +38 -0
  54. package/skillcards/seed/acp-bounty-post.v1.json +55 -0
  55. package/skillcards/seed/acp-browse.v1.json +41 -0
  56. package/skillcards/seed/acp-fulfill-and-route.v1.json +56 -0
  57. package/skillcards/seed/apeclaw-bridge-relay.v1.json +46 -0
  58. package/skillcards/seed/apeclaw-nft-autobuy.v1.json +60 -0
  59. package/skillcards/seed/apeclaw-receipt-recorder.v1.json +64 -0
  60. package/skillcards/seed/humanizer.v1.json +74 -0
  61. package/skillcards/seed/otherside-navigator.v1.json +116 -0
  62. package/skillcards/seed/stonkbrokers-launcher.v1.json +280 -0
  63. package/skillcards/seed/walkie-p2p.v1.json +66 -0
  64. package/src/cli/index.mjs +8 -0
  65. package/src/cli.mjs +1929 -0
  66. package/src/lib/bridge-relay.mjs +294 -0
  67. package/src/lib/clawbots.mjs +94 -0
  68. package/src/lib/io.mjs +36 -0
  69. package/src/lib/market.mjs +233 -0
  70. package/src/lib/nft-opensea.mjs +159 -0
  71. package/src/lib/paths.mjs +17 -0
  72. package/src/lib/pod-init.mjs +40 -0
  73. package/src/lib/policy.mjs +112 -0
  74. package/src/lib/rpc.mjs +49 -0
  75. package/src/lib/telemetry.mjs +92 -0
  76. package/src/lib/v2-onchain-abi.mjs +294 -0
  77. package/src/lib/v2-skillcard.mjs +27 -0
  78. package/src/server/index.mjs +169 -0
  79. package/src/server/logger.mjs +21 -0
  80. package/src/server/middleware/auth.mjs +90 -0
  81. package/src/server/middleware/body-limit.mjs +35 -0
  82. package/src/server/middleware/cors.mjs +33 -0
  83. package/src/server/middleware/rate-limit.mjs +44 -0
  84. package/src/server/routes/chat.mjs +178 -0
  85. package/src/server/routes/clawbots.mjs +182 -0
  86. package/src/server/routes/events.mjs +95 -0
  87. package/src/server/routes/health.mjs +72 -0
  88. package/src/server/routes/pod.mjs +64 -0
  89. package/src/server/routes/quotes.mjs +161 -0
  90. package/src/server/routes/skills.mjs +239 -0
  91. package/src/server/routes/static.mjs +161 -0
  92. package/src/server/routes/v2.mjs +48 -0
  93. package/src/server/sse.mjs +73 -0
  94. package/src/server/storage/file-backend.mjs +295 -0
  95. package/src/server/storage/index.mjs +37 -0
  96. package/src/server/storage/sqlite-backend.mjs +380 -0
  97. package/src/telemetry-server.mjs +1604 -0
  98. package/ui/css/dashboard.css +792 -0
  99. package/ui/css/skills.css +689 -0
  100. package/ui/docs.html +840 -0
  101. package/ui/favicon-180.png +0 -0
  102. package/ui/favicon-192.png +0 -0
  103. package/ui/favicon-32.png +0 -0
  104. package/ui/favicon-lobster.png +0 -0
  105. package/ui/favicon.svg +10 -0
  106. package/ui/index.html +2957 -0
  107. package/ui/js/dashboard.js +1766 -0
  108. package/ui/js/skills.js +1621 -0
  109. package/ui/pod.html +909 -0
  110. package/ui/shared/motion.css +286 -0
  111. package/ui/shared/motion.js +170 -0
  112. package/ui/shared/sidebar-nav.css +379 -0
  113. package/ui/shared/sidebar-nav.js +137 -0
  114. package/ui/skills.html +2879 -0
@@ -0,0 +1,147 @@
1
+ # SkillCards + Importer (Library of Alexandria)
2
+
3
+ SkillCards are portable JSON documents that describe:
4
+
5
+ - what a skill is,
6
+ - what inputs/outputs it expects,
7
+ - how it can be executed (bindings),
8
+ - what risk tier it carries,
9
+ - provenance (who published it, where it came from).
10
+
11
+ In v2, the chain stores `contentHash` and `uri` so SkillCards can be content-addressed.
12
+
13
+ ## Seed SkillCards
14
+
15
+ Seed cards live in `skillcards/seed/` and are published by `npm run contracts:seed` on local devnet.
16
+
17
+ ## Importer
18
+
19
+ The importer pulls external skill sources into `skillcards/imported/`:
20
+
21
+ ```bash
22
+ npm run skillcards:import
23
+ ```
24
+
25
+ - Manifest: `skillcards/import-sources.json`
26
+ - Output: `skillcards/imported/` (individual JSON files gitignored; `index.json` is tracked)
27
+ - Index file: `skillcards/imported/index.json` (enriched with descriptions; served globally via `/api/skills/search`)
28
+ - Versioned filenames: `<slug>.v<version>.json` (stable for publishing + upgrades)
29
+
30
+ ## Install ACP (Bounties) via importer
31
+
32
+ Virtuals / ACP exposes a bounty system that lets agents post work requests and pay providers via escrow:
33
+
34
+ - Repo: `https://github.com/Virtual-Protocol/openclaw-acp`
35
+ - Bounty board: `https://agdp.io/bounties`
36
+
37
+ In ApeClaw, the simplest “install” path is to import the repo’s `SKILL.md` files into SkillCards:
38
+
39
+ ```bash
40
+ npm run skillcards:import
41
+ ```
42
+
43
+ This repo is included in `skillcards/import-sources.json` as a `github_repo_skill_md` source, so it will be pulled into:
44
+
45
+ - `skillcards/imported/`
46
+ - `skillcards/imported/index.json`
47
+
48
+ If `skillcards/imported/index.json` exists, the `/skills` page will show an "Imported Skill Library" section automatically.
49
+
50
+ Notes:
51
+
52
+ - ACP bounty skills are typically higher-risk (`riskTier: 3`) because they can move value (USDC escrow). Keep them strict opt-in in THE POD.
53
+ - If you publish imported cards onchain, prefer setting a stable `--uriBase` (HTTP/IPFS/Arweave) instead of `file://...`.
54
+
55
+ ### Manifest fields (supported)
56
+
57
+ Each entry is a JSON object. Common fields:
58
+
59
+ - `source`: `"local" | "github" | "clawhub" | "unknown"`
60
+ - `name`, `slug`, `riskTier`
61
+
62
+ Import sources:
63
+
64
+ - Local file:
65
+ - `source: "local"`, `path: "skillcards/seed/..."` (reads from disk)
66
+ - ClawHub top downloads (bulk):
67
+ - `source: "clawhub_index"`, `url: "https://clawhub.ai/skills?sort=downloads"`
68
+ - Extracts many skill URLs from the index page, then imports each skill page best-effort.
69
+ - If a page is HTML-only and does not expose a SkillCard payload, ApeClaw records it as a stub SkillCard (provenance preserved).
70
+ - Direct JSON URL:
71
+ - `jsonUrl` or `skillcardUrl`
72
+ - GitHub raw:
73
+ - `source: "github"`, `owner`, `repo`, `ref`, `path`
74
+ - OpenClaw skills mirror (recommended):
75
+ - `source: "openclaw_skills"`
76
+ - `owner` (directory owner in the mirror)
77
+ - `skillSlug` (skill slug folder)
78
+ - This fetches `_meta.json` + `SKILL.md` from `openclaw/skills` and converts them into a SkillCard JSON.
79
+ - This is the most reliable way to “pull from ClawHub” without scraping HTML pages.
80
+
81
+ - ClawHub mirror (bulk import, recommended):
82
+ - `source: "github_repo_skill_md"`
83
+ - `owner: "openclaw"`, `repo: "skills"`, `basePath: "skills"`
84
+ - This imports many `SKILL.md` files from the `openclaw/skills` GitHub mirror (which is the reliable alternative to scraping ClawHub HTML).
85
+ - Use `limit` in the manifest to control how many skills you pull per run.
86
+
87
+ HTML-only pages:
88
+
89
+ - importer attempts best-effort extraction (Next.js `__NEXT_DATA__`)
90
+ - if extraction fails, it writes a stub SkillCard that preserves provenance (`sourceUrl`) and clearly marks itself as a stub
91
+
92
+ ### Strict mode (no stubs)
93
+
94
+ If you only want real SkillCard payloads and want failures to be explicit:
95
+
96
+ ```bash
97
+ npm run skillcards:import -- --strict
98
+ ```
99
+
100
+ ## Optional: publish imported SkillCards
101
+
102
+ The importer can optionally mint + publish each imported skill onchain:
103
+
104
+ ```bash
105
+ node ./scripts/import-skillcards.mjs --publish \
106
+ --rpc http://127.0.0.1:8545 \
107
+ --privateKey 0x... \
108
+ --skillNft 0x... \
109
+ --registry 0x...
110
+ ```
111
+
112
+ Recommended options:
113
+
114
+ - `--skipStubs`: do not publish stub cards (`constraints.importedStub: true`)
115
+ - `--uriBase <url>`: publish with stable onchain URIs like `https://.../skillcards/imported/<slug>.v<version>.json`
116
+ - `--parentId <id>`: mint skills as forks (parent/child) when you want provenance
117
+
118
+ This is devnet-first. For ApeChain deployment, you will typically want:
119
+
120
+ - a real content URI (IPFS/Arweave/http) rather than `file://...`
121
+ - a review pipeline to set `riskTier` and permissions appropriately
122
+
123
+ ## Global API Access
124
+
125
+ Skills are served globally via the backend API at `https://apeclaw.ai`. The UI at [apeclaw.ai/skills](https://apeclaw.ai/skills) consumes these endpoints:
126
+
127
+ - `GET /api/skills/search` — search and browse all skills (seed + imported + user)
128
+ - `GET /api/skills/<slug>` — fetch full skill details and SkillCard JSON by slug
129
+ - `GET /api/skills/stats` — aggregate counts (total, seed, imported, vetted, onchain)
130
+
131
+ The `index.json` is tracked in git and deployed to the backend. Individual imported JSON files remain gitignored but are available locally for operators who clone the repo.
132
+
133
+ ## How the importer maps to onchain hashes
134
+
135
+ The importer uses the same canonical hashing as the v2 seed script:
136
+
137
+ - `versionHash = keccak256(version_string)`
138
+ - `contentHash = keccak256(stableJsonStringify(skillcard_json))`
139
+
140
+ The onchain registry stores:
141
+
142
+ - `skillId` (from `SkillNFT`)
143
+ - `versionHash`
144
+ - `contentHash`
145
+ - `uri` (string)
146
+ - `riskTier`
147
+
@@ -0,0 +1,297 @@
1
+ # The ApeClaw Starter Pack: 61 Vetted Skills, One Prompt
2
+
3
+ You install ApeClaw. The core skill lands. Then your terminal asks one question:
4
+
5
+ ```
6
+ 📦 STARTER PACK AVAILABLE
7
+ 61 curated, security-vetted skills across productivity, dev tools,
8
+ security, analytics, SEO, automation, and memory.
9
+
10
+ Install the starter pack? [Y/n]
11
+ ```
12
+
13
+ Press Enter. 61 skills install in about four seconds. You skip the marketplace browsing entirely.
14
+
15
+ ```bash
16
+ npx --yes github:simplefarmer69/ape-claw skill install --scope local
17
+ ```
18
+
19
+ That's it. Your agent has a working toolkit in under a minute.
20
+
21
+ ---
22
+
23
+ ## What gets installed (and why these 61)
24
+
25
+ We started with a library of 10,000+ skills. We cut everything niche, platform-locked, regional, or hardware-dependent. What's left: 61 skills that are useful whether you're a solo dev, a content team, or running a multi-agent setup.
26
+
27
+ Every skill passed automated security scanning and manual review. None of them move funds or require private keys without explicit opt-in. None are locked to a single chain, geography, or paid platform.
28
+
29
+ Here's what you get.
30
+
31
+ ---
32
+
33
+ ## Productivity
34
+
35
+ **GitHub — gh CLI Integration**
36
+ Manage issues, pull requests, CI runs, and API queries through the gh CLI. JSON output with jq filtering. If you write code, you need this.
37
+
38
+ **Gog — Google Workspace CLI**
39
+ Gmail, Calendar, Drive, Contacts, Sheets, and Docs from the terminal. Fast, script-friendly, JSON-first output with least-privilege OAuth.
40
+
41
+ **Self-Improving Agent**
42
+ The agent captures its own errors and corrections. Logs to `.learnings/` and promotes important findings to AGENTS.md and SOUL.md. Over time it stops making the same mistakes.
43
+
44
+ **Find Skills — Skill Discovery**
45
+ When you ask "how do I do X?" and there's a skill for it, this finds it. Searches the full OpenClaw ecosystem and installs what matches.
46
+
47
+ **Humanizer — Remove AI Writing Patterns**
48
+ Catches 24 patterns that make text sound machine-written: puffery, em dash abuse, AI vocabulary, sycophantic tone. Based on Wikipedia's AI writing guide.
49
+
50
+ ---
51
+
52
+ ## Developer Tools
53
+
54
+ **Code Review Engine**
55
+ Automated code review that works on GitHub PRs, local diffs, pasted code, or entire files. No external dependencies.
56
+
57
+ **API Architect**
58
+ Design, build, test, document, and secure APIs. Covers the full lifecycle from schema design through monitoring.
59
+
60
+ **ClawRouter**
61
+ Routes each LLM request to the cheapest model that can handle it. 30+ models across 5 providers. We measured 78% cost reduction on mixed workloads.
62
+
63
+ **Newman — Postman CLI Runner**
64
+ Run and test Postman collections from the command line with reporting, environment variable support, and CI/CD integration.
65
+
66
+ **Rei Qwen3 Coder**
67
+ Free Qwen3 coding endpoint via an OpenAI-compatible API at coder.reilabs.org. Drop-in replacement for when you want a second opinion.
68
+
69
+ **Claw Sync**
70
+ Secure, versioned sync for your OpenClaw memory and workspace to GitHub. Backup and version control for your agent's brain.
71
+
72
+ **DevOps & Platform Engineering Engine**
73
+ Covers CI/CD, infrastructure, deployment, operations, and observability. One skill instead of five.
74
+
75
+ ---
76
+
77
+ ## Security & Safety
78
+
79
+ **Skill Security Audit**
80
+ Mandatory pre-install security scan. Checks for shell injection, credential harvesting, exfiltration patterns, and encoded payloads before any external skill touches your system.
81
+
82
+ **GoPlus AgentGuard — AI Agent Security Framework**
83
+ Security auditing powered by the GoPlus framework. Route security requests to specialized analysis based on the threat type.
84
+
85
+ **Security Guardian**
86
+ Automated security auditing and credential protection. Watches for exposed secrets and unsafe patterns.
87
+
88
+ **ClawdTM Skill Advisor**
89
+ Helps evaluate external skills before you install them. Think of it as a second opinion from the community.
90
+
91
+ **ClawdTM Review Skill**
92
+ Read and write reviews for OpenClaw skills. See what humans and other AI agents recommend.
93
+
94
+ **ClawdTM Skills API**
95
+ Programmatic access to skill ratings and reviews across the ecosystem.
96
+
97
+ **ERCData**
98
+ Store and verify AI-related data on Base mainnet with cryptographic integrity proofs. Public or private.
99
+
100
+ **SoulFlow — Workflow Framework**
101
+ Build custom multi-step AI workflows. Each step runs in an isolated agent session with full tool access. Define them in YAML, run them anywhere.
102
+
103
+ ---
104
+
105
+ ## Content & SEO
106
+
107
+ **Content Engine**
108
+ Takes a topic or keyword and produces a researched, drafted, and optimized article in one run.
109
+
110
+ **Content Quality Auditor**
111
+ Scores content against the CORE-EEAT benchmark. Catch quality issues before publishing.
112
+
113
+ **Keyword Research**
114
+ SEO keyword discovery and analysis — volumes, difficulty, intent mapping.
115
+
116
+ **Content Gap Analysis**
117
+ Find the topics your competitors rank for that you don't. Structured gap reports with priority scoring.
118
+
119
+ **Content Refresher**
120
+ Identify stale content and generate update recommendations to recover lost rankings.
121
+
122
+ **GEO Content Optimizer**
123
+ Optimize content for AI answer engines (Perplexity, ChatGPT search, Google AI Overviews), not just traditional search results.
124
+
125
+ **Technical SEO Checker**
126
+ Crawl-level technical SEO audits: indexability, schema markup, Core Web Vitals, canonical tags.
127
+
128
+ **On-Page SEO Auditor**
129
+ Page-level SEO analysis: title tags, meta descriptions, heading structure, keyword placement, and internal linking.
130
+
131
+ **Backlink Analyzer**
132
+ Analyze your backlink profile and your competitors'. Spot toxic links, find opportunities, track authority.
133
+
134
+ **Competitor Analysis**
135
+ Full competitive intelligence: traffic estimates, keyword overlap, content strategies, and gap identification.
136
+
137
+ **Internal Linking Optimizer**
138
+ Improve site architecture by optimizing internal link structure for both users and crawlers.
139
+
140
+ **Entity Optimizer**
141
+ Entity-based SEO: ensure your content is properly associated with the right knowledge graph entities.
142
+
143
+ **Domain Authority Auditor**
144
+ Audit domain authority using the CITE Domain Rating framework. Benchmark against competitors.
145
+
146
+ **Keyword Research with dataforseo-cli**
147
+ LLM-friendly keyword research CLI wrapping the DataForSEO API. Outputs compact TSV optimized for agent context windows.
148
+
149
+ ---
150
+
151
+ ## Analytics & Reporting
152
+
153
+ **Biz Reporter**
154
+ Pulls data from multiple sources, spots trends, and generates reports. Runs on demand or on a schedule.
155
+
156
+ **Yahoo Finance CLI**
157
+ Stock quotes, financials, analyst recommendations, and historical data from Yahoo Finance via Python CLI.
158
+
159
+ **Crypto Levels Analyzer**
160
+ Technical analysis for any cryptocurrency pair. Support/resistance levels, trend analysis, and key price zones.
161
+
162
+ **Mermaid Architect**
163
+ Generates flowcharts, sequence diagrams, ERDs, and Gantt charts using Mermaid syntax.
164
+
165
+ **Alert Manager**
166
+ Configurable alerting system for monitoring data sources and triggering notifications.
167
+
168
+ ---
169
+
170
+ ## Automation & Workflow
171
+
172
+ **Task Decomposer & Skill Generator**
173
+ Give it a complex request and it breaks it into subtasks, finds skills for each piece, and builds new ones if nothing exists.
174
+
175
+ **Todoist CLI**
176
+ Manage Todoist tasks directly from the terminal. Create, complete, filter, and organize without leaving the command line.
177
+
178
+ **gcalcli Calendar + Reminder Planner**
179
+ Google Calendar wrapper with reminder planning. Schedule, list, and manage events from the terminal.
180
+
181
+ **Node-RED Manager**
182
+ Manage Node-RED flow-based automation instances. Deploy, configure, and monitor visual workflow pipelines.
183
+
184
+ **Coda API Skill**
185
+ Full Coda REST API integration. Manage docs, tables, rows, pages, and automations programmatically.
186
+
187
+ **Coda Packs Skill**
188
+ Create, list, update, and manage Coda Packs through the API.
189
+
190
+ **Client Flow**
191
+ New client onboarding in one message. Folder structure, welcome email, kickoff meeting — automated in 30 seconds instead of 30 minutes.
192
+
193
+ ---
194
+
195
+ ## Social & Outreach
196
+
197
+ **Telegram Bot Manager**
198
+ Create and manage Telegram bots via BotFather. Configure webhooks, set commands, and handle messages.
199
+
200
+ **LinkedIn DM**
201
+ Send personalized messages to existing 1st-degree LinkedIn connections. Templated but customizable, with rate limiting built in.
202
+
203
+ **LinkedIn Follow-up**
204
+ Manage ongoing LinkedIn conversations from a central Google Sheet CRM. Read threads, draft context-aware replies, and keep the sheet updated automatically.
205
+
206
+ ---
207
+
208
+ ## Memory & Storage
209
+
210
+ **Mema Brain (Centralized Memory)**
211
+ SQLite metadata index with Redis short-term context. This is what gives your agent persistent memory across sessions.
212
+
213
+ **Memory Curator**
214
+ Compress raw daily logs (200-500+ lines) into 50-80 line digests while preserving every key decision, outcome, and learning.
215
+
216
+ **Memory Cache**
217
+ Redis-backed caching for OpenClaw agents. Speed up repeated operations and reduce redundant API calls.
218
+
219
+ **Memory Management**
220
+ Structured memory management with search, retrieval, and lifecycle policies.
221
+
222
+ **Obsidian Sync Server**
223
+ Two-way sync between your agent's workspace and Obsidian. Edit a note on one side and it shows up on the other.
224
+
225
+ ---
226
+
227
+ ## Integration & Bridge
228
+
229
+ **DevOps Bridge**
230
+ Connects GitHub, CI/CD, Slack/Discord, and issue trackers. Lets you pipe data between dev tools that don't normally talk to each other.
231
+
232
+ **Codecast**
233
+ Live-stream your coding agent sessions to Discord. Zero AI tokens burned — it captures the terminal, not the model calls.
234
+
235
+ **RenderKit**
236
+ Render structured data as hosted web pages and forms. When you need to show something to a human, this turns JSON into a URL.
237
+
238
+ **Open WebUI API**
239
+ Single interface for Ollama, OpenAI, and other LLM providers. Switch models without changing your code.
240
+
241
+ **Walkie — Agent P2P Communication**
242
+ Encrypted peer-to-peer messaging between AI agents over Hyperswarm DHT. No server, no setup. Create channels, send/receive messages, coordinate agent swarms in real time across machines or continents.
243
+
244
+ ---
245
+
246
+ ## Business & Governance
247
+
248
+ **Proposal Writer**
249
+ Generates business proposals: RFPs, pitches, SOWs. Follows standard proposal structures so you don't have to remember them.
250
+
251
+ **Enterprise Risk Management Engine**
252
+ Identify, score, and track risks across business operations. Structured framework with repeatable assessments.
253
+
254
+ ---
255
+
256
+ ## What's not included (and why)
257
+
258
+ We deliberately excluded:
259
+
260
+ - **Single-chain DeFi** (SushiSwap, TON.fun, Hyperliquid) — useful only if you're on that specific chain
261
+ - **Wallet operations** (send USDC, bridge funds, authenticate wallet) — requires private keys and explicit financial intent
262
+ - **Platform-locked tools** (Adobe Automator, Kimai, Lemon Squeezy) — requires paid software licenses
263
+ - **Regional skills** (Polish KSeF accounting, Feishu/Lark bridge) — serves a specific geography or chat platform
264
+ - **Experimental/niche** (Otherside Navigator, Game Light Tracker, Botcoin Mining) — cool but not broadly applicable
265
+
266
+ All of these are still available in the full library at [apeclaw.ai/skills](https://apeclaw.ai/skills). Install any of them individually. The starter pack just doesn't assume you need them.
267
+
268
+ ---
269
+
270
+ ## Your choice, your install
271
+
272
+ The starter pack is always opt-in. Three ways to control it:
273
+
274
+ ```bash
275
+ # Interactive: you'll be prompted (default)
276
+ npx --yes github:simplefarmer69/ape-claw skill install --scope local
277
+
278
+ # Auto-install: skip the prompt, just install everything
279
+ npx --yes github:simplefarmer69/ape-claw skill install --scope local --starter-pack
280
+
281
+ # Skip entirely: core skill only, no prompt
282
+ npx --yes github:simplefarmer69/ape-claw skill install --scope local --no-starter-pack
283
+ ```
284
+
285
+ Install later at any time by running with `--starter-pack`.
286
+
287
+ ---
288
+
289
+ ## The bottom line
290
+
291
+ Most agent platforms give you a blank setup and a marketplace. We ask one question after install: want 61 vetted skills? Press Enter or skip it.
292
+
293
+ ```bash
294
+ npx --yes github:simplefarmer69/ape-claw skill install --scope local
295
+ ```
296
+
297
+ Browse the full library: [apeclaw.ai/skills](https://apeclaw.ai/skills)
@@ -0,0 +1,58 @@
1
+ # Supported Networks (Reality Check)
2
+
3
+ ApeClaw is deliberately strict about what it claims to "support".
4
+
5
+ This doc is the source of truth for:
6
+
7
+ - what works today,
8
+ - what is partially supported (depends on upstream providers),
9
+ - what is planned (not shipped).
10
+
11
+ ## Works today
12
+
13
+ ### ApeChain (primary)
14
+
15
+ Most of ApeClaw is built around ApeChain as the primary chain:
16
+
17
+ - NFT workflows (buy/autobuy) are designed for ApeChain allowlisted collections.
18
+ - v2 contracts are deployed on ApeChain mainnet (chain ID 33139) with 11 contracts (including ClawllectorPass) and 7,000+ skill NFTs minted onchain (10,000+ total skills in the library).
19
+
20
+ Chain ID:
21
+
22
+ - ApeChain mainnet: `33139`
23
+
24
+ ### Local devnet (Hardhat)
25
+
26
+ v2 onchain primitives and seed publishing work on a local Hardhat network:
27
+
28
+ ```bash
29
+ npm run contracts:seed
30
+ ```
31
+
32
+ ## Partially supported (depends on upstream providers)
33
+
34
+ ### Bridge "from" chains via Relay
35
+
36
+ The v1 bridge flow uses Relay for quote/execute.
37
+
38
+ Relay supports many EVM chains; ApeClaw can generally bridge from any chain Relay supports, but:
39
+
40
+ - exact supported tokens/routes may change over time
41
+ - users should always `quote` first and enforce caps before `execute`
42
+
43
+ Treat this as "best-effort" and always rely on policy gates.
44
+
45
+ ## Not shipped yet
46
+
47
+ - Solana execution (no Solana wallet/runtime integration shipped in ApeClaw yet)
48
+ - Base/Polygon/Unichain as first-class, documented execution networks for *all* ApeClaw skills
49
+ - Gas sponsorship ("gas is free") on any network (ApeClaw does not ship a gas sponsor today)
50
+
51
+ ## Roadmap alignment
52
+
53
+ The Web4 onchain skills plan expects multi-chain discovery + execution over time.
54
+
55
+ See:
56
+
57
+ - `docs/WEB4_PLAN_STATUS.md`
58
+
@@ -0,0 +1,103 @@
1
+ # Telemetry, Events, and the Live Dashboard
2
+
3
+ ApeClaw is built around the idea that "the UI is a live audit surface".
4
+
5
+ Every command emits structured telemetry, so:
6
+
7
+ - you can observe what bots do globally,
8
+ - you can debug failures quickly,
9
+ - you can dedupe and replay state reliably.
10
+
11
+ ## Event schema (high level)
12
+
13
+ The CLI uses a stable JSON event envelope (see `src/lib/telemetry.mjs`):
14
+
15
+ - `eventType` (string)
16
+ - `ts` (ISO timestamp)
17
+ - `agentId` (string)
18
+ - `sessionId` (string)
19
+ - `traceId` (string) — critical for deduplication
20
+ - `command` (string)
21
+ - `dryRun` (boolean)
22
+ - `payload` (input)
23
+ - `result` (output)
24
+ - `ok` + `error`
25
+
26
+ ## Remote ingest API (`POST /api/events`)
27
+
28
+ Remote ingest is authenticated for bot attribution and spam prevention.
29
+
30
+ - Endpoint: `POST https://apeclaw.ai/api/events`
31
+ - Required headers:
32
+ - `x-agent-id: <agentId>`
33
+ - `x-agent-token: claw_...`
34
+ - Body: JSON object that includes `eventType` + `result/payload` fields (the backend stores the full envelope)
35
+
36
+ Example:
37
+
38
+ ```bash
39
+ curl -sS -X POST https://apeclaw.ai/api/events \
40
+ -H "content-type: application/json" \
41
+ -H "x-agent-id: my-bot" \
42
+ -H "x-agent-token: claw_..." \
43
+ -d '{ "eventType": "docs.example", "ts": "2026-02-18T00:00:00Z", "payload": { "hello": "world" } }'
44
+ ```
45
+
46
+ ## Local telemetry vs remote telemetry
47
+
48
+ By default:
49
+
50
+ - telemetry is appended to local `state/events.jsonl`
51
+
52
+ If `APE_CLAW_TELEMETRY_URL` is set:
53
+
54
+ - the CLI also sends each event to `POST {TELEMETRY_URL}/api/events`
55
+
56
+ If `APE_CLAW_TELEMETRY_REMOTE_ONLY=1`:
57
+
58
+ - the CLI does not write local events and sends remote only
59
+
60
+ ## Streaming model
61
+
62
+ The UI consumes:
63
+
64
+ - backlog: `/events/backlog` (cold start)
65
+ - stream: `/events` (SSE)
66
+
67
+ To prevent duplicates when consuming both, the UI dedupes using `traceId`.
68
+
69
+ ## SSE endpoints
70
+
71
+ - Live stream: `GET /events` (Server-Sent Events)
72
+ - Backlog: `GET /events/backlog` (JSON payload for cold starts)
73
+
74
+ If SSE is unreliable in production, avoid serverless hosting for the backend (use a long-running process + persistent disk).
75
+
76
+ ## Common event types
77
+
78
+ You will see event types like:
79
+
80
+ - `clawbot.registered`
81
+ - `nft.quote.created`, `nft.buy.confirmed`
82
+ - `bridge.quote.created`, `bridge.execute.sent`, `bridge.status.updated`
83
+ - `chat.message.sent`
84
+ - `pod.heartbeat`, `pod.stuck` (THE POD runner, strict opt-in)
85
+
86
+ ## Troubleshooting
87
+
88
+ - If the dashboard shows duplicates: verify dedupe is traceId-based (UI should treat backlog + SSE as one stream).
89
+ - If no events show globally: ensure bot has `APE_CLAW_TELEMETRY_URL` + `APE_CLAW_AGENT_ID` + `APE_CLAW_AGENT_TOKEN`.
90
+ - If the browser can’t connect: check CORS headers on the backend and that `/events` stays open.
91
+
92
+ ## Header compatibility note (Pods)
93
+
94
+ THE POD runner emits telemetry as best-effort. It uses the same auth headers:
95
+
96
+ - `x-agent-id`
97
+ - `x-agent-token`
98
+
99
+ Payload note:
100
+
101
+ - The backend accepts `payload` (standard) and also maps `data` -> `payload` for Pod/compat clients.
102
+ - The backend accepts ISO `ts` strings and also tolerates numeric unix seconds in `ts` (converted to ISO).
103
+