Settings (LLM provider)
Where: Settings in the sidebar (#/settings/llm). Step 5 of
Get set up links here.

The agents need a large language model to work. TruStacks uses your key, so the model spend is on your own account with the provider you choose.
In the Beta program you don’t need your own key to start: TruStacks gives you an Anthropic key at no charge, and you paste it here. It stops working when the Beta ends. Replace it with your own at least a day before the Beta ends: a new key reaches your runner when the runner next collects it, which can take up to two hours, and agent runs fail if the Beta key has stopped working by then. See LLM provider.
What you see
- A banner: either No LLM provider configured yet, or which provider is configured, the first characters of the key, the model if one is pinned, and when it was last updated.
- Provider: two cards, Anthropic (direct, console.anthropic.com) and OpenRouter (billing via OpenRouter).
- API key and Confirm API key. You paste the key twice, to catch a bad paste before anything is called.
- Model:
- With Anthropic: Model override (optional). Leave it blank to use the runner’s default.
- With OpenRouter: Model (required), and it must start with
anthropic/(for exampleanthropic/claude-sonnet-4-5).
- Save + rotate. While it works the button reads Saving…; when done, Saved at … with a note that the key is checked with a live call before it is used. What happened before that note depends on where your control plane runs; see What happens on save below. On a local or self-hosted control plane in the same cluster, the live check and the runner roll already happened before Saved at … appears, and a bad key fails the save instead.
What it means
The choice is your billing relationship, not the model. Both providers route to Claude Sonnet 4.5 or newer. TruStacks’ agents, prompts and policy expectations are tuned for that model family, so picking a different model family is not offered. The model field exists to pin a specific Claude release during a model rollover, not to swap vendors.
What happens on save (hosted):
- The control plane checks only the key’s shape (and, for OpenRouter, that a model is set). It makes no call with your key.
- It writes the key to a single-use secret in TruStacks’ secret store that expires after two hours. Its database keeps only metadata (provider, the key’s first characters, status), never the key.
- Your runner collects the key, sealed to its own key, writes the
trustacks-runner-llmSecret in its own namespace, and makes the live test call to the provider. The stored copy is then deleted. - Nothing is rolled. The runner uses the key from its next run.
If no runner collects the key within two hours, it expires and you save it again.
The banner doesn’t show the runner’s check yet. On the hosted product the banner reads configured as soon as you save, even before your runner has collected and tested the key. To confirm the key works, run an analysis: if it fails with an LLM or config error, check that your runner is connected on Runners and save the key again.
On a local or self-hosted control plane in the same cluster, the control plane makes the live call itself, writes the Secret and rolls the runner.
TruStacks keeps only a short prefix of the key for display.
What to do here
- Create a key in the Anthropic console or the OpenRouter dashboard.
- Pick the matching provider, paste the key twice, and (for OpenRouter)
enter an
anthropic/…model. - Save + rotate. To rotate a key later, paste the new one and save again.
Details on the Secret, rotation and egress are in the LLM provider reference.
How it connects
- Every agent run (analyses, proposals, gap analyses, rule drafts) uses this key. Without it, runs fail at the configuration stage, and the failure shows on Overview.
- The runner that receives the key is the one on Runners.
What the provider sees. While the agents work, they send your provider the context they need: prompts, your environment profile, and the contents of repository files they choose to read. That traffic goes from the runner in your cluster to your provider, under your key.
Beta limits
- One provider configuration per workspace. There are no per-Application or per-agent keys, by design.
- Outside the Beta, TruStacks-managed model billing is not offered; bring your own key. During the Beta, TruStacks provides an Anthropic key at no charge.