Agent Desk
SECURITY MODEL

It can trade.
It cannot leave with your money.

Agent Desk never sees your seed phrase and never holds your wallet. Your server only gets a Lighter trading key, and during setup you lock that key to perp markets. Lighter then refuses any withdrawal or transfer it tries to sign. Everything below is verifiable.

What the key can do

  • Open and close perp positions on the markets you allow
  • Place, update and cancel orders, including stop-loss and take-profit
  • Change leverage on those markets

What it cannot do

  • Withdraw or transfer USDG
  • Deposit, or move funds to another account
  • Change the owner of the account
  • Touch a market outside the allowed list

Two signatures. No gas.

Setup asks your wallet to sign two plain messages. Nothing moves on-chain and no gas is spent.

  1. Register the key. The desk generates a fresh key and your wallet signs the registration message. The key is now attached to your Lighter account.
  2. Lock the key. Your wallet signs a second message listing the perp markets the key may trade. From that point, Lighter rejects withdrawals and transfers signed by it.

The wallet that owns the account stays yours. The server never stores the wallet's private key, only the trading key, in a file readable by the desk user only (mode 600).

Verify it yourself

Do not trust this page. Check the key on Lighter's own API, with your account index and key index:

curl "https://api.rh.lighter.xyz/api/v1/apikeys?account_index=YOUR_ACCOUNT_INDEX&api_key_index=42"

The response shows the public key registered at index 42. Your server stores the matching private key. The restrictions are set by the second signed message, whose exact text the desk shows you before you sign it.

Check the release you install

Every release archive is published with a SHA-256 checksum. Compare it before running the installer:

curl -fsSL https://agent-desk.fun/release/SHA256SUMS
curl -fsSLO https://agent-desk.fun/release/agent-desk.tar.gz
sha256sum agent-desk.tar.gz

The installer itself is plain shell: read it here before piping it to sudo bash.

The server and the agents

Agents

  • Run one at a time in an empty temporary folder, not in the desk's data folder
  • Get market data in the prompt; the trading key is never included
  • Answer with text only; the server parses one JSON decision and executes it itself
  • Every order is clamped to your limits before it is signed

Guardrails

  • Max leverage and max position size, enforced on every order
  • A stop-loss on every position, at most your max stop away
  • Daily loss limit: all agents pause
  • Close all: flattens positions, cancels orders, pauses

What remains possible

Be clear about the limit of this model: if your server is compromised, an attacker can still trade within your limits. They cannot withdraw. The agent CLIs also run as the same OS user as the desk, so a malicious CLI could read what that user can read; the empty folder and the prompt are not a hard sandbox. The restricted key is what limits the damage. The same restrictions apply on mainnet. That is why you should run the desk on a dedicated small server, keep the limits tight, and use the daily loss stop. Leverage can lose money fast and AI agents make mistakes.

Agent Desk is software you run yourself. It is not a fund, it does not promise returns, and it is not affiliated with Robinhood, Lighter or any AI vendor.

Report a vulnerability

Open a private advisory on GitHub or DM @Agent_Deskrh. Please do not disclose it publicly before a fix ships.

Join the founding desk See the testnet journal