BYOK is available exclusively on the Business plan. It is not available during a trial period, as it involves a credential-bearing configuration that persists beyond the trial. Contact sales@knoq.one to upgrade or to discuss Business plan pricing.
How BYOK works
When you configure a BYOK key, Knoq loads it from its encrypted credential store at the start of each model call and passes it directly to the AI provider. The key is:- Encrypted at rest — stored using the same AES-256-GCM encryption used for all integration credentials.
- Never stored in plaintext beyond the in-memory lifetime of a single model call.
- Never logged or returned via API — no endpoint exists to read back a saved BYOK key.
- Write-only from the moment it is saved — Knoq confirms the key is saved but cannot display it again.
Prerequisites
Before setting up BYOK, confirm the following:- Your organization is on an active Business subscription (not a trial).
- You have an Admin role in your Knoq organization.
- You have an API key from a supported AI provider — Anthropic (Claude models) and other supported providers are available. Obtain an Anthropic key from console.anthropic.com.
- You have stored a copy of the API key in your own secure secret store before proceeding.
Setting up BYOK
1
Open AI Provider settings
Sign in to Knoq and navigate to Admin → Settings → AI Provider. You must have the Admin role to access this section.
2
Add your API key
Click Add Key. Select your provider from the dropdown, then paste your API key into the field provided.
3
Save and confirm
Click Save. Knoq will encrypt the key and store it. The field will display a masked placeholder (e.g.
sk-ant-••••••••••••xxxx) to confirm the key is saved. The plaintext key is not stored and cannot be retrieved.4
Verify BYOK is active
Return to the AI Provider settings panel. A status indicator will show BYOK active when the key is configured. Ask a test question in the chat interface to confirm model calls are routing correctly.
Key rotation
To rotate your BYOK key — for example, after a credential rotation policy cycle or a suspected exposure:- Generate a new API key from your AI provider’s console.
- Store the new key in your secret manager.
- Navigate to Admin → Settings → AI Provider in Knoq.
- Click Update Key, paste your new key, and save.