---
description: 'Watch our instructional video or follow the steps below:'
---

# Creating an OKX API Key

{% embed url="https://www.youtube.com/watch?v=lbfe9FtJNHw" %}

In order to add an OKX account you will firstly need to create an account by clicking here: [https://www.okx.com/join/73702724](https://www.okx.com/join/73702724)

The link can also be found in your settings menu, click on accounts then the OKX tab. You can click on the button that states "OKX API Keys"





<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FsUh9XkLWvb5SjvD3fmX5%2FScreenshot%202025-08-01%20at%209.09.44.png?alt=media&#x26;token=82dcc836-6407-4cb6-8b7f-bb344677d5cf" alt=""><figcaption></figcaption></figure>

Click on the user-icon in the upper right corner to open a drop-down menu.

Select **API keys**.

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FOdsO1M28j9C5r0J3HfpQ%2Fscreenshot%202023-09-04%20um%2012.04.44.png?alt=media&#x26;token=3f116555-f5dd-4557-8f6a-855e389a80db" alt=""><figcaption></figcaption></figure>

Choose if you want to create the API key for your main account or a sub account.

Click on **Create V5 API key**.

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FVG0MaEpuPYELS0TiyTn2%2Fscreenshot%202023-09-04%20um%2012.10.08.png?alt=media&#x26;token=97ea9edb-3be2-4636-868f-2f222775a0e9" alt=""><figcaption></figcaption></figure>

In the next form, select **Linking thirt-party apps** and select **Insilicoterminal.** In doing so the API key will automatically be restricted to the IP addresses of the Terminal.

Enter a name for the API key.

Enter a Passphrase. **Make sure to retain your passphrase for the API key**, as it will be required when adding to the Terminal.

Enable **Trade** for the Permissions.

Click on Confirm. You will be asked for a verification code / 2FA .

&#x20;

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2Fnn7gm1VdbR7MmMHuzm4P%2Fscreenshot%202023-09-04%20um%2012.13.51.png?alt=media&#x26;token=dad86e12-1a6c-4bcf-b8f0-9567212c2535" alt=""><figcaption></figcaption></figure>

From the next menu you can now copy your generated **API key** and the **Secret key** and add it to the Terminal.&#x20;

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FIsDEs39JqM4li8iPCiVd%2Fscreenshot%202023-09-04%20um%2012.35.26.png?alt=media&#x26;token=0ffde8b1-dd8f-452a-aafe-0d36b667c73e" alt=""><figcaption></figcaption></figure>

In the Terminal proceed to the 'Settings' section. From there, navigate to the 'Account' tab, where you will be welcomed by a screen as seen below. Choose a name for the account, input the **API key** and the **Secret key** into the respective fields and ensure that you include the **Passphrase** you generated.

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FEPcR9UK7SDYfsqvt4g3M%2FScreenshot%202025-08-01%20at%209.10.22.png?alt=media&#x26;token=e0034600-ce22-44c0-9d74-6cace32665bd" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please make sure to set your OKX account mode to at least Single-currency margin in your trading settings.
{% endhint %}

<figure><img src="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FpqoWjkHbVtn1hHTnUspI%2Fscreenshot%202024-01-30%20um%2011.17.47.png?alt=media&#x26;token=7711b978-9429-4407-b112-9835c6bec63f" alt=""><figcaption></figcaption></figure>

### IP Access Restrictions \[Optional]

If you want to manually set up the API key for the Terminal in OKX (by setting up a general API key and not one which is linked to a third-party app), you will need to whitelist the IP addresses of our Terminal servers. You may copy and paste all the IP addresses provided below:

```
18.167.89.125,18.167.8.216,43.198.26.42,18.166.216.236,18.163.207.89,43.198.196.202,43.198.149.125,43.198.214.66,18.167.53.222,18.166.252.235,16.163.177.207,18.167.243.99,18.167.32.21,18.166.224.0,18.166.106.248,18.162.176.190,16.163.65.4,18.167.188.106,16.163.19.198,18.167.49.196
```

{% hint style="info" %}
**Make sure you copy all the IP addresses, there should be 20 in total!**
{% endhint %}
