AI Providers in PanDev Metrics
TL;DR. AI Datavisor works with your own AI key (BYOK). Open Settings → Integrations → AI providers, click Add provider, pick Gemini, OpenAI, Anthropic or OpenAI Compatible, choose a model and paste the API key. PanDev Metrics checks the key before saving. Providers are set per department. Audience: admin.
How it works
- Each provider belongs to one department. A department may have several providers; one of them is the Default — Datavisor chats use it unless the user picks another provider.
- The first provider of a department becomes the default automatically. If you delete the default provider, the next enabled one takes its place.
- The API key is encrypted on the server (AES-GCM-256) and never returned to the browser.
- Without a provider, Datavisor answers only the demo questions from its built-in skills.
Before you begin
- PanDev Metrics is up and running (Cloud workspace or on-prem instance)
- Company admin, or department owner or maintainer
- An API key from the provider: Google AI Studio for Gemini, OpenAI Platform, Anthropic Console — or the address and key of your OpenAI-compatible gateway
- For on-prem: the PanDev Metrics server can reach the provider's API over HTTPS
Add a provider
- Select the department in the sidebar.
- Open Settings → Integrations → AI providers and click Add provider.
- In the New AI Provider window, fill in the form:
| Field | Value |
|---|---|
| Select provider type | Gemini, OpenAI, Anthropic or OpenAI Compatible |
| Model | Pick from the list or type your own model ID. Leave it as suggested if unsure |
| Base URL | Only for OpenAI Compatible: the gateway address, for example https://llm.example.com/v1 |
| Default for department | Make this provider the default for the department's chats |
| Provider name | Any name — it is shown as the model identifier, for example in the Datavisor input |
| API key | The provider's key |
- Click Add. PanDev Metrics sends a test request to the provider; on success the window shows that the provider is connected.
- Click Finish.
:::warning Requirements for an OpenAI-compatible gateway
The Base URL must use https:// and resolve to a public IP address. Addresses on a private network (10.x, 172.16–31.x, 192.168.x), localhost and link-local addresses are rejected, so a gateway available only inside your network cannot be connected this way. Publish it on a public HTTPS address with access restricted by key or firewall.
:::
Manage providers
The card menu of each provider has:
- Verify key — repeat the test request, for example after changing the model;
- Edit — change the name, model, address or key. Leave API key empty to keep the current one. A changed model, address or key is checked against the provider before saving: if the check fails, nothing is changed;
- Make default — make the provider the department's default;
- Delete — the department loses access to this model. This cannot be undone.
Verify
- The provider card shows the Ready status.
- Open AI Datavisor in the same department and ask a question about your data — the answer is written by the selected model.
Troubleshooting
Adding fails with "Connection error"
The provider rejected the test request. Check that the key is active and has billing enabled, and that the model ID exists for your account. For on-prem, check that the server can reach the provider's API.
The gateway address is rejected
See the requirements for an OpenAI-compatible gateway above: https:// and a public address only.
Datavisor says no provider is configured
Providers are set per department. Select the department you work in and add a provider there.
Related
- Guide: AI Datavisor
- How-to: Departments
- How-to: MinIO