> For the complete documentation index, see [llms.txt](https://docs.insilicoterminal.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.insilicoterminal.com/documentation/setup/creating-an-api-key/creating-a-lighter-api-key.md). Agents can also search and read this documentation through its [MCP server](https://docs.insilicoterminal.com/documentation/~gitbook/mcp).

# Creating a Lighter API Key

{% embed url="<https://youtu.be/Rd54tCKwd_I>" %}

#### Prerequisites

Before starting, ensure you have:

* A browser wallet (e.g., Rabby) set up.
* If you don't have a Lighter account yet, make sure your wallet has some ETH for gas and USDC to deposit, both on Ethereum mainnet.&#x20;

"Choose **BROWSER WALLET**, **WALLETCONNECT** or **MANUALLY ADD API KEY**."

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FbGH6hDSMh4UgaBNL6tIG%2Fconnect-lighter.png?alt=media&amp;token=e0672d57-07e0-4980-b311-5d5a5cbbb7af" alt=""><figcaption></figcaption></figure>

If you don't have an account yet, create one and deposit USDC from Ethereum mainnet.&#x20;

Otherwise select the account you want to trade with.

Sign to register your trading key and the builder fee in your wallet, give your account a name and you are ready to trade Lighter through Insilico Terminal.

## Adding Lighter to the Terminal manually by using an API Key&#x20;

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FWQcYSi1bqLZjCYzclIBA%2FScreenshot%202026-05-13%20at%2011.46.39.png?alt=media&amp;token=6905d4b1-24b7-4bf8-96cc-dbfb896b5501" alt=""><figcaption></figcaption></figure>

* **Generate API Key and Secret**:

  * Visit the [Lighter API ](https://app.lighter.xyz/apikeys)Page to create a new API Key.
  * Choose an unused **API Key Index** and authorize it.
  * **Private Key**: The API Private Key.
  * **Account Index:** Press the wallet icon in the top right and go to **Explorer.** Your account index will be displayed at the top.&#x20;

  <div><figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FDnUKWZ1Ma3pPwZCDRx5i%2FScreenshot%202026-05-17%20at%2017.30.20.png?alt=media&amp;token=c9d63ba6-b54f-4428-8e6f-94bdc5aebf74" alt=""><figcaption></figcaption></figure> <figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2F5v6LTcAuHkpvkUKntASY%2FScreenshot%202026-05-17%20at%2017.36.13.png?alt=media&amp;token=394edac0-3265-4c26-b836-6b36822fbdbf" alt=""><figcaption></figcaption></figure></div>
* **Manually Add API & Secret Key**:
  * Open the **Insilico Terminal** and navigate to the **Accounts** section.
  * Choose **Lighter** from the list of available exchanges.
  * Check the option to "Manually add API Key".

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FfRkbcxDukQ4cOBXCO3l8%2Fconnect-lighter-manual.png?alt=media&amp;token=30d1198e-e661-43d2-b098-afe36f04c19b" alt=""><figcaption></figcaption></figure>

* **Connect**:
  * After entering the required details, click on the **Connect** button.
  * Ensure the connection is successful before proceeding with your trading activities.
* **Save the Configuration**:
  * Once connected, click on **Save** to store your settings.

{% hint style="info" %}
The builder fee on Lighter is 1bps.
{% endhint %}
