Before you create a session
Make sure you have:- At least one smart account linked to Pay3
- At least one spending policy created
- Your AI client open and ready to receive configuration
Creating a session
1
Open the Sessions page
Click Sessions in the dashboard navigation bar.
2
Select a smart account
Under Create session, choose the smart account (Soroban vault) this session will draw funds from. The dropdown shows your linked contracts, truncated for readability.
3
Select a policy
Choose the spending policy that governs this session. The policy determines daily budgets, per-transaction limits, approval thresholds, allowed assets, and how long the session lasts. Policies are frozen at session creation — changing a policy later will not affect this session.
4
Choose your AI client
Select the client type that matches the AI assistant you’re configuring:
- Cursor — the Cursor code editor
- Claude — Anthropic’s Claude (desktop or API)
- ChatGPT — OpenAI’s ChatGPT
- Gemini — Google’s Gemini
- Other — any other MCP-compatible client
5
Click Create AI session
Pay3 generates a unique session key pair, registers the session, and returns your MCP auth token along with the full MCP configuration JSON.
Copying your MCP configuration
After creation, a green confirmation panel appears with your session credentials. Copy thePAY3_MCP_AUTH_TOKEN and paste it into your AI client’s configuration.
The MCP configuration you need to add to your AI client looks like this:
<your-token-here> with the token shown in the dashboard. Paste this JSON into your client’s MCP server configuration file (the exact location varies by client — consult your client’s documentation).
Registering the session on-chain
After copying your token, you must complete one final step: callingadd_session on your Soroban vault contract. The dashboard shows the exact parameters you need — including the session public key, expiry timestamp, per-transaction maximum, and daily maximum — ready to paste into the Soroban CLI or Stellar Laboratory.
The on-chain registration step is mandatory. Until you call
add_session on your contract, the smart account will reject any payment requests from this session, even if the MCP token is valid.Managing existing sessions
The sessions list below the creation form shows all sessions currently active on your account:Revoking a session
To revoke a single session, click Revoke next to it. The session is immediately invalidated — the AI assistant will receive an authentication error on its next payment attempt.Each AI assistant should have its own dedicated session. This gives you independent budget tracking per assistant, clean audit logs, and the ability to revoke one assistant’s access without affecting others.