Skip to main content

What is the ElizaOS plugin?

The @mandate.md/eliza-plugin package registers Mandate actions and providers with your ElizaOS agent runtime. It adds three actions (transfer, x402Pay, sendEth) and one provider (walletStateProvider) that gives the agent context about its wallet address and chain.

Installation

@elizaos/core is a peer dependency (>=0.1.0).

Usage

That registers all actions and providers. The plugin reads configuration from runtime settings or environment variables.

Environment variables

You can set these as environment variables or pass them through ElizaOS runtime settings via runtime.getSetting().

Actions

Each action validates with the Mandate API, signs locally with the private key, and broadcasts. The private key never leaves the agent process.

Providers

Example output: "Mandate wallet: 0x1234...abcd on chain 84532. Policy enforcement: active."

Error handling

Actions use ElizaOS callbacks to report errors. The handler returns false on policy blocks and approval requirements, with a descriptive message in the callback.
The content object in the callback gives your agent structured data to decide what to do next: retry later, reduce the amount, or prompt the user to approve in the dashboard.
Each action’s validate method checks that MANDATE_RUNTIME_KEY is set. If it returns false, ElizaOS skips the action entirely. Make sure the env var is configured before starting the agent.

Next Steps

Integrations Overview

Compare all supported agent frameworks and pick the right one.

Validate Transactions

Understand the full validation flow from preflight to confirmation.

Handle Errors

Catch and respond to every Mandate error type.