🔐 Beluga: an AI agent proposes encrypted Solana swaps, you approve them, the agent never holds your keys
In brief
- 🔐 Beluga is an on-chain Solana vault the user owns; an AI agent acts only as its advisor, using its own separate key.
- 📝 The agent drafts encrypted swap proposals; by default nothing executes until the owner approves in the Beluga app.
- 🚫 According to the docs the advisor key can never withdraw funds, but automatic mode has no cap on trade size or frequency.
- ⚙️ Setup uses the npm command-line tool beluga-advisor with Claude Code, Codex, OpenClaw or another agent that can run shell commands.
🔐 Beluga is a Solana service that lets an AI agent advise on a crypto portfolio without ever holding the owner's private key. The owner keeps custody in an on-chain vault. The agent gets its own keypair, created by the command-line tool `beluga-advisor`, and is invited on-chain as advisor, a transaction the owner signs. The agent can then watch the vault, draft swap proposals encrypted to the owner and execute them once approved. According to the [Beluga docs](https://docs.beluga.financial/guides/agent-advisor), it cannot withdraw funds, and in the default mode every trade waits for the owner's approval in the Beluga app. There is also an automatic mode, which the docs say has no cap on trade size, frequency or tokens unless the owner sets trade conditions. 💶 The agent takes a fee on each executed swap, up to 1 %. This is a tool for people who already run a coding agent and trade on Solana; it is not financial advice and trading can lose money.
⚙️ Onboarding step by step. The guide describes four steps: `beluga-advisor init` generates a fresh keypair and prints its public key; the owner funds that key with a little SOL, about 0.05 SOL being plenty according to the docs, because it pays transaction fees; the owner opens the invite link and adds the key as advisor in the Beluga app, signing with the wallet that owns the vault; and the agent's key accepts the invitation on-chain. The tool needs Node 20 or newer, and Node 22.20 or newer to install the agent skill through the open agent-skills installer, which offers Claude Code, Codex, OpenClaw and others. Every command prints JSON, so an agent can read the results.
💬 Working with the agent. After a request such as "show me my Beluga vault", the agent runs `beluga-advisor portfolio`, reports holdings and open proposals, and opens with a recommendation. The guide gives an example in which a vault of about $4,200 in USDC is advised to swap 30 % into SOL. On a yes, the agent runs `propose --wait`, which encrypts the proposal to the vault's key, submits it on-chain and waits, by default 600 seconds. Once the owner approves, the same command executes it; approval gives the agent an hour to do so. Outcomes include executed, rejected, expired, cancelled, closed, failed and pending. An optional background watcher can accept invitations and execute approved proposals while no agent runs.
⚠️ Limits and trade-offs. The invitation lets the agent trade a vault the owner owns and never withdraw. The page stresses that an invite link is only an address and that the agent is not in Beluga's advisor directory, so the owner should check that the address matches what `init` printed. In automatic mode the swaps run without asking; nothing caps how much of the vault one swap uses, how often it trades or which tokens it buys. The only limits are the owner's own trade conditions, such as a minimum pool depth, a maximum price impact and a maximum share of a pool, which are off until set. The fee per swap, 0 to 100 basis points and 50 by default, goes to the agent's key and is set when it accepts. The advice itself comes from whatever model drives the agent; Beluga only enforces the on-chain rules. Everything here is the maker's documentation, which we did not test.