@termix-it/cryptoclaw 1.0.1 → 1.0.2
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.
- package/CHANGELOG.md +93 -93
- package/assets/favicon.svg +22 -0
- package/dist/{acp-cli-Bsrf851G.js → acp-cli-CBFKSvET.js} +2 -2
- package/dist/{acp-cli-C9D24JzU.js → acp-cli-CEPAR8vh.js} +2 -2
- package/dist/{agent-BH-rLX4t.js → agent-8dTCwA-D.js} +2 -2
- package/dist/{agent-mns7e_gL.js → agent-sjalTGVA.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CUOi5M0r.js → channel-options-B951pKy8.js} +1 -1
- package/dist/{channel-options-B3XNSAJG.js → channel-options-DJsSCLD8.js} +1 -1
- package/dist/{channels-cli-BRxxmnVq.js → channels-cli-Fv9FTQXn.js} +6 -6
- package/dist/{channels-cli-xTlvzb2Z.js → channels-cli-Lq6EWRJ9.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-B7NiNFc2.js → cli-Bzyu6rQE.js} +2 -2
- package/dist/{cli-6yV4qEGI.js → cli-DJnpasWd.js} +2 -2
- package/dist/{command-options-DeWanQ_1.js → command-options-DBpEhnW5.js} +1 -1
- package/dist/{completion-cli-DyiCPCwN.js → completion-cli-Bd5FrGHg.js} +25 -25
- package/dist/{completion-cli-BIA4Amxj.js → completion-cli-Cs-B1hk7.js} +1 -1
- package/dist/{config-guard-C4vrsjgm.js → config-guard-Csl9Ubn5.js} +36 -36
- package/dist/{configure-BupCndyG.js → configure-CeTzu0Ed.js} +14 -14
- package/dist/{configure-B28_m98z.js → configure-CxPJaP8X.js} +14 -14
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/{index-DQ-7PWhX.js → index-BdjmXlOn.js} +372 -363
- package/dist/control-ui/assets/index-BdjmXlOn.js.map +1 -0
- package/dist/control-ui/assets/{index-nlpH70Eh.css → index-BxkHytum.css} +1 -1
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +4 -4
- package/dist/control-ui/index.html +2 -2
- package/dist/{cron-cli-CaCwFGvb.js → cron-cli-D8gKivN0.js} +2 -2
- package/dist/{cron-cli-v8FMB7_N.js → cron-cli-yC5Cy77c.js} +2 -2
- package/dist/{daemon-cli-JZ9ONoBh.js → daemon-cli-BM8zb09s.js} +5 -5
- package/dist/{daemon-cli-D24Obngu.js → daemon-cli-D8AC0Q_A.js} +5 -5
- package/dist/{deps-DY5l__pK.js → deps-BhcPiVuz.js} +1 -1
- package/dist/{deps-BDQ4UyT5.js → deps-ZGqhOjkR.js} +1 -1
- package/dist/{directory-cli-B8IA2RSF.js → directory-cli--IOOMz66.js} +2 -2
- package/dist/{directory-cli-C9y2B84i.js → directory-cli-DGFlpQ4T.js} +2 -2
- package/dist/{dns-cli-DoO4a6op.js → dns-cli-DkhYuREi.js} +2 -2
- package/dist/{dns-cli-DJUkN_WU.js → dns-cli-fQ4wu1HJ.js} +2 -2
- package/dist/{docs-cli-CcQ9shjL.js → docs-cli-BgnDzmFT.js} +5 -5
- package/dist/{docs-cli-CPus_TqL.js → docs-cli-CPaJzUSD.js} +5 -5
- package/dist/{doctor-D3VWObNR.js → doctor-D6M3Hc0a.js} +3 -3
- package/dist/{doctor-ClJURW58.js → doctor-DRRL31R4.js} +3 -3
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-DC9v48w9.js → exec-approvals-cli-BhEdzGao.js} +3 -3
- package/dist/{exec-approvals-cli-Djev4HNk.js → exec-approvals-cli-DHMroOAh.js} +3 -3
- package/dist/extensionAPI.js +8 -8
- package/dist/{gateway-cli-CHZrqsVp.js → gateway-cli-CbQ4xoXp.js} +14 -14
- package/dist/{gateway-cli--xOlaN5f.js → gateway-cli-DO7lIBZ5.js} +15 -15
- package/dist/{github-copilot-auth-CLh6feLw.js → github-copilot-auth-D6I2MUxi.js} +1 -1
- package/dist/{github-copilot-auth-CeBZ5KDq.js → github-copilot-auth-DvShXmvU.js} +1 -1
- package/dist/{health-format-QWTDdHdV.js → health-format-DlvTEKqI.js} +1 -1
- package/dist/{health-format-D0ylScGO.js → health-format-SZpheYuf.js} +1 -1
- package/dist/hooks/bundled/boot-md/HOOK.md +1 -1
- package/dist/hooks/bundled/command-logger/HOOK.md +1 -1
- package/dist/hooks/bundled/session-memory/HOOK.md +1 -1
- package/dist/hooks/bundled/soul-evil/HOOK.md +1 -1
- package/dist/{hooks-cli-IS7KFMZy.js → hooks-cli-CedlcxxR.js} +4 -4
- package/dist/{hooks-cli-C9066q7q.js → hooks-cli-DRarvOK2.js} +4 -4
- package/dist/index.js +38 -38
- package/dist/{links-DXtV_A64.js → links-Dv1EDiwa.js} +1 -1
- package/dist/{links-KcaRpMJg.js → links-kbubTyay.js} +1 -1
- package/dist/{loader-BNqYr2Am.js → loader-DE_vKAH5.js} +10 -10
- package/dist/{logs-cli-BRQOdLoD.js → logs-cli-_DHuOrR4.js} +2 -2
- package/dist/{logs-cli-D08L6RIX.js → logs-cli-emy-Mg4S.js} +2 -2
- package/dist/{models-cli-CovM2RsI.js → models-cli-CdrDfutq.js} +4 -4
- package/dist/{models-cli-D0bxf-ID.js → models-cli-CgIqfTHx.js} +4 -4
- package/dist/{node-cli-whSrpDNN.js → node-cli-Bsn9lQ6O.js} +2 -2
- package/dist/{node-cli-DoMmvbg-.js → node-cli-Ckvs6bcI.js} +2 -2
- package/dist/{nodes-cli-CeMIAaHZ.js → nodes-cli-BELOAYB6.js} +2 -2
- package/dist/{nodes-cli-DRmkJeRw.js → nodes-cli-CTQPoAcf.js} +2 -2
- package/dist/{onboard-channels-uZ5vLniX.js → onboard-channels-B5qHfMk8.js} +2 -2
- package/dist/{onboard-channels-xteKATz4.js → onboard-channels-BgchLTab.js} +2 -2
- package/dist/{onboard-skills-tUnJDYV8.js → onboard-skills-CyG0xbsu.js} +7 -7
- package/dist/{onboard-skills-CKpZ4Xwu.js → onboard-skills-DEnuz7z3.js} +7 -7
- package/dist/{onboarding-DX15S5UW.js → onboarding-B6aTF0nd.js} +18 -18
- package/dist/{pairing-cli-Oq8UZJRJ.js → pairing-cli-C_PnyRzK.js} +2 -2
- package/dist/{pairing-cli-B7Bji_j_.js → pairing-cli-CocCRLzF.js} +2 -2
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/{plugins-cli-BVoSu7m7.js → plugins-cli-DB1NYN9W.js} +5 -5
- package/dist/{plugins-cli-ChkSbzKF.js → plugins-cli-Dn9I2nvT.js} +5 -5
- package/dist/{program-DpxSYPmu.js → program-CL1V1uQh.js} +18 -18
- package/dist/{register.subclis-DG215F73.js → register.subclis-Bf9yES9h.js} +26 -26
- package/dist/{reply-3TWXjNUA.js → reply-qWVVjmhR.js} +10 -10
- package/dist/{run-main-D43qwCZX.js → run-main-C12Z921D.js} +19 -19
- package/dist/{sandbox-cli-BPdnq1hk.js → sandbox-cli-DVfJ38Q2.js} +4 -4
- package/dist/{sandbox-cli-a3oEVi7W.js → sandbox-cli-DqrtTHAP.js} +4 -4
- package/dist/{security-cli-Devsjfv_.js → security-cli-2AAajc4y.js} +2 -2
- package/dist/{security-cli-C1XbzHNF.js → security-cli-YL2ZTkkR.js} +2 -2
- package/dist/{server-node-events-BVLdeCJU.js → server-node-events-uUSBf7hZ.js} +4 -4
- package/dist/{server-node-events-DLZj55Ir.js → server-node-events-x6ZMjAs1.js} +4 -4
- package/dist/{skills-cli-DnSEVLxn.js → skills-cli-CYZbvr7O.js} +2 -2
- package/dist/{skills-cli-g1nC-Yz9.js → skills-cli-eDUNGpwb.js} +2 -2
- package/dist/{status-D09U-Iku.js → status-BnbwLzB2.js} +1 -1
- package/dist/{status-1TQxVU1M.js → status-CN2V3fan.js} +18 -18
- package/dist/{status-CbMg399g.js → status-DCrBN9vJ.js} +1 -1
- package/dist/{system-cli-D3UizeGy.js → system-cli-BEmIixtY.js} +2 -2
- package/dist/{system-cli-DJ_e6msK.js → system-cli-ZxnlO0-v.js} +2 -2
- package/dist/{tui-cli-PKJ39Zsl.js → tui-cli-B9iCyCn2.js} +2 -2
- package/dist/{tui-cli-DPhl5a66.js → tui-cli-iakTIAvk.js} +2 -2
- package/dist/{update-cli-C5x50A17.js → update-cli-DUO4CVNB.js} +12 -12
- package/dist/{update-cli-DKLyK_Tu.js → update-cli-DlXzjuIc.js} +11 -11
- package/dist/{update-runner-DotP-T6Y.js → update-runner-L1EJYQRF.js} +2 -2
- package/dist/{update-runner-vOge0-Wj.js → update-runner-eJ773fp-.js} +2 -2
- package/dist/{webhooks-cli-DEqtDAwW.js → webhooks-cli-BLHZn_at.js} +2 -2
- package/dist/{webhooks-cli-ORjumqe4.js → webhooks-cli-UhujyhVU.js} +2 -2
- package/docs/assets/pixel-lobster.svg +3 -3
- package/docs/blockchain/aave.md +72 -0
- package/docs/blockchain/agent-identity.md +73 -0
- package/docs/blockchain/contracts.md +96 -0
- package/docs/blockchain/defi.md +61 -0
- package/docs/blockchain/index.md +92 -0
- package/docs/blockchain/market-data.md +98 -0
- package/docs/blockchain/nft.md +44 -0
- package/docs/blockchain/portfolio.md +57 -0
- package/docs/blockchain/security.md +83 -0
- package/docs/blockchain/swap.md +89 -0
- package/docs/blockchain/wallet.md +77 -0
- package/docs/concepts/features.md +29 -10
- package/docs/docs.json +76 -6
- package/docs/index.md +44 -44
- package/docs/start/getting-started.md +10 -9
- package/docs/zh-CN/blockchain/aave.md +63 -0
- package/docs/zh-CN/blockchain/agent-identity.md +62 -0
- package/docs/zh-CN/blockchain/contracts.md +64 -0
- package/docs/zh-CN/blockchain/defi.md +49 -0
- package/docs/zh-CN/blockchain/index.md +92 -0
- package/docs/zh-CN/blockchain/market-data.md +68 -0
- package/docs/zh-CN/blockchain/nft.md +43 -0
- package/docs/zh-CN/blockchain/portfolio.md +49 -0
- package/docs/zh-CN/blockchain/security.md +75 -0
- package/docs/zh-CN/blockchain/swap.md +68 -0
- package/docs/zh-CN/blockchain/wallet.md +71 -0
- package/extensions/voice-call/README.md +2 -2
- package/extensions/voice-call/src/cli.ts +1 -1
- package/package.json +1 -1
- package/dist/control-ui/assets/index-DQ-7PWhX.js.map +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Create, import, and manage blockchain wallets with AES-256-GCM encrypted keystore."
|
|
3
|
+
title: "Wallet Management"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Wallet Management
|
|
7
|
+
|
|
8
|
+
CryptoClaw provides secure wallet management for interacting with EVM-compatible blockchains. All wallets are stored locally with AES-256-GCM encryption.
|
|
9
|
+
|
|
10
|
+
## Supported operations
|
|
11
|
+
|
|
12
|
+
| Tool | Description | Confirmation |
|
|
13
|
+
| --------------- | --------------------------------------------- | :----------: |
|
|
14
|
+
| `wallet_create` | Generate a new wallet with encrypted keystore | |
|
|
15
|
+
| `wallet_list` | List all stored wallets and active wallet | |
|
|
16
|
+
| `wallet_switch` | Switch the active wallet | |
|
|
17
|
+
| `wallet_delete` | Remove a wallet from keystore | Yes |
|
|
18
|
+
| `wallet_import` | Import a wallet from private key (CLI only) | |
|
|
19
|
+
| `wallet_export` | Export wallet private key (CLI only) | |
|
|
20
|
+
|
|
21
|
+
<Warning>
|
|
22
|
+
Import and export operations are restricted to the CLI for security. They cannot be triggered through chat channels.
|
|
23
|
+
</Warning>
|
|
24
|
+
|
|
25
|
+
## Creating a wallet
|
|
26
|
+
|
|
27
|
+
Ask the agent to create a wallet, or use the CLI:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cryptoclaw onboard --wallet
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The agent will:
|
|
34
|
+
|
|
35
|
+
1. Generate a new keypair
|
|
36
|
+
2. Encrypt the private key with your passphrase (AES-256-GCM, scrypt KDF)
|
|
37
|
+
3. Store it in `~/.cryptoclaw/wallets/`
|
|
38
|
+
4. Return the public address
|
|
39
|
+
|
|
40
|
+
## Checking balances
|
|
41
|
+
|
|
42
|
+
Ask the agent to check your balance on any supported network:
|
|
43
|
+
|
|
44
|
+
- "What's my BNB balance?"
|
|
45
|
+
- "Show my ETH balance on Ethereum"
|
|
46
|
+
- "Check USDT balance on Polygon"
|
|
47
|
+
|
|
48
|
+
The agent uses `get_native_balance` and `get_erc20_balance` tools to query on-chain data.
|
|
49
|
+
|
|
50
|
+
## Wallet storage
|
|
51
|
+
|
|
52
|
+
Wallets are stored at `~/.cryptoclaw/wallets/` with the following structure:
|
|
53
|
+
|
|
54
|
+
- **Keystore file**: AES-256-GCM encrypted private key with scrypt-derived key
|
|
55
|
+
- **File permissions**: `0600` (owner read/write only)
|
|
56
|
+
- **Metadata**: Address, creation date, label
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
Wallet settings are part of the CryptoClaw configuration at `~/.cryptoclaw/cryptoclaw.json`:
|
|
61
|
+
|
|
62
|
+
```json5
|
|
63
|
+
{
|
|
64
|
+
blockchain: {
|
|
65
|
+
defaultNetwork: "bsc", // Default chain for operations
|
|
66
|
+
walletDir: "wallets", // Relative to state dir
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Security
|
|
72
|
+
|
|
73
|
+
See [Transaction Security](/blockchain/security) for details on:
|
|
74
|
+
|
|
75
|
+
- Passphrase-based encryption
|
|
76
|
+
- Confirmation gates for state-changing operations
|
|
77
|
+
- Private key redaction from transcripts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
summary: "
|
|
2
|
+
summary: "CryptoClaw capabilities across channels, routing, blockchain, media, and UX."
|
|
3
3
|
read_when:
|
|
4
|
-
- You want a full list of what
|
|
4
|
+
- You want a full list of what CryptoClaw supports
|
|
5
5
|
title: "Features"
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -11,8 +11,8 @@ title: "Features"
|
|
|
11
11
|
<Card title="Channels" icon="message-square">
|
|
12
12
|
WhatsApp, Telegram, Discord, and iMessage with a single Gateway.
|
|
13
13
|
</Card>
|
|
14
|
-
<Card title="
|
|
15
|
-
|
|
14
|
+
<Card title="Blockchain" icon="link">
|
|
15
|
+
Wallet management, token swaps, DeFi, NFTs across 16+ EVM chains.
|
|
16
16
|
</Card>
|
|
17
17
|
<Card title="Routing" icon="route">
|
|
18
18
|
Multi-agent routing with isolated sessions.
|
|
@@ -30,24 +30,43 @@ title: "Features"
|
|
|
30
30
|
|
|
31
31
|
## Full list
|
|
32
32
|
|
|
33
|
+
### Messaging and channels
|
|
34
|
+
|
|
33
35
|
- WhatsApp integration via WhatsApp Web (Baileys)
|
|
34
36
|
- Telegram bot support (grammY)
|
|
35
37
|
- Discord bot support (channels.discord.js)
|
|
36
38
|
- Mattermost bot support (plugin)
|
|
37
39
|
- iMessage integration via local imsg CLI (macOS)
|
|
38
|
-
-
|
|
40
|
+
- Group chat support with mention based activation
|
|
41
|
+
- Media support for images, audio, and documents
|
|
42
|
+
- Optional voice note transcription hook
|
|
43
|
+
|
|
44
|
+
### Blockchain and crypto
|
|
45
|
+
|
|
46
|
+
- Encrypted wallet management (AES-256-GCM, scrypt KDF)
|
|
47
|
+
- Token swaps on PancakeSwap and Uniswap (V2/V3) across multiple chains
|
|
48
|
+
- DeFi position monitoring (Aave, PancakeSwap, Uniswap, Compound)
|
|
49
|
+
- Real-time market data via CoinGecko, DeFiLlama, and Dune Analytics
|
|
50
|
+
- Portfolio tracking with multi-wallet aggregation and USD valuation
|
|
51
|
+
- Smart contract deployment, interaction, and verification
|
|
52
|
+
- NFT management (ERC-721 and ERC-1155)
|
|
53
|
+
- AAVE V3 lending and borrowing on BSC
|
|
54
|
+
- On-chain agent identity registration via ERC-8004
|
|
55
|
+
- Transaction confirmation gates with spending limits
|
|
56
|
+
- Private key redaction from agent transcripts
|
|
57
|
+
- 16+ EVM chain support (BSC default)
|
|
58
|
+
|
|
59
|
+
### Agent and platform
|
|
60
|
+
|
|
61
|
+
- Agent bridge with tool streaming
|
|
39
62
|
- Streaming and chunking for long responses
|
|
40
63
|
- Multi-agent routing for isolated sessions per workspace or sender
|
|
41
64
|
- Subscription auth for Anthropic and OpenAI via OAuth
|
|
42
65
|
- Sessions: direct chats collapse into shared `main`; groups are isolated
|
|
43
|
-
- Group chat support with mention based activation
|
|
44
|
-
- Media support for images, audio, and documents
|
|
45
|
-
- Optional voice note transcription hook
|
|
46
66
|
- WebChat and macOS menu bar app
|
|
47
67
|
- iOS node with pairing and Canvas surface
|
|
48
68
|
- Android node with pairing, Canvas, chat, and camera
|
|
49
69
|
|
|
50
70
|
<Note>
|
|
51
|
-
|
|
52
|
-
coding agent path.
|
|
71
|
+
See the [Blockchain](/blockchain) section for detailed documentation on all crypto capabilities.
|
|
53
72
|
</Note>
|
package/docs/docs.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://mintlify.com/docs.json",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "CryptoClaw",
|
|
4
4
|
"theme": "mint",
|
|
5
5
|
"icons": {
|
|
6
6
|
"library": "lucide"
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
},
|
|
20
20
|
"favicon": "/assets/pixel-lobster.svg",
|
|
21
21
|
"colors": {
|
|
22
|
-
"primary": "#
|
|
23
|
-
"dark": "#
|
|
24
|
-
"light": "#
|
|
22
|
+
"primary": "#10B981",
|
|
23
|
+
"dark": "#10B981",
|
|
24
|
+
"light": "#34D399"
|
|
25
25
|
},
|
|
26
26
|
"navbar": {
|
|
27
27
|
"links": [
|
|
28
28
|
{
|
|
29
29
|
"label": "GitHub",
|
|
30
|
-
"href": "https://github.com/
|
|
30
|
+
"href": "https://github.com/TermiX-official/cryptoclaw",
|
|
31
31
|
"icon": "github"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"label": "Releases",
|
|
35
|
-
"href": "https://github.com/
|
|
35
|
+
"href": "https://github.com/TermiX-official/cryptoclaw/releases",
|
|
36
36
|
"icon": "package"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
@@ -769,6 +769,18 @@
|
|
|
769
769
|
{
|
|
770
770
|
"source": "/platforms/northflank",
|
|
771
771
|
"destination": "/install/northflank"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"source": "/wallet",
|
|
775
|
+
"destination": "/blockchain/wallet"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"source": "/defi",
|
|
779
|
+
"destination": "/blockchain/defi"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"source": "/swap",
|
|
783
|
+
"destination": "/blockchain/swap"
|
|
772
784
|
}
|
|
773
785
|
],
|
|
774
786
|
"navigation": {
|
|
@@ -988,6 +1000,35 @@
|
|
|
988
1000
|
}
|
|
989
1001
|
]
|
|
990
1002
|
},
|
|
1003
|
+
{
|
|
1004
|
+
"tab": "Blockchain",
|
|
1005
|
+
"groups": [
|
|
1006
|
+
{
|
|
1007
|
+
"group": "Overview",
|
|
1008
|
+
"pages": ["blockchain/index"]
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"group": "Wallet",
|
|
1012
|
+
"pages": ["blockchain/wallet", "blockchain/security"]
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"group": "DeFi",
|
|
1016
|
+
"pages": ["blockchain/defi", "blockchain/swap", "blockchain/aave"]
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"group": "Market & Data",
|
|
1020
|
+
"pages": ["blockchain/market-data", "blockchain/portfolio"]
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"group": "Smart Contracts",
|
|
1024
|
+
"pages": ["blockchain/contracts", "blockchain/nft"]
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"group": "Agent Identity",
|
|
1028
|
+
"pages": ["blockchain/agent-identity"]
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
991
1032
|
{
|
|
992
1033
|
"tab": "Models",
|
|
993
1034
|
"groups": [
|
|
@@ -1466,6 +1507,35 @@
|
|
|
1466
1507
|
}
|
|
1467
1508
|
]
|
|
1468
1509
|
},
|
|
1510
|
+
{
|
|
1511
|
+
"tab": "区块链",
|
|
1512
|
+
"groups": [
|
|
1513
|
+
{
|
|
1514
|
+
"group": "概览",
|
|
1515
|
+
"pages": ["zh-CN/blockchain/index"]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"group": "钱包",
|
|
1519
|
+
"pages": ["zh-CN/blockchain/wallet", "zh-CN/blockchain/security"]
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"group": "DeFi",
|
|
1523
|
+
"pages": ["zh-CN/blockchain/defi", "zh-CN/blockchain/swap", "zh-CN/blockchain/aave"]
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"group": "市场与数据",
|
|
1527
|
+
"pages": ["zh-CN/blockchain/market-data", "zh-CN/blockchain/portfolio"]
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"group": "智能合约",
|
|
1531
|
+
"pages": ["zh-CN/blockchain/contracts", "zh-CN/blockchain/nft"]
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"group": "代理身份",
|
|
1535
|
+
"pages": ["zh-CN/blockchain/agent-identity"]
|
|
1536
|
+
}
|
|
1537
|
+
]
|
|
1538
|
+
},
|
|
1469
1539
|
{
|
|
1470
1540
|
"tab": "模型",
|
|
1471
1541
|
"groups": [
|
package/docs/index.md
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
1
|
---
|
|
2
|
-
summary: "
|
|
2
|
+
summary: "CryptoClaw is a multi-channel AI assistant with native blockchain capabilities, running on any OS."
|
|
3
3
|
read_when:
|
|
4
|
-
- Introducing
|
|
5
|
-
title: "
|
|
4
|
+
- Introducing CryptoClaw to newcomers
|
|
5
|
+
title: "CryptoClaw"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# CryptoClaw
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
11
|
<img
|
|
12
12
|
src="/assets/openclaw-logo-text-dark.png"
|
|
13
|
-
alt="
|
|
13
|
+
alt="CryptoClaw"
|
|
14
14
|
width="500"
|
|
15
15
|
class="dark:hidden"
|
|
16
16
|
/>
|
|
17
17
|
<img
|
|
18
18
|
src="/assets/openclaw-logo-text.png"
|
|
19
|
-
alt="
|
|
19
|
+
alt="CryptoClaw"
|
|
20
20
|
width="500"
|
|
21
21
|
class="hidden dark:block"
|
|
22
22
|
/>
|
|
23
23
|
</p>
|
|
24
24
|
|
|
25
|
-
> _"EXFOLIATE! EXFOLIATE!"_ — A space lobster, probably
|
|
26
|
-
|
|
27
25
|
<p align="center">
|
|
28
|
-
<strong>
|
|
29
|
-
|
|
26
|
+
<strong>Multi-channel AI assistant with native blockchain capabilities.</strong><br />
|
|
27
|
+
Manage wallets, swap tokens, track portfolios, and chat across WhatsApp, Telegram, Discord, and more.
|
|
30
28
|
</p>
|
|
31
29
|
|
|
32
30
|
<Columns>
|
|
33
31
|
<Card title="Get Started" href="/start/getting-started" icon="rocket">
|
|
34
|
-
Install
|
|
32
|
+
Install CryptoClaw and bring up the Gateway in minutes.
|
|
35
33
|
</Card>
|
|
36
34
|
<Card title="Run the Wizard" href="/start/wizard" icon="sparkles">
|
|
37
|
-
Guided setup with `
|
|
35
|
+
Guided setup with `cryptoclaw onboard` and pairing flows.
|
|
38
36
|
</Card>
|
|
39
|
-
<Card title="
|
|
40
|
-
|
|
37
|
+
<Card title="Blockchain" href="/blockchain" icon="link">
|
|
38
|
+
Wallet management, DeFi, swaps, and multi-chain support.
|
|
41
39
|
</Card>
|
|
42
40
|
</Columns>
|
|
43
41
|
|
|
44
|
-
## What is
|
|
42
|
+
## What is CryptoClaw?
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
CryptoClaw is a **self-hosted AI assistant** that combines multi-channel messaging with native blockchain capabilities. It connects your chat apps — WhatsApp, Telegram, Discord, iMessage, and more — to an AI agent that can interact with 16+ EVM-compatible chains.
|
|
47
45
|
|
|
48
|
-
**Who is it for?**
|
|
46
|
+
**Who is it for?** Crypto-savvy developers and power users who want a personal AI assistant for both daily tasks and on-chain operations — without giving up control of their data or private keys.
|
|
49
47
|
|
|
50
48
|
**What makes it different?**
|
|
51
49
|
|
|
52
|
-
- **
|
|
50
|
+
- **Blockchain-native**: manage wallets, swap tokens, track portfolios, deploy contracts, and more
|
|
51
|
+
- **Self-hosted**: runs on your hardware, your rules — private keys never leave your machine
|
|
53
52
|
- **Multi-channel**: one Gateway serves WhatsApp, Telegram, Discord, and more simultaneously
|
|
54
53
|
- **Agent-native**: built for coding agents with tool use, sessions, memory, and multi-agent routing
|
|
55
|
-
- **Open source**: MIT licensed, community-driven
|
|
56
54
|
|
|
57
55
|
**What do you need?** Node 22+, an API key (Anthropic recommended), and 5 minutes.
|
|
58
56
|
|
|
@@ -61,14 +59,14 @@ OpenClaw is a **self-hosted gateway** that connects your favorite chat apps —
|
|
|
61
59
|
```mermaid
|
|
62
60
|
flowchart LR
|
|
63
61
|
A["Chat apps + plugins"] --> B["Gateway"]
|
|
64
|
-
B --> C["
|
|
62
|
+
B --> C["AI Agent"]
|
|
65
63
|
B --> D["CLI"]
|
|
66
64
|
B --> E["Web Control UI"]
|
|
67
|
-
B --> F["
|
|
68
|
-
B --> G["
|
|
65
|
+
B --> F["Blockchain tools"]
|
|
66
|
+
B --> G["Mobile nodes"]
|
|
69
67
|
```
|
|
70
68
|
|
|
71
|
-
The Gateway is the single source of truth for sessions, routing, and
|
|
69
|
+
The Gateway is the single source of truth for sessions, routing, channel connections, and blockchain operations.
|
|
72
70
|
|
|
73
71
|
## Key capabilities
|
|
74
72
|
|
|
@@ -76,14 +74,20 @@ The Gateway is the single source of truth for sessions, routing, and channel con
|
|
|
76
74
|
<Card title="Multi-channel gateway" icon="network">
|
|
77
75
|
WhatsApp, Telegram, Discord, and iMessage with a single Gateway process.
|
|
78
76
|
</Card>
|
|
79
|
-
<Card title="
|
|
80
|
-
|
|
77
|
+
<Card title="Wallet management" icon="wallet">
|
|
78
|
+
Create, import, and manage encrypted wallets across 16+ EVM chains.
|
|
79
|
+
</Card>
|
|
80
|
+
<Card title="Token swap" icon="arrow-left-right">
|
|
81
|
+
Swap on PancakeSwap and Uniswap with slippage protection.
|
|
82
|
+
</Card>
|
|
83
|
+
<Card title="DeFi & portfolio" icon="bar-chart-3">
|
|
84
|
+
Monitor DeFi positions, track holdings, and discover yields.
|
|
81
85
|
</Card>
|
|
82
|
-
<Card title="
|
|
83
|
-
|
|
86
|
+
<Card title="Smart contracts" icon="file-code">
|
|
87
|
+
Deploy, call, and verify contracts. Mint and manage NFTs.
|
|
84
88
|
</Card>
|
|
85
|
-
<Card title="
|
|
86
|
-
|
|
89
|
+
<Card title="Transaction security" icon="shield">
|
|
90
|
+
Confirmation gates, spending limits, and key redaction.
|
|
87
91
|
</Card>
|
|
88
92
|
<Card title="Web Control UI" icon="monitor">
|
|
89
93
|
Browser dashboard for chat, config, sessions, and nodes.
|
|
@@ -96,20 +100,20 @@ The Gateway is the single source of truth for sessions, routing, and channel con
|
|
|
96
100
|
## Quick start
|
|
97
101
|
|
|
98
102
|
<Steps>
|
|
99
|
-
<Step title="Install
|
|
103
|
+
<Step title="Install CryptoClaw">
|
|
100
104
|
```bash
|
|
101
|
-
npm install -g
|
|
105
|
+
npm install -g @termix-it/cryptoclaw
|
|
102
106
|
```
|
|
103
107
|
</Step>
|
|
104
108
|
<Step title="Onboard and install the service">
|
|
105
109
|
```bash
|
|
106
|
-
|
|
110
|
+
cryptoclaw onboard --install-daemon
|
|
107
111
|
```
|
|
108
112
|
</Step>
|
|
109
113
|
<Step title="Pair WhatsApp and start the Gateway">
|
|
110
114
|
```bash
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
cryptoclaw channels login
|
|
116
|
+
cryptoclaw gateway --port 18789
|
|
113
117
|
```
|
|
114
118
|
</Step>
|
|
115
119
|
</Steps>
|
|
@@ -123,15 +127,11 @@ Open the browser Control UI after the Gateway starts.
|
|
|
123
127
|
- Local default: http://127.0.0.1:18789/
|
|
124
128
|
- Remote access: [Web surfaces](/web) and [Tailscale](/gateway/tailscale)
|
|
125
129
|
|
|
126
|
-
<p align="center">
|
|
127
|
-
<img src="whatsapp-openclaw.jpg" alt="OpenClaw" width="420" />
|
|
128
|
-
</p>
|
|
129
|
-
|
|
130
130
|
## Configuration (optional)
|
|
131
131
|
|
|
132
|
-
Config lives at `~/.
|
|
132
|
+
Config lives at `~/.cryptoclaw/cryptoclaw.json`.
|
|
133
133
|
|
|
134
|
-
- If you **do nothing**,
|
|
134
|
+
- If you **do nothing**, CryptoClaw uses the bundled agent in RPC mode with per-sender sessions.
|
|
135
135
|
- If you want to lock it down, start with `channels.whatsapp.allowFrom` and (for groups) mention rules.
|
|
136
136
|
|
|
137
137
|
Example:
|
|
@@ -144,15 +144,15 @@ Example:
|
|
|
144
144
|
groups: { "*": { requireMention: true } },
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
|
-
messages: { groupChat: { mentionPatterns: ["@
|
|
147
|
+
messages: { groupChat: { mentionPatterns: ["@cryptoclaw"] } },
|
|
148
148
|
}
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
## Start here
|
|
152
152
|
|
|
153
153
|
<Columns>
|
|
154
|
-
<Card title="
|
|
155
|
-
|
|
154
|
+
<Card title="Blockchain" href="/blockchain" icon="link">
|
|
155
|
+
Wallet management, DeFi, swaps, NFTs, and multi-chain support.
|
|
156
156
|
</Card>
|
|
157
157
|
<Card title="Configuration" href="/gateway/configuration" icon="settings">
|
|
158
158
|
Core Gateway settings, tokens, and provider config.
|
|
@@ -175,7 +175,7 @@ Example:
|
|
|
175
175
|
|
|
176
176
|
<Columns>
|
|
177
177
|
<Card title="Full feature list" href="/concepts/features" icon="list">
|
|
178
|
-
Complete channel, routing, and media capabilities.
|
|
178
|
+
Complete channel, routing, blockchain, and media capabilities.
|
|
179
179
|
</Card>
|
|
180
180
|
<Card title="Multi-agent routing" href="/concepts/multi-agent" icon="route">
|
|
181
181
|
Workspace isolation and per-agent sessions.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
summary: "Get
|
|
2
|
+
summary: "Get CryptoClaw installed and run your first chat in minutes."
|
|
3
3
|
read_when:
|
|
4
4
|
- First time setup from zero
|
|
5
5
|
- You want the fastest path to a working chat
|
|
@@ -11,9 +11,9 @@ title: "Getting Started"
|
|
|
11
11
|
Goal: go from zero to a first working chat with minimal setup.
|
|
12
12
|
|
|
13
13
|
<Info>
|
|
14
|
-
Fastest chat: open the Control UI (no channel setup needed). Run `
|
|
14
|
+
Fastest chat: open the Control UI (no channel setup needed). Run `cryptoclaw dashboard`
|
|
15
15
|
and chat in the browser, or open `http://127.0.0.1:18789/` on the
|
|
16
|
-
<Tooltip headline="Gateway host" tip="The machine running the
|
|
16
|
+
<Tooltip headline="Gateway host" tip="The machine running the CryptoClaw gateway service.">gateway host</Tooltip>.
|
|
17
17
|
Docs: [Dashboard](/web/dashboard) and [Control UI](/web/control-ui).
|
|
18
18
|
</Info>
|
|
19
19
|
|
|
@@ -28,7 +28,7 @@ Check your Node version with `node --version` if you are unsure.
|
|
|
28
28
|
## Quick setup (CLI)
|
|
29
29
|
|
|
30
30
|
<Steps>
|
|
31
|
-
<Step title="Install
|
|
31
|
+
<Step title="Install CryptoClaw (recommended)">
|
|
32
32
|
<Tabs>
|
|
33
33
|
<Tab title="macOS/Linux">
|
|
34
34
|
```bash
|
|
@@ -49,7 +49,7 @@ Check your Node version with `node --version` if you are unsure.
|
|
|
49
49
|
</Step>
|
|
50
50
|
<Step title="Run the onboarding wizard">
|
|
51
51
|
```bash
|
|
52
|
-
|
|
52
|
+
cryptoclaw onboard --install-daemon
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
The wizard configures auth, gateway settings, and optional channels.
|
|
@@ -60,13 +60,13 @@ Check your Node version with `node --version` if you are unsure.
|
|
|
60
60
|
If you installed the service, it should already be running:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
|
|
63
|
+
cryptoclaw gateway status
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
</Step>
|
|
67
67
|
<Step title="Open the Control UI">
|
|
68
68
|
```bash
|
|
69
|
-
|
|
69
|
+
cryptoclaw dashboard
|
|
70
70
|
```
|
|
71
71
|
</Step>
|
|
72
72
|
</Steps>
|
|
@@ -82,7 +82,7 @@ If the Control UI loads, your Gateway is ready for use.
|
|
|
82
82
|
Useful for quick tests or troubleshooting.
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
|
-
|
|
85
|
+
cryptoclaw gateway --port 18789
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
</Accordion>
|
|
@@ -90,7 +90,7 @@ If the Control UI loads, your Gateway is ready for use.
|
|
|
90
90
|
Requires a configured channel.
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
|
-
|
|
93
|
+
cryptoclaw message send --target +15555550123 --message "Hello from CryptoClaw"
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
</Accordion>
|
|
@@ -117,4 +117,5 @@ If the Control UI loads, your Gateway is ready for use.
|
|
|
117
117
|
|
|
118
118
|
- DM safety and approvals: [Pairing](/start/pairing)
|
|
119
119
|
- Connect more channels: [Channels](/channels)
|
|
120
|
+
- Set up a blockchain wallet: [Wallet Management](/blockchain/wallet)
|
|
120
121
|
- Advanced workflows and from source: [Setup](/start/setup)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "在 BSC 上的 Aave V3 上存入、借出和偿还。"
|
|
3
|
+
title: "AAVE 借贷"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AAVE 借贷
|
|
7
|
+
|
|
8
|
+
CryptoClaw 集成了 BSC 上的 Aave V3,支持借贷操作。
|
|
9
|
+
|
|
10
|
+
## 协议地址(BSC)
|
|
11
|
+
|
|
12
|
+
| 合约 | 地址 |
|
|
13
|
+
| ----------------------- | -------------------------------------------- |
|
|
14
|
+
| Pool Proxy | `0x6807dc923806fE8Fd134338EABCA509979a7e0cB` |
|
|
15
|
+
| Pool Addresses Provider | `0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D` |
|
|
16
|
+
| Protocol Data Provider | `0x41585C50524fb8c3899B43D7D797d9486AAc94DB` |
|
|
17
|
+
|
|
18
|
+
## 支持的资产
|
|
19
|
+
|
|
20
|
+
| 资产 | 地址 | 可作抵押 |
|
|
21
|
+
| ---- | -------------------------------------------- | :------: |
|
|
22
|
+
| WBNB | `0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c` | 是 |
|
|
23
|
+
| USDT | `0x55d398326f99059fF775485246999027B3197955` | 是 |
|
|
24
|
+
| USDC | `0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d` | 是 |
|
|
25
|
+
| BTCB | `0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c` | 是 |
|
|
26
|
+
| ETH | `0x2170Ed0880ac9A755fd29B2688956BD959F933F8` | 是 |
|
|
27
|
+
|
|
28
|
+
## 操作
|
|
29
|
+
|
|
30
|
+
| 操作 | 描述 | 需确认 |
|
|
31
|
+
| -------------------- | ---------------- | :----: |
|
|
32
|
+
| `supply` | 存入资产赚取利息 | 是 |
|
|
33
|
+
| `withdraw` | 提取已存入资产 | 是 |
|
|
34
|
+
| `borrow` | 以抵押物借款 | 是 |
|
|
35
|
+
| `repay` | 偿还借款 | 是 |
|
|
36
|
+
| `getUserAccountData` | 查看仓位摘要 | |
|
|
37
|
+
|
|
38
|
+
## 仓位监控
|
|
39
|
+
|
|
40
|
+
让代理检查你的 Aave 仓位:
|
|
41
|
+
|
|
42
|
+
- "我的 Aave 仓位怎样?" — 显示总抵押、总债务、可借额度、健康系数
|
|
43
|
+
- "我在 Aave 的健康系数是多少?" — 清算风险指标(1.5 以上安全)
|
|
44
|
+
- "我在 Aave 可以借多少?" — 可用借款额度
|
|
45
|
+
|
|
46
|
+
## 示例
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
"存入 10 USDT 到 Aave"
|
|
50
|
+
"用 USDT 作抵押,从 Aave 借 0.1 BNB"
|
|
51
|
+
"在 Aave 偿还 5 USDT"
|
|
52
|
+
"从 Aave 提取所有 WBNB"
|
|
53
|
+
"当前 Aave 健康系数是多少?"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
<Warning>
|
|
57
|
+
请定期监控健康系数。如果降至 1.0 以下,仓位可能被清算。代理会在健康系数低于 1.5 时发出警告。
|
|
58
|
+
</Warning>
|
|
59
|
+
|
|
60
|
+
## 相关
|
|
61
|
+
|
|
62
|
+
- [DeFi 仪表板](/zh-CN/blockchain/defi) — 监控所有 DeFi 仓位
|
|
63
|
+
- [代币兑换](/zh-CN/blockchain/swap) — 兑换代币以偿还或调整仓位
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "使用 ERC-8004 无信任代理标准注册和管理链上 AI 代理身份。"
|
|
3
|
+
title: "代理身份(ERC-8004)"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 代理身份(ERC-8004)
|
|
7
|
+
|
|
8
|
+
CryptoClaw 支持通过 **ERC-8004 无信任代理** 标准进行链上 AI 代理身份注册,为你的代理提供可验证的链上身份和声誉。
|
|
9
|
+
|
|
10
|
+
## 什么是 ERC-8004?
|
|
11
|
+
|
|
12
|
+
ERC-8004 定义了在链上注册 AI 代理的标准:
|
|
13
|
+
|
|
14
|
+
- **身份注册表** — 将代理地址映射到元数据(名称、能力、版本)
|
|
15
|
+
- **声誉注册表** — 跟踪代理声誉分数和背书
|
|
16
|
+
- **无信任验证** — 任何人都可以在链上验证代理身份
|
|
17
|
+
|
|
18
|
+
## 工具
|
|
19
|
+
|
|
20
|
+
| 工具 | 描述 | 需确认 |
|
|
21
|
+
| ----------------------- | ---------------- | :----: |
|
|
22
|
+
| `agent_register` | 注册链上代理身份 | 是 |
|
|
23
|
+
| `agent_identity` | 查询代理身份信息 | |
|
|
24
|
+
| `agent_set_wallet` | 更新代理关联钱包 | 是 |
|
|
25
|
+
| `agent_reputation` | 查看代理声誉分数 | |
|
|
26
|
+
| `agent_list_registered` | 列出已注册代理 | |
|
|
27
|
+
|
|
28
|
+
## 支持的网络
|
|
29
|
+
|
|
30
|
+
代理身份可在 10+ 网络上注册,包括 BSC、Ethereum、Polygon、Arbitrum、Base 等主网,以及 BSC Testnet 和 Sepolia 测试网。
|
|
31
|
+
|
|
32
|
+
## 注册流程
|
|
33
|
+
|
|
34
|
+
<Steps>
|
|
35
|
+
<Step title="准备身份">
|
|
36
|
+
代理收集身份元数据:名称、描述、能力和版本。
|
|
37
|
+
</Step>
|
|
38
|
+
<Step title="选择网络">
|
|
39
|
+
选择注册链。推荐 BSC(Gas 费低)。
|
|
40
|
+
</Step>
|
|
41
|
+
<Step title="确认并注册">
|
|
42
|
+
审查注册交易并确认。身份存储在链上。
|
|
43
|
+
</Step>
|
|
44
|
+
</Steps>
|
|
45
|
+
|
|
46
|
+
## 身份持久化
|
|
47
|
+
|
|
48
|
+
代理身份数据本地持久化于 `~/.cryptoclaw/agent-identity.json`,无需链上查询即可快速访问。
|
|
49
|
+
|
|
50
|
+
## 示例
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
"在 BSC 上注册我的代理身份"
|
|
54
|
+
"我的代理链上声誉如何?"
|
|
55
|
+
"列出 BSC Testnet 上所有已注册代理"
|
|
56
|
+
"更新我代理的钱包地址"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 相关
|
|
60
|
+
|
|
61
|
+
- [钱包管理](/zh-CN/blockchain/wallet) — 用于注册的钱包
|
|
62
|
+
- [交易安全](/zh-CN/blockchain/security) — 注册需要确认
|