# Session keys

Source: https://docs.testnet.mog.xyz/account/session-keys/

Markdown: https://docs.testnet.mog.xyz/account/session-keys.md

Reviewed protocol version: 11.0.0

Protocol review date: 2026-10-30

Scope: reviewed public documentation. Numerical examples use illustrative or launch settings; they are not live quotes or a guarantee of current deployed parameters. Consult the app for current market and position values.

A session key lets you trade with fewer wallet prompts. Your main wallet sets its permissions and expiry, and can revoke access.

## Account permissions

| Action                                   | Authority                         |
| ---------------------------------------- | --------------------------------- |
| Place or cancel orders                   | Main wallet or authorized session |
| Request full or partial closes           | Main wallet or authorized session |
| Add margin                               | Main wallet or authorized session |
| Withdraw or set a withdrawal destination | Main wallet only                  |
| Give up a queued payout for MOG          | Main wallet only                  |
| Grant or revoke sessions                 | Main wallet only                  |

A compromised session key can put funds at risk through trading, closes, and margin additions within its permissions.

## Session lifecycle

Control access from your main wallet

1. Authorize: Set permissions and expiry.
2. Trade: Use the approved permissions.
3. End access: Revoke or let it expire.
4. Start again: Authorize a new key.

Maximum session duration: 7 days at launch.

Existing positions and accepted actions continue after expiry or revocation. Accepted margin additions remain locked until activation or refund.

## Revoke access

Revoke the key from your main wallet, then review open positions and pending actions. Use a new key for future sessions after revocation. See [Wallet and session risks](https://docs.testnet.mog.xyz/risk/#wallets-and-sessions).
