Wallet
OTOMAT Wallet
Pay 402s from your terminal or browser.
Command line
A single global install. Serve, pay, open channels, and read receipts — the same verbs the rail exposes.
install
npm i -g otomat-cliusage
# Serve a paid endpoint priced per request
otomat serve --price $0.002
# Pay an x402-protected URL from your terminal wallet
otomat pay https://api.example.dev/report
# Open a payment channel for high-frequency calls
otomat channel open
# List the receipts you have settled
otomat receiptsTest a payment
Paste an OTOMAT proxy URL and pay it through the extension, no console needed. The approval popup opens and the settled result shows below. Extension not detected yet: load it and unlock the wallet, then reload this page.
Download the extension (.zip)MCP adapter
Give any Model Context Protocol client a Solana payment account. Tool calls that answer 402 pay and replay automatically.
typescript
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { withPayment } from '@otomat/sdk/mcp';
import type { PaymentAccount } from '@otomat/sdk';
// account is a Solana payer — a keypair signer or an Agent Wallet Kit
// instance (which enforces budget caps and allowlists before paying).
declare const account: PaymentAccount;
// Wrap any MCP client so 402-gated tool calls pay per request and replay.
const paid = withPayment(new Client({ name: 'agent', version: '1.0.0' }), {
account,
});
// A tool call that returns PAYMENT-REQUIRED is paid and retried transparently.
const result = await paid.callTool({ name: 'search', arguments: { q: 'x402' } });Illustrative — mirrors the @otomat/sdk MCP surface.