Configuring 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.
You can configure an API key from the Create Workspace page or from User Preferences.
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:
$ which gemini $ echo $GEMINI_API_KEY
| The API key is available in all workspaces in your namespace, including already running ones. |