Skip to content

How to configure AI providers#

Connect LLM providers to power Lens Prism in Lens Desktop. You can configure multiple providers and switch between them.

Navigate to Preferences > Integrations > AI & Intelligence Integrations.

Prerequisites#

  • A Plus, Pro, or Enterprise subscription plan. For details, see Lens Pricing
  • An API key from your LLM provider (Anthropic, OpenAI, Azure OpenAI, or any OpenAI-compatible endpoint), unless you use the built-in Lens (research preview) provider

Note

If your plan does not include Lens Prism, a lock icon appears in the AI Integrations section with an Upgrade your plan to use Prism AI link.

Add a provider#

  1. Open Preferences > Integrations.
  2. In the AI & Intelligence Integrations section, click Add provider.
  3. In the dialog, select a Provider Type from the dropdown.
  4. Enter a Name for the provider (for example, "My AI Provider").
  5. Fill in the required fields for your chosen provider type (see the table below).
  6. Click Add.

Info

With the selected provider, Lens Prism connects directly to your configured endpoint. No data is sent to Lens services.

Provider type reference#

Provider type Required fields Optional fields
Anthropic API Key (for example, sk-ant-...) Custom System Prompt
OpenAI API Key Custom System Prompt
Azure API Key, Resource Name, Model IDs API Version, Context Window Size, Max Output Tokens, Custom System Prompt
OpenAI-compatible API Key, Base URL, Model IDs Context Window Size, Max Output Tokens, Temperature, Custom System Prompt
Lens (research preview) None Custom System Prompt

Custom System Prompt#

The Custom System Prompt field is available for all provider types. Text you enter here is appended to every prompt sent to the provider. Use it to tailor Lens Prism responses to your workflow.

Examples: "Explain like I'm new to Kubernetes", "Check CRDs for more info", "Speak in Finnish".

Verify that the provider appears in the expanded table with its name and type.

Tip

Give each provider a descriptive name (for example, "Production OpenAI" or "Local LLM") so you can distinguish between multiple configurations.

Manage providers#

Click the status indicator in the AI & Intelligence Integrations section to expand the provider table. Each row shows:

  • Provider name: the name you assigned during setup
  • Provider type: Anthropic, OpenAI, Azure, OpenAI-compatible, or Lens (research preview)
  • Row menu: edit or remove the provider

To edit a provider, click the three-dot menu on its row and select the edit option. To remove it, select the delete option from the same menu.

Enable Lens Prism#

The Lens Prism toggle controls whether the AI assistant is active in the Lens Desktop UI.

  1. Open Preferences > App.
  2. Toggle Prism AI on.

Warning

Enabling Lens Prism without a configured provider means the assistant cannot generate responses. Add at least one provider in the Integrations page first.

Multiple provider configurations#

You can add more than one configuration of the same provider type. This is useful when you:

  • Use different API keys for different teams or projects
  • Connect to both a cloud and a self-hosted OpenAI-compatible endpoint
  • Test a new provider alongside your current one

Each configuration has its own name, credentials, and model settings.