Skip to content

Product

Agents want your wallet. Give them a leash instead.

Leash is a Solana program that holds an agent's money and enforces your spending rules on every payment.

The problem

Copy-trading bots and AI agents are useful because they can act without asking you each time. To do that, they ask for access to a wallet. A normal wallet has no limits: whoever holds the key can spend everything.

A bug, a prompt injection or a stolen key is enough to drain it. Limits written in the bot's own code don't help, because the code is exactly what can go wrong.

The solution

With Leash, the agent never holds your wallet. Your SOL sits in a vault account owned by the Leash program. The agent gets its own key, and that key can do exactly one thing: ask the program to make a payment.

The program checks every payment against your rules on-chain, before any SOL moves. If one rule fails, the whole transaction fails. The agent cannot change the rules, withdraw or unpause. Only you can.

The rules Solana enforces

Daily limit
The most the agent can spend in any 24 hours. The limit rolls: there is no reset moment to exploit.
Limit per payment
A cap on any single payment, so one mistake stays small.
Allowlist
Up to 10 addresses the agent may pay. Everyone else is refused.
Pause switch
One click and the agent can't pay anyone until you unpause.

When a rule is broken

The program returns a clear reason (over the per-payment limit, over the daily limit, recipient not allowed, or paused), the transaction is rejected and no SOL leaves the vault. The failed attempt is still visible on the explorer, so you can see exactly what the agent tried.

Who it's for

  • People using copy-trading bots

    Let a bot trade or pay for you without giving it the power to empty your wallet.

  • AI agent builders

    Give your agent a real budget for APIs, hosting or data, with limits it cannot talk its way around.

  • Teams and DAOs

    Hand out spending power for automation with a daily cap, a per-payment cap and an approved list of payees.

How Solana enforces it

  1. 1. One account per agent. A program-derived address from the owner and agent keys holds the rules and the SOL.
  2. 2. Only the program can move the SOL. No private key exists for the vault, so nobody can sign around the rules.
  3. 3. Every payment is checked. Pause, allowlist, per-payment limit and daily window are verified with checked math before lamports move.
  4. 4. Every payment is logged. A PaymentMade event records each successful payment for auditing.
See how to use it