AI Model Keys
AI Model Keys is where you add your own AI provider keys so Cortex can call models for you. In the sidebar the row is AI model keys. On the page it is titled AI Credentials & Model Defaults.
What it is for
Cortex does not supply an AI key. You bring your own for each provider, and your requests are billed to it. The page says that if no key is set for a provider, requests to it are blocked. Keys are stored encrypted and only the last four characters are ever shown. They are used only for your own requests.
This is the same page that Nexus uses, opened inside the Cortex sidebar. So a key you add here is also available in Nexus, and the other way round. A full description of every tab is on the Nexus AI Model Keys page. This page covers what matters when you work in Cortex.
Open the page
Click AI model keys under Settings in the Cortex sidebar. The address is /memory/settings/credentials. The old address /memory/settings forwards to it.
The page header
- Three counters: how many keys are configured, how many are verified, and "X / 1 required defaults set". The last one is green once Chat / General is set, and amber until then.
- An amber banner appears when you have no model defaults at all. It says AI features will not work until you set at least Chat / General in the Model Defaults tab.
The page has six tabs. The first is the default.
| Tab | What it is for |
|---|---|
| API Keys | Add, verify and remove provider keys. Set spend limits. Test models |
| Model Defaults | Choose models per task. See Model Defaults |
| Private LLMs | Connect your own Ollama, LM Studio or other compatible endpoint |
| Model Keys | Create keys so your own applications can call models hosted by the platform |
| Agent limits | Decide when long runs pause for spend, token or time budgets |
| Usage | See your own spend and token use over 7, 30 or 90 days |
Add a key
Find the provider
The API Keys tab shows a card for each provider your administrator has enabled. If none are enabled, you see "No AI providers are available yet."
Screenshot placeholderScreenshot to add: Provider cards with Verified or Not verified badges. Open the card
Click the card to expand it.
Fill in the details
Enter an optional Label, then paste the API key. Some providers also ask for a Base URL or extra fields.
Save
Click Save Key (or Update Key if one exists). Saving always resets the key to Not verified.
Verify
Click Verify. The page asks the provider for its model list using your key. A toast tells you if the key worked.
Remove deletes a key straight away, with no confirmation.
Other things on the page
| Item | What it does |
|---|---|
| Platform AI Providers table | Summarises each provider as built-in, verified, saved but not verified, or not configured. Add key → or Edit opens its card |
| Connect with GitHub | For GitHub Copilot. You sign in with a code instead of pasting a key |
| Spend limit | Set an amount and a period (Daily, Weekly or Monthly). Calls are blocked when the limit is reached |
| Models & testing | Lists the models your key can use. Test sends one tiny real request with your key, which uses a little of your quota |
Cortex and your keys
Cortex uses your keys in two ways:
- Ask Cortex uses your Chat / General model. See Ask Cortex.
- Background work, such as sorting new memories and titling chats, uses the Cortex task models set on the Model Defaults tab. If those are blank, Cortex falls back to a built-in choice, but a key for that provider is still required.