This guide explains how to create and configure an Agent Wallet for secure trading on Lighter.
- ✅ More Secure: Never expose your main wallet private key
- ✅ Limited Access: Agent only has trading permissions
- ✅ Revocable: Can be disabled anytime
- ✅ Separate Funds: Keep main holdings safe
- A Web3 wallet (MetaMask, WalletConnect, etc.)
- Access to Lighter
- Visit Lighter
- Click Connect Wallet
- Choose MetaMask, WalletConnect, or other Web3 wallet
- Approve the connection
- Navigate to Settings or API section
- Look for Agent Wallet or Trading Wallet option
- Click Create Agent or Generate New Wallet
- Approve the transaction if required
After creation, save these immediately:
| Field | Description |
|---|---|
| Main Wallet Address | Your connected wallet address |
| Agent Wallet Address | Generated agent wallet address |
| Agent Private Key | Private key for the agent wallet |
Add your agent wallet through the NOFX web interface:
- Open NOFX dashboard (http://localhost:3000)
- Go to Exchange Configuration
- Enable Lighter
- Enter:
- Wallet Address: Your main wallet address (with
0x) - Private Key: Agent private key (remove
0xprefix)
- Wallet Address: Your main wallet address (with
- Save configuration
- Go to Lighter Settings
- Find your agent in the list
- Click Revoke or Delete
- Deposit supported assets to Lighter
- Agent wallet will trade using deposited funds
- Use agent wallet instead of main wallet private key
- Store agent private key securely
- Revoke unused agents
- Monitor agent activity regularly
- Keep main wallet funds separate from trading funds
| Issue | Solution |
|---|---|
| Agent not working | Check if agent is still active |
| Invalid signature | Ensure private key doesn't have 0x prefix |
| Insufficient funds | Deposit funds to your Lighter account |
| Connection error | Check network settings |