Skip to content

Bring Your Own Key (BYOK)

Bring Your Own Key (BYOK) connects Fontana to LLM gateways and model providers with credentials your organisation already holds. Fontana operates no shared vendor account for your workspace.

Your keys are stored in your deployment’s HashiCorp Vault. You approve which gateways and models are reachable, so chat, agent, workflow AI, and embedding calls all go through your contracts: spend, logging, retention, and training policy stay under your control.

How a BYOK key reaches a model callYou set or rotate a provider key on the API Keys page at organisation, team, or person scope. Fontana writes it to Vault, which never returns the value. When an agent, workflow step, or embedding needs a model, Fontana looks the key up by scope, person first, then team, then organisation, and the approved gateway routes the request to the provider under your own contract.SETSWRITESREAD AT CALL TIMEASKSKEYHTTPSYOUYouset or rotate a keyADMINAPI Keys pageorg, team, or person scopeSECRETVaultwrite-only, never shown againCALLModel callchat, workflow AI, embeddingsSCOPEKey lookupperson, then team, then orgGATEWAYApproved gatewayroutes with your keyPROVIDERModel providerunder your contract

You set a key once; Vault keeps it; every model call looks it up by scope and routes through the approved gateway under your contract.

BYOK keeps AI spend and data policy aligned with procurement you already run:

  • Your keys, your gateways: inference uses the keys and gateways you provision.
  • Contractual control: retention, training, and regional routing follow your provider agreements; see Zero Data Retention (ZDR).
  • Cost attribution: scope keys at organisation, team, or person level for clearer chargeback.
  • Fail-closed secret handling: keys are never returned to the browser or embedded in workflow config.

After you set keys, choose which gateways and models are allowed on Gateways and Models. BYOK supplies the credentials; those pages govern routing and the model catalogue.

BYOK values live in Vault only. They are write-only from AI → API Keys (/ai/api-keys): the page shows whether a key is set, when it was updated, and who set it, and never returns the raw value to the browser.

You can scope each provider key at three levels:

Scope Use when
Org (global) One deployment-wide key shared by all teams
Team A team-specific key for cost attribution or provider segregation
Person An individual’s key for personal or experimental use

At call time, Fontana resolves keys in order person → team (when a team context applies) → org. The first match wins, so a narrower scope overrides a broader one. For chat and agent turns, team context comes from a workflow the signed-in person can read. A key you set or rotate applies on the next model call.

Open AI → API Keys to set, verify, and clear keys per provider. Use the scope selector to choose org, team, or person before editing a provider card.

Step What you do
Set a key Paste or rotate the provider credential; Fontana writes it to Vault only
Verify Run the built-in check against the provider’s authenticated endpoint; the card shows Verified, Invalid key, or Unverified
Approve models On AI → Gateways and Models, choose which model ids agents and workflows may call
Embedding profile On AI → Embeddings, select the single active embedding profile: the platform’s own embedding service, an OpenAI-compatible gateway (OpenAI, OpenRouter, LLM API), or Amazon Bedrock Titan with your AWS credentials

Permissions: viewing keys requires platform:read. Setting or clearing keys requires platform:write; team-scoped keys require teams:admin for the selected team instead.

Supported providers include OpenAI, OpenRouter, LLM API, Anthropic, Groq, Google, Mistral, NVIDIA, AWS Bedrock (three-field credentials), Azure OpenAI (resource name and API key), Microsoft Foundry (OpenAI v1 endpoint and API key), Vertex AI (express-mode API key), Custom & Self-Hosted endpoints (base URL plus optional API key for Ollama, LM Studio, vLLM, and similar), and the other gateways on Gateways.

BYOK credentials feed every governed LLM path in Fontana:

Surface How BYOK is used
Agents and Flow chat Model calls for conversation, tool use, and automation
Workflow AI Natural-language operation compile and AI-assisted canvas steps
Knowledge Graph Embedding calls when the active embedding profile targets an external gateway (the platform’s own embedding profile needs no key)
Text-to-speech OpenAI and ElevenLabs voices use the same API Keys page

Gateway choice, model approval, and ZDR posture are configured on Gateways, Models, and Zero Data Retention (ZDR).

BYOK keys are for LLM gateways only. Connector credentials, MCP OAuth tokens, and REST API secrets use a different Vault path and their own settings ({{secret.NAME}} placeholders in workflow node config). See Data for connector secret handling and Tools and MCP for MCP credential storage.

BYOK configuration changes are in scope for the immutable audit trail, so you can trace every key change in your organisation.