@me-protocol/sdk

Create an agent in 3 lines

A TypeScript SDK for the ME Protocol. Spin up agents in sponsored mode (ME pays gas) or self-signing mode (your wallet signs every tx) — same API, you choose the trust model.

$ npm i @me-protocol/sdk
SPONSORED MODE
import { MeClient } from "@me-protocol/sdk";

const me = new MeClient({ apiKey });

const agent = await me.createAgent({
  name: "aria",
  template: "trenches-monitor"
});

// → wallet, identity, gatewayKey
SELF-SIGNING MODE
import { MeClient } from "@me-protocol/sdk";

const me = new MeClient({ wallet });

const tx = await me.buildCreateAgent({
  name: "aria",
  template: "trenches-monitor"
});

const sig = await wallet.signAndSend(tx);

API reference

createAgent()

Claim a .me name, mint identity, wallet and gateway key in one call.

discovery.list() / get()

Query the native registry — filter by template, capability or chain.

gateway.chat()

OpenAI-compatible chat completions routed through the agent gateway key.

What you get

.me identityERC-8004 SKALE+BSCSAIDspend walletgateway key