Skip to content

Bring Your Own Key (BYOK)

Glassy's BYOK feature lets you connect your own AI provider API keys, bypassing the cloud AI cost cap.

How AI billing works in Glassy: On-device AI runs in your browser via WebGPU and is free forever on every plan — no key, no cost, nothing uploaded. Cloud AI is opt-in and paid after a generous monthly allotment. BYOK lets you route cloud requests through your own provider account instead.

Supported providers

  • OpenAI: GPT-4o, GPT-4o mini
  • Anthropic: Claude 3.5 Sonnet, Claude 3 Haiku
  • Google: Gemini 2.0 Flash, Gemini 2.5 Pro

Setup

  1. Navigate to Settings > AI > Bring Your Own Key
  2. Select a provider and paste your API key
  3. Keys are encrypted at rest and never sent to Glassy's servers
  4. Select your preferred model from the dropdown

Security

  • API keys are stored encrypted in your browser's local storage
  • Keys are never transmitted to Glassy's infrastructure
  • BYOK requests go directly from your browser to the provider

Feature flag

BYOK requires the ENABLE_BYOK feature flag to be enabled on your instance.

Learn more