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. If the key leaks anyway, the contract reverts on-chain.

3 chains

One spend policy across Solana, Avalanche and Stellar.

1 command

npm i capline and an agent has a hard limit.

Under the hood
  1. Published on npm as capline (0.1.1).
  2. Deployed on Solana devnet, Avalanche Fuji and Stellar testnet.
  3. Two layers: the signer refuses, and if the key is stolen anyway, the contract reverts CapExceeded on-chain.
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.