# What is AI Provider Management?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Models & AI. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/provider_ai_management/

## What it can do

Open **Settings → Models & usage → Provider Management** and tap the persistent **Let AI help configure it** banner at the top of the list. Inspect settings, test connections, discover models, and compare providers or plans; the colorful AI icon in the top-right corner opens the same entry.

## How to recognize this entry and mode

The first time you open Provider Management, the app shows a one-time introduction to AI management where you can tap **Choose a management model** right away; once dismissed, it will not pop up repeatedly. The **Let AI help configure it** bar at the top remains visible permanently so you never have to remember a hidden entry point.

Once inside, the title bar permanently shows **AI Provider Management** and **Management mode**, so it cannot be confused with regular chat; actual changes such as saving configurations still ask for your confirmation beforehand. Management sessions are preserved automatically: you can leave mid-way anytime and pick up where you left off via **Resume last AI session** at the top of Provider Management. You can view, resume, or delete all sessions under **AI Session History** on the Provider Management page or in the management session's title-bar menu. That title-bar menu also offers message navigation and **Clear this conversation**: clearing removes all messages and version history in the current session without affecting configurations you have already saved. Management sessions are stored only on your device (and synced with backups) and never appear in any assistant's conversation list.

You can ask the AI directly to:

- Inspect settings, test connections, and organize providers or models.
- Compare providers, plans, and models using current official information.
- Discover model lists from standard endpoints.
- Search the web for provider documentation, API formats, and model capability details.
- Create, edit, or disable providers, or modify model capabilities.
- Parse, deduplicate, and merge real model lists you copied from a web page into a specified provider.

You stay in control: configuration changes require confirmation. Network scripts can temporarily use existing keys; review them before running.

## Choose a management model first

Whenever you enter from Provider Management, the app lists your currently enabled text chat models. Recommended choices at the top prioritize the last-used model, your default chat model, or models known to support tool calling. This choice applies only to AI Provider Management and does not alter your default chat model or the current model in regular chats.

You can choose a model whose capabilities are not yet confirmed; tool calling will be verified on your first message. If a model or endpoint does not support tool calling, or if the chosen model is later disabled, the page notifies you clearly and reopens the model picker.

## Read vs. write actions

Viewing settings, running connection tests, and discovering models are read-only actions. Creating, editing, or deleting providers—as well as adding/removing models or changing model capabilities—are write actions: the model can only propose structured changes, and a tool confirmation panel showing the key parameters appears before execution.

Deleting a provider or removing models uses an emphasized red confirmation dialog and warns that the action cannot be undone from the confirmation panel. Built-in providers managed by your account or cloud service (such as the free trial) are protected at a low level and cannot be deleted, though you can disable them when not needed; other preset providers can be deleted and added back later from the provider catalog.

## JavaScript capabilities

Management mode can use local QuickJS to parse non-standard lists you paste in, clean JSON, deduplicate model IDs, and make direct network requests. Standard connection tests and model discovery prefer the app's native services; when dealing with non-standard endpoints, custom request bodies, or raw response inspection, the AI first displays a JavaScript execution confirmation, then calls `providerFetch` to automatically attach the provider's existing credentials and send real requests. When testing a new provider, save the provider configuration first before requesting credential injection for it. `getLocalSecret` and `getProviderCredential` no longer return keys to scripts; `CUBEKEY` is a reference generated when a key is saved in management mode—it is not an assistant environment variable name, and its number must not be guessed.

## Privacy and key security

AI Provider Management sends your management conversation—along with necessary metadata such as provider names, Base URLs, API paths, model IDs, configuration status, and test results—to the management model you selected. When web search is used, search queries and target URLs are also sent to the corresponding search or web services. Do not include internal addresses, customer data, or other sensitive content you do not wish to share with those services.

Provider API keys, the active key in a multi-key setup, and authentication headers flagged as sensitive are never returned to the model by provider inspection tools. They are temporarily injected into local QuickJS only after you approve a JavaScript run, at which point the script can send authenticated requests to network URLs written in the code. Account-session built-in providers never expose Session Tokens to scripts and always use native connection tests.

Raw credentials in script logs, return values, and errors are redacted again, but automatic detection is not absolute protection: a script that intentionally encodes, splits, transforms, writes a key to an output file, or forwards it in another network request could bypass string redaction. For that reason, the confirmation panel displays the script code; before approving, verify the provider ID, target domains, and script purpose, and cancel immediately if you see unfamiliar domains, credential printing, file writes, or secondary forwarding. When adding or replacing keys, use the **Save a Key** button in the input bar—keys are saved only on your device and appear in chat solely as a `CUBEKEY` reference (which can be saved into provider configs but cannot be read in plaintext by scripts)—or enter them in the native Provider Details form. If a key has already been pasted into chat in plaintext, you can let the AI save it (a confirmation panel still appears with the key masked); however, because the key was already sent to the management model's provider in chat, revoke or rotate it in your provider's console as soon as possible and update the new key in Cube Agent.

Management mode also provides web search and web page reading. When you are unsure about a provider's rules, endpoint URLs, or capability fields, the AI can check public documentation and official pages first and combine those findings with your local setup to make recommendations. Information found online is never written directly to your local configuration without your confirmation.

## Recommended prompts

- "Inspect my current provider settings and tell me what might be misconfigured."
- "Test whether this model connects—check only, do not change anything."
- "Here is the model list from the provider's webpage; deduplicate it and save it to that provider."
- "Update this model to support vision and tool calling while keeping all other capabilities unchanged."

The AI reads your actual configuration before acting and re-reads to verify after writing. The current version manages providers and models only—MCP, Skills, and assistants remain managed on their own pages.
