Brume · Docs
BYOK

Configure API keys (BYOK)

The Administration → BYOK screen: the credit wallet, direct accesses per brand, external services, and custom providers.

In brief

The BYOK screen gathers an organization's inference sources: the Brume Credit wallet, one key per model brand, external services, and your own OpenAI-compatible endpoints. Only an organization administrator writes there.

Brume works with your own keys (BYOK, Bring Your Own Key): your direct contract with the provider, your invoice. Brume Credit is a convenience laid on top. The screen lives in Administration → BYOK; it requires the CAN_MANAGE_API_KEYS permission, granted by default to the organization Administrator role only.

What the screen gathers

BlockWhat it holds
Brume CreditsThe organization's wallet: one credit for every brand, one invoice. Present when the instance is linked to the Brume cloud.
Custom providersYour OpenAI-compatible endpoints, with discovery of their models.
Direct accesses (your keys)One key per brand: Anthropic, OpenAI, Mistral, Google, DeepSeek, xAI, Moonshot, plus transcription (AssemblyAI, Gladia).
External services (your keys)Web search (Serper) and code execution (Daytona).

Save a key

Paste the key into the brand's card, then save. The key is encrypted at rest; only a partial hint remains visible afterwards, and the full value is never readable again. Keep it on your side.

The seven model brands — Anthropic, OpenAI, Mistral, Google, DeepSeek, xAI, Moonshot — are tested when you save, Anthropic with no special standing: Brume asks the brand for its list of models, a free call that consumes no credit. The card's badge carries the verdict as soon as the save returns.

A failed test never rejects the key

The test informs, it does not arbitrate: the key is saved either way, including when the brand rejects it or fails to answer. This is deliberate — a brand that is momentarily unreachable must not stop you from preparing your configuration. What the failure does change: the card shows Invalid key or Provider unreachable, and a rejected key is not added on its own to a routing policy that had none.

Transcription (AssemblyAI, Gladia), external services (Serper, Daytona) and connectors have no catalogue to query: their key is saved without a test, and its validity shows on first use.

Read an access state

The state reads on the badge of the brand's card. Open "Test details" for the long version: what Brume asked, the "Tested on…" timestamp, the provider's raw answer, and a Run the test again button that re-measures on the spot.

StateWhat it says
Key validThe brand answered and accepts the key.
Key not routedThe key works, but no routing policy sends work to this brand.
Provider credit exhaustedYour account with the brand is out of credit.
Invalid keyThe provider rejects the key.
Provider unreachableThe provider did not answer — a passing outage, or a network blocking the call.
CheckingA key is saved, no test has completed yet.

When this state refreshes. Saving or deleting a key expires its state immediately and triggers a new test, with no wait: the screen converges within seconds. The test also runs in the background, where a state older than fifteen minutes counts as stale. A pair left idle for seven days stops being tested at all; your next visit to the screen restarts it. And "Run the test again" consults none of these delays.

Rotate a key

Replace the key in the brand's card and save: the replacement is immediate server-side. Brume reads the key from the database on every call, never holding it in memory, so the new key serves from the next message onwards. A reply already being generated finishes with the key it started under — you have nothing to interrupt, and nothing is lost. Revoke the old key with the provider only after you have seen the card go green again.

Understand the serving order

When an organization has both, your keys come before Brume Credit: Brume serves through direct access first, and falls back to credit next. Choosing the model per type of use (generation, filter, moderation, vision, embeddings, transcription) is not set here: it belongs to the orchestration policies.

Inheritance into workspaces

A key saved at organization level serves every workspace. A workspace can receive a key of its own, entered from that workspace's administration drawer; it then takes precedence over the organization key, for that workspace only. Inheritance never runs the other way: a workspace key does not travel up to the organization, nor across to neighbouring workspaces.

The API keys tab in a workspace's settings no longer takes a key: it now carries the workspace routing, that is its policy profile and its models pinned per use.

When the instance forbids BYOK

The instance operator may allow credit only. In that case every key save is refused with an explicit message, at organization level as well as workspace level. The setting lives on the operator's side, outside the organization.

As long as an organization has neither a model key nor a Brume Credit link, its agents cannot work: an administrator who signs in is taken to the setup assistant, which sets the policy, the embedding space, then access. The full instance-side path is described in Getting the instance running.

On this page