Desktop BYOK UI is in active development. The backend fully supports BYOK today — the CLI provides complete access. The desktop Settings panel for configuring your key directly from the chat panel is coming in an upcoming release.
What BYOK Does
By default, Trace uses hosted models on AWS Bedrock — no setup needed, and usage counts against your Trace plan. Bring Your Own Key (BYOK) lets you point the AI at your own provider key instead:- You pay your provider directly (Anthropic, OpenAI, or Google)
- Requests don’t consume your Trace quota (monthly budget or On-Demand credits are untouched)
- Same pipeline — Trace’s EDA prompts, tool schemas, research tools, and local tool execution all work identically
- Same quality — the AI reasoning, file editing, and validation workflow is unchanged
Supported Providers
| Provider | Default Model | Notes |
|---|---|---|
| Anthropic | claude-sonnet-4-6 | Same model family as Trace’s hosted default |
| OpenAI | gpt-4o | Chat Completions API |
| Gemini | gemini-2.5-flash | Google AI (google-genai SDK) |
| Trace (default) | Claude Sonnet 4 via Bedrock | Billed to your Trace plan |
How It Works
- Your message is sent to the Trace backend along with your provider key
- The backend routes the model call to your provider using Trace’s EDA system prompt, tool schemas, and conversation history
- Your provider returns the response
- Tool calls (file reads, writes, DRC, etc.) still execute locally on your machine — identical to Trace-hosted
- The response streams back to you in real-time
What Still Requires Trace Authentication
BYOK changes the billing target for AI requests, but you still need a Trace account because:- Tool execution requires the desktop app to be authenticated (the backend identifies you via JWT)
- Conversation history is stored per-user
- Mode access gating still applies — Free users cannot use Agent/Plan mode even with their own key (this is a product decision, not a billing one)
- Research tools (web search, parts search, datasheet parsing) run on Trace’s infrastructure regardless of which model answers
BYOK bypasses the cost cap (your provider bills you directly), but it does not bypass mode access. Free users still can’t use Agent/Plan mode with BYOK — only paid plans (Pro, Ultra, On-Demand, Trial) unlock those modes.
Using BYOK Today (via CLI)
Until the desktop Settings UI ships, you can use BYOK through the Trace CLI:Billing Implications
| Scenario | Who pays | Trace quota affected? |
|---|---|---|
| Default (Trace-hosted) | Your Trace subscription or credit balance | Yes |
| BYOK (your own key) | Your provider account directly | No |
- Your monthly Trace budget is not consumed
- Your On-Demand credits are not deducted
- Usage is still logged for analytics (request counts, timestamps) but no cost is recorded against your Trace profile
- You still appear as an authenticated user in conversation history
Desktop Settings UI (Coming Soon)
The desktop app will have a dedicated configuration panel:- Open Settings in the chat panel (gear icon)
- Navigate to AI Provider
- Select your provider (Anthropic, OpenAI, Gemini, or Trace default)
- Enter your API key (stored in your OS keychain — same secure storage as your Trace auth token)
- Optionally specify a model ID
- Save — all subsequent requests route through your provider
FAQ
Does BYOK affect tool execution?
No. Tools always execute locally on your machine regardless of which model provider is active. The model provider only affects who generates the reasoning and tool call decisions.Can I use a different model than the default?
Yes. Each provider supports any model ID they offer. Set it viabuildwithtrace byok model <model-id> (CLI) or the model ID field in Settings (desktop, when available).
What if my provider key is invalid or rate-limited?
The backend falls back to Trace-hosted models gracefully. You’ll see a status message in the chat indicating the fallback occurred. Your Trace quota will be consumed for that request.Is my API key visible to Trace?
Your key transits through the Trace backend for the duration of one request (needed to call your provider), but it is never stored, logged, or persisted on Trace’s servers.Next Steps
- CLI BYOK Reference — full CLI setup and commands
- Billing & Plans — understanding Trace quota and credits
- AI Modes — how modes interact with billing and BYOK

