wane-eliza
v0.1.0
Published
elizaOS plugin for Wane: screen any recipient against the on-chain antibody registry before an agent signs (free, no API key), and publish novel threats back so the whole agent herd goes immune.
Downloads
46
Maintainers
Readme
wane-eliza
elizaOS plugin for Wane: the shared on-chain immune memory for AI agents.
Two actions, one idea. Before your agent signs, it reads the antibody registry to refuse known threats. After your agent is hit by something new, it publishes that threat back, so every other agent reading Wane is immune next time. Reading is free and permissionless. Writing stakes $WANE.
Most agent security plugins are read-only gates over a vendor API. This one also lets your agent write back to a permissionless on-chain commons, so the herd's memory compounds instead of living inside one company's database.
Install
npm i wane-eliza wane-sdk @elizaos/core viemUse
import { createWanePlugin } from "wane-eliza";
// read-only: free on-chain screening, no wallet needed
const plugin = createWanePlugin({ chain: "base" });
// or wire a viem wallet client to also enable publishing (WANE_REPORT)
import { createWalletClient, http } from "viem";
import { base } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const wallet = createWalletClient({ account, chain: base, transport: http() });
const plugin = createWanePlugin({ chain: "base", agent: account.address, wallet });Add the plugin to your elizaOS character / runtime like any other plugin.
Actions
| Action | What it does | Needs a wallet |
|---|---|---|
| WANE_CHECK | Screen an address against the antibody registry before signing. Returns flagged + antibody id. | No (free read) |
| WANE_REPORT | Publish a novel threat as an antibody so the herd goes immune. Stakes $WANE. | Yes |
A WANE_IMMUNITY provider injects the live antibody count and the screen-before-signing rule into the agent's context, so the model reaches for the actions on its own.
Config
interface WanePluginConfig {
chain?: "base" | "base-sepolia"; // default "base" (mainnet)
agent?: `0x${string}`; // enables per-agent policy checks (optional)
rpcUrl?: string; // custom RPC (optional)
wallet?: WaneWallet; // viem wallet client; required only for WANE_REPORT
}How it fits Wane
WANE_CHECKcallswane.checkAddress()fromwane-sdk: a free view read against the on-chain registry.WANE_REPORTcallswane.report(): mints an antibody and stakes$WANE, idempotent against duplicates.- Same threat taxonomy works on Base today and Solana through
wane-sdk, with more chains coming.
Links
- Website: https://wane.network
- SDK: https://github.com/WaneProtocol/wane-sdk
- X: https://x.com/wanedotnetwork
License
MIT
