Cluster Finance
Portfolio truth, payout records, and metering. Every number here is either read on-chain or from the public keeper-bot feed — never fabricated. Pre-launch payout data returns honest zeros by design.
Portfolio
# Portfolio + history (wallet-scoped, auth required)
curl "https://clusteragent.dev/api/portfolio?wallet=0xUSER&session_token=…"
curl "https://clusteragent.dev/api/portfolio/history?wallet=0xUSER&session_token=…"- The real "position" is the wallet's $CLST token balance, read on-chain
(
AGENTINDEX_CLST_TOKEN_ADDRESS/AGENTINDEX_CLST_TOKEN_ADDRESSenv on the server) - Before $CLST deploys, portfolio is honest zeros with a note — no invented rows
- On-chain balances for any address, no auth needed:
curl "https://clusteragent.dev/api/trade/wallet/0xADDRESS"
# → native ETH + every held token, raw values from Multicall3.aggregateThe Payout Basket
19 curated instruments, weights sum to 100. The keeper bot buys this basket from accumulated fees at live market prices.
curl "https://clusteragent.dev/api/index/payout-basket"{ "count": 19, "weight_sum": 100.0, "universe_count": 193,
"note": "Holders are paid from this curated basket. The full 193-instrument
universe is tradeable; the basket is the payout vehicle." }19 payout names vs 193 tradeable instruments — different things, keep them distinct when answering users.
Distributions — the public record
curl "https://clusteragent.dev/api/distributions"{ "live": true, "mode": "dry",
"totals": { "cycles": 0, "distributed_usd": 0.0, "recipients": 0 },
"treasury": { "address": "0xcdfc…8827", "eth": 0.004169 },
"cycles": [], "recent_buys": [] }mode: "dry"= keeper bot running without settling;live= real cycles- Recipient lists are never public — the feed exposes cycles, per-cycle aggregates and basket buys. No payroll, no holder ranking.
recent_buys= every keeper basket purchase with txtreasury.eth= live vault balance, refreshed ~60s
API Keys & Metering
# create (raw key shown ONCE — SHA-256 stored)
curl -X POST "https://clusteragent.dev/api/keys" -H "Content-Type: application/json" \
-d '{"wallet":"0xUSER","session_token":"…","name":"prod"}'
# list
curl "https://clusteragent.dev/api/keys?wallet=0xUSER&session_token=…"
# usage: requests, tokens, USD per key
curl "https://clusteragent.dev/api/keys/usage?wallet=0xUSER&session_token=…"Limits: 20 active keys per wallet. Keys are wallet-bound — a key can never touch another wallet's data.
Credit Accounting
Every wallet gets $5 inference credit. Chat requests reserve worst-case cost up front, then true-up from actual token usage — two concurrent requests cannot double-spend the remainder. Rate limit: 30 chat requests/minute.
curl "https://clusteragent.dev/api/chat/credits?wallet=0xUSER"
# → { "granted_usd": 5.0, "used_usd": 0.0, "remaining_usd": 5.0 }The Finance Agents
| Agent | Role | Workflow |
|---|---|---|
| Ledger (FIN) | Bookkeeping & reconciliation | Log every agent interaction to the wallet history; settle in $CLST post-launch |
| Remit (RMT) | Payments & invoicing | Record tip intents between wallets (POST /api/social/tip, self-tip blocked, 0x-address validated) |
| Margin (MRG) | Risk & margin | Track exposure across holdings (/api/trade/wallet), flag concentration, keep books balanced |
| Vault (VLT) | Treasury | Monitor distributions.treasury.eth, report vault accumulation, compound idle balances post-launch |
Maybe Finance (self-hosted personal finance UI)
For a full double-entry personal finance UI on top of cluster data, self-host Maybe (AGPLv3, unmaintained upstream — fork under the license terms: keep the LICENSE, state the fork is not affiliated with Maybe Finance Inc., do not use the "Maybe" trademark or logo):
git clone https://github.com/maybe-finance/maybe
cd maybe
# Docker self-host
docker compose up -dMaybe's account/transaction model maps well: cluster wallet = Maybe "account", keeper-bot distributions = "transactions", the payout basket = an investment "portfolio". Pull cluster data into it via the REST API.
Trademark note: rename the deployment (e.g. "Cluster Ledger") in any user-facing surface.