Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

API Key Management

To avoid storing the API keys in the settings, jupyterlite-ai uses jupyter-secrets-manager by default.

The secrets manager gets the API keys from a connector in a secure way. The default connector of the secrets manager is in memory, which means that the API keys are reset when reloading the page.

To prevent the keys from being reset on reload, there are two options:

Option 1: Use a remote connector

Use a connector that fetches the keys from a remote server (using secure REST API, or WebSocket).

This is the recommended method, as it ensures the security of the keys and makes them accessible only to logged-in users.

However, it requires some frontend and backend deployments:

Option 2: Disable the secrets manager

Disable the use of the secrets manager from the AI settings panel.