Skip to content

Models & secrets

Lunen calls models through providers your organization connects under Settings → Access (in the Provider Management group): OpenAI, Anthropic, and Google Gemini with an API key, a LiteLLM proxy you run, or Amazon Bedrock in your own AWS account. Credentials live in a vault, namespaced to your organization, and are write-only from the moment they are saved. There is no environment-variable fallback and no key baked into the platform.

Updated 16 October 2026 · 11 min read

API keys

The OpenAI API Key, Anthropic API Key, and Google Gemini API Key rows each take one key. Paste API key and Save; the row thereafter shows only Configured and when it was last updated. To rotate a key, Delete it — there is no confirmation — and paste the new one; the value itself can never be read back.

Key permissions are per provider: manage, list, use, and delete each resolve against the specific provider’s secret, so a role can, for example, see that OpenAI is configured without being able to change it. The Access page lists only the providers you may see, and a row you cannot manage reads You don’t have permission to manage this secret. Every save and delete lands in the audit log as secret.upsert or secret.delete, without the value.

Note

API keys are not validated on save. A wrong or unfunded key surfaces at first use as a provider error on the run — if agents suddenly report quota or credential errors, the Access page is the first place to look.

A LiteLLM proxy

The LiteLLM Proxy card points Lunen at a LiteLLM proxy your organization runs and curates which of its models members see. Setting it up:

Connect the proxy

Enter the Proxy base URL — the root, without /v1, on https — and an Admin key (for catalog sync), which is write-only and should be able to see every model on the proxy. Test connection checks that the proxy answers.

Pull and curate the model catalog

Pull model catalog reads the proxy’s aliases into the Model catalog table. For each alias set its Context window, its capabilities — Tool calling, Reasoning (with the Reasoning effort levels members may pick), Files, and Web search — and whether it is Exposed in the model picker. An alias reaches pickers only when it is exposed, has a context window, and has tool calling on. Save stores the catalog.

Pulling again later keeps your per-model settings for aliases that remain. Lunen also re-reads the catalog in the background every six hours; aliases it finds that way arrive unexposed, so nothing new reaches members until you expose it.

Calls through LiteLLM run on each member’s own virtual key, not on the admin key. Members connect theirs under Settings → Providers (in Your Preferences), which appears once the organization has a LiteLLM proxy: Paste virtual key and Connect, and Lunen checks the key against the proxy before storing it. Until a member connects one, LiteLLM models are missing from that member’s pickers, and a member’s picker shows only the exposed aliases their key may call.

An optional Key service — a service your organization runs that issues each member a virtual key — lets members choose Get my key instead of pasting one, and Lunen refreshes issued keys before they expire. Test mapping asks the service for a key using your own email.

Warning

Deleting the LiteLLM proxy configuration also disconnects every member’s virtual key.

Amazon Bedrock

The Amazon Bedrock card runs models in your organization’s own AWS account. Lunen assumes an IAM role you create there and stores no AWS keys. The card appears when your Lunen deployment offers Bedrock.

Start setup

Set up Amazon Bedrock mints your organization’s external ID.

Create a role in your AWS account

Step 1. Create a role in your AWS account shows four values to copy: Lunen’s role ARN, your External ID, the Trust policy, and the Permission policy. The trust policy lets Lunen’s role assume yours only with your external ID, and lets it tag the session; the permission policy allows streaming model calls and listing the models and inference profiles the account offers. You can narrow the policy’s model resources to the models you use. Lunen also applies the same permission policy to every session it opens, so a broader role still acts with no more than that.

Connect the role

In 2. Connect the role, enter the Role ARN and Region, and choose Routing: Geographic (the default) uses the region’s geographic inference profile, which can route within its geography; Global can route to any region, at a lower price. Geographic routing hides models AWS offers only through global profiles. Save and look up models saves the setup and lists the models Lunen can use in that region; Send test message then checks a model end to end.

When a step fails, the message says what AWS refused — the trust policy, the session tag, model listing, or a model not enabled for your account in that region. The model list refreshes when you save the setup or choose Look up models again.

Bedrock models are never picked automatically: members choose one in the model menu, or an administrator sets one under Model Defaults.

Which providers a member may use

A member can use the intersection of two sets: providers the organization has connected, and providers the member holds secret.use on — and, for LiteLLM, only with their own virtual key connected. An interactive session re-resolves that list on every turn, so a revoked permission or a new key applies to the next message. A Task Agent checks its owner’s providers when it is saved and runs on that list.

The model catalog

Every model Lunen offers can call tools. Without a proxy or Bedrock, these are the models available:

ProviderModels
OpenAIGPT-5.6 Sol · GPT-5.6 Terra · GPT-5.6 Luna
AnthropicClaude Opus 4.8 · Claude Sonnet 4.6 · Claude Opus 4.6 · Claude Haiku 4.5
GoogleGemini 3.5 Flash · Gemini 3.1 Flash Lite

LiteLLM aliases and Bedrock models join the list from your own configuration. Settings pickers label every model name · provider. Audio and video attachments are supported on Google models only. An agent or session saved with a model Lunen has retired runs on the role default instead.

Models with a reasoning mode show a reasoning effort control — Low, Med, High, X-High, Max, as the model offers them — beside the composer’s model picker, and under Effort in a Task Agent’s Runtime Model. Models without a reasoning mode hide it.

How a model gets chosen

Lunen resolves a model per role — planning, task execution, and conversation each have a default per provider — and lets people override it, most specific first:

  1. Per turn — the model picker in the chat composer.
  2. Per agent — the Runtime Model section of a Task Agent’s side panel, independent of the model used during planning.
  3. Per member — Settings → General (the Preferences page): a Planning model and Execution model under Task Agents, and a Planning model and Chat model under Conversation Agents. Each can be left at Organization default.
  4. Per organization — Settings → Model Defaults, the same four choices for every member whose preference is Organization default. Each can be left at System default; changes save as you pick and confirm with Organization defaults saved.

If none of those apply, the role default for the organization’s connected providers is used. Resolution fails closed: with no provider connected, agents stop with an explicit error instead of silently falling back, and the model pickers in Settings read No models are available yet. Add a provider API key under Settings → Access first.

Warning

Provider-native web search is executed inside the provider, not through an MCP server — it bypasses your organization’s tool policies and is not audited the way MCP tool calls are. It is off for Bedrock models and for LiteLLM aliases without Web search. If that matters for your governance posture, prefer a search MCP server you can policy-gate.

Other secrets

Other kinds of secret share the same vault but are managed elsewhere: MCP server credentials and OAuth clients (from the MCP Registry and Connected Services), members’ LiteLLM virtual keys (from Settings → Providers), and per-trigger webhook secrets (from a Task Agent’s webhook triggers). None of them can be read back out of the product — a webhook secret is shown once, when it is created or rotated, and only its last few characters after that.