clawcloud 1.0.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.
@@ -0,0 +1,215 @@
1
+ ---
2
+ name: clawcloud
3
+ version: 1.0.0
4
+ description: Autonomous cloud infrastructure. Buy VMs with crypto, deploy code, own compute.
5
+ homepage: https://clawcloud.co
6
+ repository: https://github.com/clawcloud/clawcloud
7
+ metadata:
8
+ openclaw:
9
+ category: infrastructure
10
+ api_base: https://api.clawcloud.co/v1
11
+ wallet_address: {{WALLET_ADDRESS}}
12
+ agent_id: {{AGENT_ID}}
13
+ ---
14
+
15
+ # ClawCloud Skill
16
+
17
+ **You can autonomously purchase and control cloud VMs using cryptocurrency.**
18
+
19
+ ## What You Can Do
20
+
21
+ - Check your USDC balance on Base
22
+ - Purchase VMs when you need compute
23
+ - Deploy code to your VMs
24
+ - Scale infrastructure based on your needs
25
+ - Own VMs as NFTs in your wallet
26
+
27
+ ## Your Wallet
28
+
29
+ Address: `{{WALLET_ADDRESS}}`
30
+ Agent ID: `{{AGENT_ID}}`
31
+ Network: Base
32
+ Currency: USDC
33
+
34
+ **IMPORTANT:** Your private key is configured. Keep this skill secure.
35
+
36
+ ## Commands
37
+
38
+ ### Check Balance
39
+
40
+ ```bash
41
+ # Check USDC balance
42
+ curl https://api.clawcloud.co/v1/wallet/balance \
43
+ -H "Authorization: Bearer {{AGENT_ID}}"
44
+ ```
45
+
46
+ Example response:
47
+ ```json
48
+ {
49
+ "balance_usdc": "25.50",
50
+ "wallet_address": "{{WALLET_ADDRESS}}",
51
+ "network": "base"
52
+ }
53
+ ```
54
+
55
+ ### List VM Tiers
56
+
57
+ ```bash
58
+ # See available VM tiers and pricing
59
+ curl https://api.clawcloud.co/v1/packages
60
+ ```
61
+
62
+ Example response:
63
+ ```json
64
+ {
65
+ "packages": [
66
+ {
67
+ "tier": "MICRO",
68
+ "tier_index": 0,
69
+ "price_monthly": 5,
70
+ "price_hourly": 0.007,
71
+ "vcpu": 1,
72
+ "ram": "1GB",
73
+ "storage": "20GB"
74
+ },
75
+ {
76
+ "tier": "SMALL",
77
+ "tier_index": 1,
78
+ "price_monthly": 10,
79
+ "price_hourly": 0.014,
80
+ "vcpu": 2,
81
+ "ram": "2GB",
82
+ "storage": "40GB"
83
+ }
84
+ ]
85
+ }
86
+ ```
87
+
88
+ ### Purchase VM (Mints NFT)
89
+
90
+ To purchase a VM, you need to interact with the smart contract on Base:
91
+
92
+ ```bash
93
+ # Purchase SMALL VM for 1 month
94
+ # This mints an NFT to your wallet!
95
+
96
+ CONTRACT_ADDRESS="0x..." # ClawCloud VMs contract
97
+ PRIVATE_KEY="{{PRIVATE_KEY}}"
98
+ TIER=1 # 0=MICRO, 1=SMALL, 2=MEDIUM, 3=LARGE, 4=XLARGE
99
+ MONTHS=1
100
+
101
+ cast send $CONTRACT_ADDRESS \
102
+ "purchaseVM(uint8,uint256)" $TIER $MONTHS \
103
+ --private-key $PRIVATE_KEY \
104
+ --rpc-url https://mainnet.base.org
105
+ ```
106
+
107
+ After purchase:
108
+ 1. An NFT is minted to your wallet (token ID = VM ID)
109
+ 2. Backend provisions VM (~2 minutes)
110
+ 3. You can fetch credentials and deploy code
111
+
112
+ ### List Your VMs
113
+
114
+ ```bash
115
+ # List all VMs you own (as NFTs)
116
+ curl https://api.clawcloud.co/v1/vms?address={{WALLET_ADDRESS}}
117
+ ```
118
+
119
+ Example response:
120
+ ```json
121
+ {
122
+ "vms": [
123
+ {
124
+ "nft_id": 42,
125
+ "tier": "SMALL",
126
+ "status": "active",
127
+ "ip_address": "34.123.45.67",
128
+ "expires_at": "2026-02-28T00:00:00Z",
129
+ "expires_in_days": 28
130
+ }
131
+ ]
132
+ }
133
+ ```
134
+
135
+ ### Get VM Credentials
136
+
137
+ ```bash
138
+ # Get SSH access for your VM
139
+ curl https://api.clawcloud.co/v1/vms/vm_42/credentials \
140
+ -H "Authorization: Bearer {{AGENT_ID}}"
141
+ ```
142
+
143
+ Example response:
144
+ ```json
145
+ {
146
+ "vm_id": "vm_42",
147
+ "ip_address": "34.123.45.67",
148
+ "username": "agent",
149
+ "ssh_private_key": "-----BEGIN PRIVATE KEY-----\n...",
150
+ "ssh_command": "ssh agent@34.123.45.67"
151
+ }
152
+ ```
153
+
154
+ ### Deploy Code to VM
155
+
156
+ Once you have the SSH key, you can deploy code:
157
+
158
+ ```bash
159
+ # Save SSH key
160
+ echo "$SSH_PRIVATE_KEY" > /tmp/vm_key.pem
161
+ chmod 600 /tmp/vm_key.pem
162
+
163
+ # Copy your code to VM
164
+ scp -i /tmp/vm_key.pem -r ./my-code agent@34.123.45.67:~/
165
+
166
+ # Execute commands
167
+ ssh -i /tmp/vm_key.pem agent@34.123.45.67 "cd ~/my-code && npm install && npm start"
168
+ ```
169
+
170
+ ## Example Decision Flow
171
+
172
+ **You:** "I need to backtest a trading strategy"
173
+
174
+ **Your thought process:**
175
+ 1. Check balance: Do I have enough USDC?
176
+ 2. Determine compute needs: How much CPU/RAM?
177
+ 3. Purchase VM: Buy MEDIUM tier for 1 month
178
+ 4. Wait for provisioning: ~2 minutes
179
+ 5. Deploy code: Copy strategy to VM
180
+ 6. Run backtest: Execute and monitor
181
+ 7. Retrieve results: Download output
182
+ 8. Terminate VM if done: Save costs
183
+
184
+ ## NFT Ownership
185
+
186
+ When you purchase a VM:
187
+ - An ERC-721 NFT is minted to `{{WALLET_ADDRESS}}`
188
+ - The NFT token ID = VM identifier (e.g., NFT #42 = VM #42)
189
+ - Owning the NFT = Owning the VM
190
+ - Transfer NFT = Transfer VM ownership
191
+ - Burn NFT = Destroy VM
192
+
193
+ View your NFTs:
194
+ - BaseScan: https://basescan.org/token/0x.../{{WALLET_ADDRESS}}
195
+ - OpenSea: https://opensea.io/{{WALLET_ADDRESS}}?search[chains][0]=BASE
196
+
197
+ ## Cost Management
198
+
199
+ - VMs are pay-as-you-go starting at $0.08/hour
200
+ - Monitor your balance regularly
201
+ - Set up notifications in the Telegram bot
202
+ - Terminate VMs when not needed
203
+
204
+ ## Safety
205
+
206
+ - Your private key is stored in this skill
207
+ - Only you can access this workspace
208
+ - Never share this skill file
209
+ - The Telegram bot can send alerts when you spend
210
+
211
+ ## Resources
212
+
213
+ - Documentation: https://docs.clawcloud.co
214
+ - Contract: https://basescan.org/address/0x...
215
+ - Support: https://t.me/clawcloud