Skip to content

[Plugin Proposal] Dreamline x402 Policy Facilitator for autonomous agent spend governance #6695

@aisatoshinext-arch

Description

@aisatoshinext-arch

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:

  1. On-chain blacklist (DreamlineRegistry on BNB Chain)
  2. 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

Integration (3 lines)

const { createDreamlineClient } = require('dreamline-x402');
const fetch = createDreamlineClient({ apiKey: 'dlk_your_key' });
await fetch('https://api.example.com/paid-resource');

Request

  1. A @elizaos/plugin-dreamline for governed x402 payments
  2. Document the Policy Facilitator pattern as a standard extension

Happy to build the plugin and contribute a PR.

— @getdreamline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions