> 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).

# 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;

Pick your wallet of choice.&#x20;

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FCXCJzlucwC6uGh34WW3w%2FScreenshot%202026-04-28%20at%2012.32.09.png?alt=media&amp;token=94b4f533-cdf5-4869-a452-034a3c365b77" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2F0B1RRCXs7ASjRC8JQJSC%2FScreenshot%202026-04-28%20at%2012.51.23.png?alt=media&amp;token=229d5e32-388a-42a9-b9bb-1cd839c8ac46" alt=""><figcaption></figcaption></figure>

Otherwise select the account you want to trade with:&#x20;

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FdD6U6pxgFv2awy7HnQ4w%2FScreenshot%202026-04-28%20at%2012.49.36.png?alt=media&amp;token=9de6809a-1fc6-4331-8b6f-3723c4c463dd" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2Fq9AxdpptdBpVn4zgOHCs%2FScreenshot%202026-04-28%20at%2012.53.24.png?alt=media&amp;token=657efec9-e115-4f5b-a0e3-15868a7ce1a0" alt=""><figcaption></figcaption></figure>

## 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%2FhRNR4f3ttOO6v875JAHb%2FScreenshot%202026-05-13%20at%2011.50.55.png?alt=media&amp;token=8448e428-2917-4fef-b3d2-187303e9a6b8" 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 %}
