Skip to content

Bring your own keys

BYOK and local workflows are account-free. Provider keys are stored in VS Code SecretStorage, backed by the operating system keychain where available. Keys are not sent to the webview or to VdevAI Cloud.

VdevAI supports Groq, Gemini, OpenRouter, DeepSeek, Anthropic, OpenAI-compatible endpoints and more. The provider list in Settings is the source of truth for the current build.

  1. Open VdevAI → Settings → AI Key Rotation.
  2. Add a provider key and give it a label.
  3. Drag keys to set the order. The first key is tried first.
  4. Select a model and run Save & test.

You can add as many BYOK keys as you need; the current free tier does not impose a key cap. Keys are stored in VS Code SecretStorage and are never exposed to the webview.

  • Keys are tried in your chosen order.
  • A 429, quota error, timeout, or transient 5xx puts that key on a short cooldown and moves to the next healthy key. The default cooldown is 60 seconds for a 429 and 15 seconds for a transient failure.
  • Rotation happens before the response starts streaming. If a failure happens after streaming has begun, VdevAI retries the turn with the next key rather than mixing two answers in one response.
  • If every key is cooling down, VdevAI retries the key whose cooldown expires soonest instead of dead-ending.
  • Your provider still enforces its own quota. Rotation does not make a provider’s free tier unlimited; it lets you pool several keys/endpoints so one exhausted key does not stop the task.

Use an OpenAI-compatible local endpoint such as Ollama:

Base URL: http://localhost:11434/v1
Model: qwen2.5:3b
API key: ollama

Local models are best for machines with enough RAM/VRAM. Start with a small tool-capable model and increase it if your hardware allows. Ollama can sit at the end of the key chain as a local fallback.

If you use VdevAI Cloud and a budget is exhausted, the extension can fall back to your BYOK / local rotation. The fallback only works when you have at least one local key or model configured; you remain in control of that chain.