Configure an AI provider API key
Configure an AI provider API key so that it is automatically injected as an environment variable into all your workspaces.
-
Your administrator has enabled at least one AI provider.
-
You have a valid API key from your AI provider.
-
Configure the API key using one of the following methods:
-
From the Create Workspace page:
-
Navigate to Create Workspace.
-
In the AI Provider section, expand Choose an AI Provider.
-
Click the provider card.
-
Enter your API key and click Save key.
A Key configured badge is displayed on the provider card.
-
-
From User Preferences:
-
Navigate to User Preferences > AI Providers Keys.
-
Click Add API Key.
-
Select the AI provider and enter the API key.
-
Click Save.
To update or delete a key, use the edit or delete icons in the table row.
-
-
-
Start a workspace with the configured AI provider.
-
Open a terminal and verify that the tool binary is in
PATHand the API key variable is set:$ which <binary_name> $ test -n "$<ENV_VAR_NAME>" && echo "API key is configured"
Replace
<binary_name>and<ENV_VAR_NAME>with the values for your provider (for example,geminiandGEMINI_API_KEYfor the Gemini provider).
| The API key is available in all workspaces in your namespace, including already running ones. |