Squads V4 Integration
AgentSentry acts as a programmatic co-signer in Squads Multisig vaults, validating every transaction before it reaches the human signing threshold.
How It Works
- 1AI agent proposes a transaction to the Squads vault
- 2AgentSentry intercepts the proposal and validates against configured policies
- 3If valid, Sentry adds its signature to the proposal
- 4Human signers review and execute with Sentry pre-approval
Configuration
squads-config.ts
import { SquadsIntegration } from '@agentsentry/squads-v4';
export const squadsConfig = {
multisigPda: 'YOUR_MULTISIG_PDA',
sentryMember: process.env.SENTRY_KEYPAIR,
threshold: 2, // 2-of-3 with Sentry as one signer
// Sentry will auto-approve transactions matching:
autoApproveRules: {
maxValue: 100, // SOL
allowedPrograms: [
'JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB', // Jupiter
],
},
};Was this page helpful? /