Where the key goes
Add the provider key to the runtime that executes the model—your coding agent, local MCP host, or deployment secret store. Do not paste a provider key into a prompt, task, memory, or handoff.
MODEL_PROVIDER_API_KEY=<set in your runtime's secret manager>What devbrain receives
The service receives the tool calls and content your agent deliberately sends. It does not need the raw provider key for a client-managed BYOK run. Your model provider separately processes prompts under its own account terms and retention settings.
Rotate or revoke
Rotate the key at the model provider, update the runtime secret, and restart that runtime. Revoke the devbrain OAuth grant separately when you want to disconnect the agent from your workspace.