Configure Ultimate Blueprint Generator plugin to use ai-gateway — detects API key from env vars and writes ApiKeySlots.json
Configure the Ultimate Blueprint Generator plugin (Slot 0) to use a custom AI gateway.
Platform: Windows + PowerShell
.uproject file (project root)Saved/BpGeneratorUltimate/ApiKeySlots.json — Slot 0 only, other slots preservedApiKeySlots.json)| Variable | Notes |
|---|---|
AI_GATEWAY_API_KEY |
| Preferred |
ATHERLABS_API_KEY | Alternative |
SIPHER_AI_KEY | Internal alias |
OPENAI_API_KEY | Fallback |
ANTHROPIC_API_KEY | Fallback |
| Setting | Value |
|---|---|
| Provider | Custom |
| BaseURL | https://ai-gateway.atherlabs.com/v1/chat/completions |
| Model | gpt-5.4 |
| Slot | 0 (ActiveSlot) |
$env:AI_GATEWAY_API_KEY = "clp_your_key_here"
Locate the installed script (it's inside this skill folder) and run:
powershell -ExecutionPolicy Bypass -File "path/to/skills/setup-bpgenerator/scripts/setup-bpgenerator.ps1"
For a project-scoped install (run from project root):
# Claude
powershell -ExecutionPolicy Bypass -File ".claude/skills/setup-bpgenerator/scripts/setup-bpgenerator.ps1"
# Codex
powershell -ExecutionPolicy Bypass -File ".codex/skills/setup-bpgenerator/scripts/setup-bpgenerator.ps1"
Optional parameter overrides:
# Different model
... -ModelName "claude-sonnet-4-6"
# Different base URL
... -BaseURL "https://my-gateway.example.com/v1/chat/completions"
The plugin reads config at startup. Restart the editor (or reload the BpGenerator plugin) for changes to take effect.
| Error | Fix |
|---|---|
Could not locate project root | Run from inside the UE project directory |
No API key found in environment | Set AI_GATEWAY_API_KEY env var |
Config not found | Open Unreal Editor once to generate ApiKeySlots.json |
<ProjectRoot>/Saved/BpGeneratorUltimate/ApiKeySlots.json
Only Slot 0 is modified. All other slots remain unchanged.