Skip to content

Connecting Lighter

Lighter uses an API-key model. You generate a key on Lighter, paste it into fxyz, and from then on fxyz signs trades with it.

What you'll see

  1. In fxyz, open the Settings panel and click Connect Lighter (or click the Lighter connect card on the trade page).
  2. fxyz tells you what to do on Lighter's side: generate a new API key tied to your account.
  3. Paste the API private key into the fxyz dialog and confirm.
  4. fxyz validates the key against Lighter (this is how it discovers your account index and the key's index, so there's no manual data entry).
  5. Done. You'll see "Connected" next to Lighter.

The key never touches your browser's storage after the paste. It's encrypted on fxyz's side, and your browser forgets it the moment the dialog closes.

Why your funds stay yours

Lighter's L2 protocol routes any withdrawal back to your registered L1 owner address. The wire format has no recipient field, so nobody, including us, can redirect a withdrawal anywhere except your own L1 address.

On top of that protocol guarantee, fxyz's own Lighter client deliberately omits the withdraw and transfer operations. They are not in the surface that strategies you build can call. That's a second, independent wall.

Disconnecting

Click Disconnect Lighter. fxyz drops the encrypted key on its side immediately. To revoke fully, also rotate or delete the key on Lighter's own UI.

Funds stay on the exchange. fxyz can trade, never withdraw.