enact-wallet
v0.1.4
Published
CLI and MCP server for AI agent payments on Tempo
Maintainers
Readme
enact-wallet
Give your AI agent a wallet with on-chain spending controls.
Enact lets you create a passkey-secured wallet on Tempo, set per-agent spending limits enforced on-chain, and connect your AI tools via CLI or MCP.
Quick Start
npx enact-wallet initThis walks you through three steps:
- Create wallet — opens your browser for a passkey prompt
- Fund wallet — send stablecoins to your wallet address
- Create session — set a spending limit and authorize an agent key on-chain
Credentials are written to .env in your current directory.
Already have a wallet? Connect with existing credentials:
npx enact-wallet loginCommands
enact-wallet init Create wallet + agent session
enact-wallet login Connect with credentials from dashboard
enact-wallet pay <url> Make a paid HTTP request (402 handling)
enact-wallet pay --dry-run <url> Preview cost without paying
enact-wallet services Browse available MPP services
enact-wallet services <query> Search or show service details
enact-wallet balance Show token balances
enact-wallet session Show session info + remaining limit
enact-wallet mcp Start MCP server for AI toolsPay options
--method <METHOD> HTTP method (default: GET)
--body <JSON> Request body (auto-sets Content-Type: application/json)
--header 'Key: Value' Add a header (repeatable)
--dry-run Preview cost without payingGlobal flags
-t, --agent Machine-readable JSON output
--help Show helpBrowse Services
Discover 50+ paid APIs available via MPP:
enact-wallet services # list all services
enact-wallet services anthropic # show details + pricing
enact-wallet services email # search by keyword
enact-wallet -t services # JSON output for agentsMCP Integration
Claude Code
claude mcp add -s user enact-wallet -- npx enact-wallet mcpClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"enact-wallet": {
"command": "npx",
"args": ["enact-wallet", "mcp"]
}
}
}Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"enact-wallet": {
"command": "npx",
"args": ["enact-wallet", "mcp"]
}
}
}MCP Tools
| Tool | Description |
|------|-------------|
| pay_request | Make a paid HTTP request. Supports method, body, headers, dry_run. |
| get_balance | Get token balances for the agent wallet. |
| get_session | Get session info and remaining spending limit. |
How It Works
- Wallet — passkey-secured, never exposed. Created via browser WebAuthn.
- Agent session — scoped secp256k1 key with per-token spending limits enforced on-chain by Tempo's Account Keychain precompile.
- Payments — uses MPP (Machine Payments Protocol) for HTTP 402 payment flows.
- Services — 50+ paid APIs available via MPP at mpp.dev.
Links
License
GPL-3.0
