-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[Plugin Proposal] Dreamline x402 Policy Facilitator for autonomous agent spend governance #6695
Description
Problem
ElizaOS agents can now hold wallets and spend autonomously via x402.
But there is no standard plugin for spend governance — who decides
whether a payment should happen before it executes?
Without a policy layer, agents can:
- Pay blacklisted destinations
- Exceed per-tx or daily budgets
- Leave no immutable audit trail
Proposal
A Dreamline plugin for ElizaOS that intercepts x402 payments
before execution and checks:
- On-chain blacklist (DreamlineRegistry on BNB Chain)
- Per-agent policy (budget, whitelist, tx limits)
If blocked → payment never executes.
If approved → normal x402 flow continues.
How it works
Agent (ElizaOS)
→ wants to make x402 payment
→ POST /facilitator/verify (Dreamline)
→ on-chain blacklist check (BNB Chain)
→ per-agent policy check
→ approved → x402 settlement as normal
→ blocked → { isValid: false, onchain: true }
Live implementation
- Facilitator: https://dreamline-backend.onrender.com/facilitator/supported
- On-chain registry: 0x71dA6F5b106E3Fb0B908C7e0720aa4452338B8BE (BNB Chain)
- SDK: npm install dreamline-x402
- GitHub: https://github.com/aisatoshinext-arch/dreamline
Integration (3 lines)
const { createDreamlineClient } = require('dreamline-x402');
const fetch = createDreamlineClient({ apiKey: 'dlk_your_key' });
await fetch('https://api.example.com/paid-resource');
Request
- A @elizaos/plugin-dreamline for governed x402 payments
- Document the Policy Facilitator pattern as a standard extension
Happy to build the plugin and contribute a PR.
— @getdreamline