Skip to content

AI Provider Setup

xyva is BYOK: you bring keys, the local agent encrypts them, and the portal acts as the control surface. Configure providers under Portal → Settings → AI Providers.

Supported providers

ProviderKey fieldDefault model
Google GeminiAPI key or gcloud ADCgemini-2.5-flash
OpenAIAPI keygpt-4o-mini
Anthropic ClaudeAPI keyclaude-sonnet-4-6
Azure OpenAIendpoint + key + deploymentconfigured per-deployment
OpenRouterAPI keyopenrouter/auto
GroqAPI keyllama-3.3-70b-versatile
DeepSeekAPI keydeepseek-chat
Ollamalocal URLllama3.1:8b
LM Studiolocal URLconfigured locally
Codex CLI / Codex Proxylocal socket / proxy URL
MS Copilotvia AI Proxyenterprise-managed
AI Proxyproxy URL + tenant tokenenterprise-managed

How keys are stored

  1. Paste in the portal.
  2. The portal forwards over the WebSocket bridge to the local agent.
  3. The agent encrypts via OS keychain and writes to ~/.xyva/credentials.json.
  4. Plain key never reaches the portal database. With portable settings opted in, the encrypted blob is mirrored to the portal so it follows you across machines.

Picking a default

Settings → AI Providers → Default Provider sets the model used by Brain, Swarm enrichment, Auto-Fix and Project Scout. Each module can override at run time.

  1. Connect the provider where billing already lives.
  2. Click Verify connection — the agent makes a small test call.
  3. Pick a balanced default model (cheap + fast for everyday use).
  4. For high-stakes tasks (architecture audit, RCA), pin a stronger model on the per-feature override.
  5. Configure the Agent Sandbox before allowing Builder/Operator-mode workflows.

Rotating keys

Replace the key in the field, click Verify. The agent re-encrypts and overwrites the credential file. Old runs keep their original key context for replay; new runs use the new key.

Cloud portal · Local Playwright agent.