Multi-sig treasury management for autonomous AI agents using Safe Smart Account on Base.
Deploy a Safe with AllowanceModule spending limits, multi-sig transaction proposals, and automatic hot wallet refill. On-chain enforcement -- the blockchain is the guardrail, not software.
npm install
# 1. Deploy Safe (1-of-2 with your wallet + agent hot wallet)
node scripts/agent-treasury-deploy.mjs --owner 0xYourWalletAddress
# 2. Configure AllowanceModule + spending limits
# (set SAFE_ADDRESS in ~/morpheus/.env first)
node scripts/agent-treasury-configure.mjs
# 3. Move funds to Safe, then raise threshold
node scripts/agent-treasury-propose.mjs threshold --value 2
# 4. Install auto-refill daemon (every 6 hours)
bash scripts/install.sh| Script | Purpose |
|---|---|
agent-treasury-deploy.mjs |
Deploy Safe v1.4.1 on Base with two owners |
agent-treasury-configure.mjs |
Enable AllowanceModule, set MOR/ETH daily limits |
agent-treasury-propose.mjs |
Multi-sig tx proposals via Safe Transaction Service |
agent-treasury-refill.mjs |
Auto-refill hot wallet from Safe (launchd daemon) |
install.sh |
Install launchd service for auto-refill |
Set in ~/morpheus/.env:
SAFE_ADDRESS=0x... # Required: Safe address on Base
SAFE_RPC=https://... # Required: Base RPC URL (Alchemy, Infura, or QuickNode recommended)See SKILL.md for full configuration reference, deployment walkthrough, and architecture details.
MIT