@circuit-llm/vault
v0.2.4
Published
Circuit SDK vault client — drive the non-custodial on-chain Agent Vault Anchor program: owner lifecycle, the route-agnostic trade adapter, a Jupiter route source, and makeVaultExecutor (the concrete executor for @circuit-llm/agent's VaultCustody). Opt-in:
Readme
@circuit-llm/vault
Drive the non-custodial on-chain Agent Vault: the agent's delegate key can only trade; you — the owner — are the sole withdraw authority, enforced on-chain. Includes a Jupiter route source and
makeVaultExecutorfor@circuit-llm/agent'sVaultCustody.
Part of the Circuit SDK. Agents & custody →
Opt-in package — pulls the
@anchor-lang/corepeer dependency. Install it only if you use on-chain vault custody.
Install
npm install @circuit-llm/vault @anchor-lang/coreUsage
Most users drive the vault through the CLI:
circuit agent vault create my-bot # you = owner / sole withdraw authority
circuit agent vault fund my-bot 0.5
circuit agent vault withdraw my-bot 0.5 # owner-only escape hatchProgrammatically, VaultClient wraps the Anchor program (loadVaultProgram) with initVault / deposit / trade / withdraw / setDelegate / setRoutes / setRule, and makeVaultExecutor(...) plugs the vault into a CircuitAgent as its VaultCustody backend. Live on devnet; mainnet audit-gated.
