AI LLMs - Bring Your Own Keys
Use your own OpenAI, Azure OpenAI, or Anthropic API keys instead of App2 credits. Bring Your Own Keys (BYOK) is available exclusively to Lifetime subscribers.
Written By Nick Gatzoulis
Last updated 3 months ago
What is BYOK?
BYOK (Bring Your Own Keys) lets you use your own AI provider API keys for code generation instead of consuming App2 credits.

How it works:
Connect your OpenAI, Azure OpenAI, or Anthropic API keys to your workspace
Toggle BYOK on individual projects
All AI operations use your keys
No App2 credits consumed
Benefits:
Zero credit cost: Don't spend App2 credits on AI operations
Unlimited usage: Use as much as your API provider allows
Provider choice: Choose your preferred AI provider
Cost control: Manage AI costs directly with providers
Exclusive feature: Only available to Lifetime subscribers
Requirements:
Lifetime subscription ($400 one-time)
API keys from supported providers
Workspace owner or admin role
Supported providers
App2 supports three AI providers for BYOK.
Provider comparison
Provider | Models Used |
OpenAI | GPT 5 Codex |
Azure OpenAI | GPT 5 Codex |
Anthropic | Claude Sonnet 4.5 |
OpenAI
Standard OpenAI API from OpenAI directly.
What you need:
OpenAI account (platform.openai.com)
API key from OpenAI dashboard
Used for: General code generation, analysis, chat
Azure OpenAI
OpenAI models hosted on Microsoft Azure.
What you need:
Azure account with OpenAI service
Azure resource endpoint URL
API version
Azure OpenAI API key
Used for: Same as OpenAI, but through Azure infrastructure
Extra configuration: Azure requires endpoint URL and API version in addition to the key.
Note: Only ONE of OpenAI or Azure OpenAI can be enabled at a time. They're interchangeable.
Anthropic Claude
Anthropic's Claude AI models.
What you need:
Anthropic account (console.anthropic.com)
API key from Anthropic console
Used for: Code generation, complex reasoning, detailed analysis
Prerequisites
Before connecting AI keys, ensure you have:
Lifetime subscription: BYOK requires Lifetime tier ($400 one-time)
Workspace role: Owner or Admin permissions
API keys: Active keys from your chosen providers
Provider account: Account with OpenAI, Azure, or Anthropic
Getting API keys:
OpenAI:
Go to platform.openai.com
Navigate to API keys section
Create new secret key
Copy key immediately (shown once)
Azure OpenAI:
Go to Azure Portal
Find your OpenAI resource
Get endpoint URL from Overview (e.g.,
https://your-resource.openai.azure.com)Get API key from Keys and Endpoint section
Note API version (e.g.,
2024-08-01-preview)
Anthropic:
Go to console.anthropic.com
Navigate to API keys section
Create new API key
Copy key immediately
Setup steps
Adding OpenAI
Go to Workspace Settings → Integrations → AI LLMs
Find OpenAI section
Click in the API key field
Paste your OpenAI API key
Click "Save OpenAI key"
Key is validated and saved
Toggle switch shows "Enabled" (green)
Your OpenAI key is now active for all workspace projects using BYOK.
Adding Azure OpenAI
Azure requires additional configuration beyond the API key.
Go to Workspace Settings → Integrations → AI LLMs
Find Azure OpenAI section
Enter API Key: Your Azure OpenAI API key
Enter Azure Endpoint: Full endpoint URL (e.g.,
https://your-resource.openai.azure.com)Enter API Version: Azure API version (e.g.,
2024-08-01-preview)Click "Save Azure OpenAI key"
Configuration validated and saved
Toggle switch shows "Enabled" (green)
Important: Azure OpenAI and regular OpenAI cannot both be enabled. Enabling Azure disables OpenAI automatically.
Adding Anthropic Claude
Go to Workspace Settings → Integrations → AI LLMs
Find Anthropic section
Click in the API key field
Paste your Anthropic API key
Click "Save Anthropic key"
Key is validated and saved
Toggle switch shows "Enabled" (green)
Your Anthropic key is now active for all workspace projects using BYOK.
Provider rules
Mutual exclusivity
OpenAI and Azure OpenAI cannot both be enabled at the same time.
Why: They use the same models (GPT-5, etc.) but different infrastructures. Only one can be active.
Automatic switching:
Enable OpenAI → Azure OpenAI disabled automatically
Enable Azure OpenAI → OpenAI disabled automatically
Visual indicator:
Enabled provider shows green "Enabled" badge
Disabled provider shows gray "Disabled" badge
Info banner explains the rule
Other providers: Anthropic is independent. Can be enabled alongside either OpenAI or Azure OpenAI.
Enable/disable providers
Control which providers are active without removing keys.
How to toggle:
Go to Workspace Settings → Integrations → AI LLMs
Find the provider
Click the toggle switch
Provider enabled or disabled immediately
Enabled (green):
Provider is active
Can be used for BYOK projects
Keys are available to AI operations
Disabled (gray):
Provider inactive
Keys stored but not used
Won't be selected for BYOK projects
Tip: Disable providers temporarily without removing keys. Useful for testing different providers or controlling costs.
Using BYOK
Once providers are configured, enable BYOK on individual projects.
Enabling BYOK for a project
Per-project control:
Open your project
Go to Project Settings → General
Find "AI Credit Usage" section
Toggle "Use my AI LLM keys (BYOK)" to ON
Badge changes to "Active" (green)
Project now uses your AI keys
Project updates:
Sandbox reconfigures automatically
Future code generation uses your keys
No App2 credits consumed
Requirements:
At least one provider must be enabled
Project must be in Ready or Failed status
Workspace must be Lifetime tier
BYOK for Figma imports
Choose credit type when importing Figma designs.
How to use:
Click "Import Figma" on homepage
Paste Figma URL
Find "Use my AI keys (BYOK)" toggle
Toggle ON to use your keys
Toggle OFF to use App2 credits
Continue with import
Benefits:
Figma analysis doesn't consume App2 credits
Same quality analysis
Uses your enabled providers
Requirements:
Lifetime subscription
At least one enabled provider
Available before import starts
Managing providers
Viewing provider status
Status indicators:
Configured: Green checkmark—key is saved
Not configured: Gray—no key added yet
Enabled: Green badge—provider is active
Disabled: Gray badge—provider inactive
Where to view: Go to Workspace Settings → Integrations → AI LLMs
Updating API keys
Replace existing keys with new ones.
How to update:
Go to AI LLMs settings
Find the provider
Click in the masked key field (
••••••••)Field clears automatically
Paste new API key
Click "Save [Provider] key"
New key validated and saved
When to update:
Key expired or revoked
Rotating keys for security
Switching accounts
Key compromised
Removing providers
Delete stored API keys from your workspace.
How to remove:
Go to AI LLMs settings
Find the provider
Click "Remove [Provider]" button
Confirm deletion
Key removed from workspace
What happens:
Key permanently deleted
Provider shows as "Not configured"
Projects using this provider switch to remaining providers
If no providers remain, BYOK toggle disabled
Warning: Removing a provider while projects use it may cause errors. Disable the provider first, then remove.
Best practices
Security
Protect your API keys:
Never share keys publicly
Rotate keys regularly
Use separate keys for production/testing
Monitor usage in provider dashboards
Revoke compromised keys immediately
App2 security:
Keys encrypted at rest in database
Only workspace owners/admins can view/manage
Keys never exposed in logs or UI (masked)
Secure transmission (HTTPS)
Provider selection
Choose OpenAI when:
You want fastest setup
Standard OpenAI API is sufficient
No enterprise compliance needs
Direct billing with OpenAI
Choose Azure OpenAI when:
Enterprise compliance required
Using existing Azure infrastructure
Need Azure security features
Regional data requirements
Choose Anthropic when:
Prefer Claude's reasoning
Need detailed code analysis
Want alternative to OpenAI
Testing provider performance
Use multiple providers:
Enable Anthropic + OpenAI (or Azure)
App2 intelligently selects provider
Fallback if one fails
Test quality differences
Cost management
Monitor provider costs:
Check usage in provider dashboards
Set spending limits in provider accounts
Disable providers to control costs
Use App2 credits for small projects, BYOK for large
Project strategy:
Enable BYOK on active projects
Use App2 credits for experiments
Monitor per-project usage
Disable BYOK if provider costs exceed App2 credits
Testing providers
Compare performance:
Enable multiple providers
Test same prompt with different providers
Compare code quality and speed
Choose preferred provider
Disable others to save costs
Troubleshooting
Can't add API key (not Lifetime)
BYOK toggle disabled on project
Can't enable both OpenAI and Azure
Azure OpenAI key not working
Provider key validation failed
BYOK not saving credits
FAQ
Related links
Plans and Credits - Lifetime subscription details
Projects - Project-level BYOK toggle
Import Figma Design - BYOK for Figma imports