Designed for tablet+. View on a tablet or larger screen for the intended layout.
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.
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)
- Sidebar → Governance → Virtual Keys
- Click Create Virtual Key
- Name:
workshop-vk-1 · description: My workshop key
- Save → use the copy button on the row (key is masked; eye icon reveals if needed)
- Paste into
.env as WORKSHOP_VK=... for Block 4.9