Skip to main content

Prerequisites

  • Node.js 18+
  • A browser with passkey support (Chrome, Safari, Firefox)

Run init

This guides you through three steps:
1

Create your wallet

Opens your browser and registers a passkey. Your key is derived from the passkey inside your device’s secure enclave — never stored in plaintext anywhere.
2

Fund your wallet

Send stablecoins (USDC.e, pathUSD) to your wallet address. The CLI displays your address and polls your balance until funds arrive.
3

Create an agent session

Prompts for a spending limit and expiry, then opens your browser for passkey approval of the on-chain authorization.
When complete, a .env file is written to your project:
AGENT_PRIVATE_KEY is an access key — not your root wallet. It has a hard spending limit enforced on-chain. Your root wallet is secured by your passkey and never exposed.

Make your first paid request

Enact handles the 402 Payment Required flow automatically. Preview the cost before paying:

Check your balance and session

Use in your agent code

Once .env is set, integrate with mppx:

Next steps

MCP Integration

Connect to Claude Desktop, Cursor, or OpenClaw

CLI Reference

All available commands and flags