Agnij Dutta
Open to select work·Bengaluru, IN
← Back to the board
01 / 08LIVE · npm

Capline

Spend limits for AI agents that a jailbreak can't talk its way past.

The problem

An AI agent with a wallet is one prompt injection away from an empty balance. Instructions can be argued with. A contract can't.

2 layers

The signer refuses an over-cap spend. On Solana and Stellar, funds sit in a program-owned vault, so even a compromised agent key can't exceed the cap.

3 chains

One SDK for Solana, Avalanche and Stellar. Each chain enforces its own cap.

1 command

npm i capline and an agent has a spend limit.

Under the hood
  1. Published on npm as capline (0.1.2).
  2. Deployed on Solana devnet, Avalanche Fuji and Stellar testnet.
  3. On Solana, spend limits are enforced by a program-owned vault, so even a compromised agent key can't exceed the mandate. Stellar works the same way; on Avalanche the signer enforces the cap.
Stack
SolidityAnchor (Rust)SorobanTypeScriptx402ERC-8004
Install
Installnpm i capline
← Previous

Cerberus

Rate limiting as a service, atomic down to the Redis script.

Next →

FLIP

Escrow-based settlement for Flare FAssets, instead of prefunded insurance pools.