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
- In fxyz, open the Settings panel and click Connect Lighter (or click the Lighter connect card on the trade page).
- fxyz tells you what to do on Lighter's side: generate a new API key tied to your account.
- Paste the API private key into the fxyz dialog and confirm.
- fxyz validates the key against Lighter (this is how it discovers your account index and the key's index — no manual data entry).
- 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. There is no recipient field on the wire. None. The protocol leaves no room for anyone — including us — to 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. Two independent walls; both stand.
Disconnecting
Click Disconnect Lighter. fxyz drops the encrypted key on its side immediately. For belt-and-suspenders, you can also rotate or delete the key on Lighter's own UI.