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
You can specify any model your provider supports by setting the model ID explicitly. The defaults above are used when no model is specified.
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 — on the Free plan, Agent/Plan modes require free agent credits (or a paid plan) even with your own key
- 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 with remaining free agent credits can use Agent/Plan with BYOK — however, those requests still deplete free agent credits at the token-equivalent rate. Free credits meter your access to agentic modes, not Trace’s model spend, so they’re consumed even though your provider pays for the tokens. Once your free credits are exhausted, Agent/Plan with BYOK requires a paid plan (Pro, Ultra, On-Demand) or an active legacy trial.
Using BYOK Today (via CLI)
Until the desktop Settings UI ships, you can use BYOK through the Trace CLI:Billing Implications
With BYOK active:
- Your monthly Trace budget is not consumed
- Your On-Demand credits are not deducted
- Exception: on the Free plan, free agent credits still deplete at the token-equivalent rate for Agent/Plan requests — they gate access to agentic modes, not who pays for tokens
- 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

