Encord uses public/private key pairs as access keys. You register a public key with Encord and securely store the private key. The private key is then used for authentication. Learn more about public-key cryptography here.
Generating keys in Encord (Recommended)
- Navigate to the Public keys section of the Settings to create, register and manage your public keys.

- Click the New Key button to add or generate a new key.

- Give the public key a meaningful name.
-
Click Generate key pair to generate a new public/private key pair.
The public key field is automatically populated, and a
.txt
containing your corresponding private key is downloaded.
You must click Create to create your API key. The Create button becomes available once both fields are populated.

- Click Create to add your public key to Encord. The key is now listed in the Public keys section along with an ID that serves as a unique identifier.
Key names do not have to be unique, but the keys themselves do. Attempting to upload a duplicate key results in an error.
Creating keys using Terminal / Powershell
We strongly recommend using the Encord app to generate public-private key pairs.
- Linux/macOS: the default terminal
- Windows 10 & Server 2019/2022: Powershell
- Open Terminal or Powershell.
-
Run the following command:
-
Press enter to accept the default file location or modify as required:
MacWindowsLinux
-
[IMPORTANT] Leave the passphrase blank:
Ensure that the private key you have generated is not protected by a passphrase. Password-protected private keys cannot be authenticated in Encord. All private keys generated on the Encord platform are not password-protected by default.
/path/to/your/key/id_ALGORITHM
contains your private key (which you should keep secure);/path/to/your/key/id_ALGORITHM.pub
contains your public key (usually in a file ending in .pub).
-
Copy the contents of the public key file. For that, execute:
- Navigate to the ‘Public keys’ section of the Settings to create, register and manage your public keys.

- Enter a title for your public key in the first field, and paste your public key in the second field. The Create button will become available once both fields have been populated.
- Click Create to add your public key to Encord. It will now be listed showing the key’s name, as well as a signature that serves as a unique identifier.