Designed for tablet+. View on a tablet or larger screen for the intended layout.
CORE_WORKSHOP_v1.0
SPEAKER NOTES MODE — press s to hide
BLOCK 4 · AI GATEWAY (PRODUCTION) 3:20 – 3:30 · 10 min · 3L / 7HO · Lab

TOPIC 4.4 / 10 · HO #3

Create a Virtual Key

A Virtual Key is your gateway's representation of who is asking. Per-team, per-tenant, per-environment. The only secret your Vue app sees.

4.4

Virtual Key — identity, not just budget

10 min 3L / 7HO 3:20 – 3:30
Slide 1 / 3 · VK as identity

A Virtual Key is who is asking

  • Per-team, per-customer, per-tenant, per-environment
  • Budget attaches to it (one VK, multiple budgets — see 4.5)
  • Routing rules can target it
  • Logs attribute to it
  • Provider/model allowlist lives on the VK — one key can express its own mini-routing policy (provider_configs with allowed_models + weights)
  • The only secret your Vue app sees
Slide 2 / 3 · Granularity choices

Pick the granularity that matches your spend view

  • Environment: prod-vk, staging-vk, dev-vk
  • Surface: web-app-vk, mobile-app-vk, admin-tools-vk
  • Tenant: customer-acme-vk, customer-globex-vk

Pick how you'd want to see the spend in a dashboard.

Slide 3 / 3 · Five clicks to VK created

HO #3 — Create a VK (7 min)

  1. Sidebar → GovernanceVirtual Keys
  2. Click Create Virtual Key
  3. Name: workshop-vk-1 · description: My workshop key
  4. Save → use the copy button on the row (key is masked; eye icon reveals if needed)
  5. Paste into .env as WORKSHOP_VK=... for Block 4.9