Environment Configuration
Configure your environment variables to enable all features of the AI agent system. You only need the services you want to use.
Quick Setup
Copy this template to your .env.local file
# One Last AI - Environment Variables
# AI Service Providers
# Configure AI models for agent responses
# OpenAI API key for GPT models
# Get your key at: https://platform.openai.com/api-keys
NEXT_PUBLIC_OPENAI_API_KEY=sk-...
# Anthropic API key for Claude models
# Get your key at: https://console.anthropic.com/keys
NEXT_PUBLIC_ANTHROPIC_API_KEY=sk-ant-...
# Google Gemini API key
# Get your key at: https://aistudio.google.com/app/apikey
NEXT_PUBLIC_GEMINI_API_KEY=AIza...
# Cohere API key for Command models
# Get your key at: https://dashboard.cohere.ai/api-keys
NEXT_PUBLIC_COHERE_API_KEY=co_...
# Voice Services
# Configure text-to-speech and speech recognition
# ElevenLabs API key for high-quality voice synthesis
# Get your key at: https://elevenlabs.io/app/subscription
NEXT_PUBLIC_ELEVENLABS_API_KEY=el_...
# Default voice ID for ElevenLabs
NEXT_PUBLIC_ELEVENLABS_VOICE_ID=pNInz6obpgDQGcFmaJgB
# Azure Cognitive Services Speech key
# Get your key at: https://portal.azure.com/
NEXT_PUBLIC_AZURE_SPEECH_KEY=abc123...
# Azure Speech service region
NEXT_PUBLIC_AZURE_SPEECH_REGION=eastus
# Translation Services
# Configure language translation providers
# Google Cloud Translation API key
# Get your key at: https://console.cloud.google.com/apis/credentials
NEXT_PUBLIC_GOOGLE_TRANSLATE_API_KEY=AIza...
# DeepL API key for high-quality translation
# Get your key at: https://www.deepl.com/pro-api
NEXT_PUBLIC_DEEPL_API_KEY=abc123:fx
# Azure Translator service key
NEXT_PUBLIC_AZURE_TRANSLATOR_KEY=abc123...
# Application Settings
# Configure general application behavior
# Backend API URL
NEXT_PUBLIC_API_URL=http://localhost:3002
# Enable multilingual features
NEXT_PUBLIC_ENABLE_MULTILINGUAL=true
# Default language code
NEXT_PUBLIC_DEFAULT_LANGUAGE=en
# Enable voice features
NEXT_PUBLIC_ENABLE_VOICE=true
# Enable translation features
NEXT_PUBLIC_ENABLE_TRANSLATION=true
AI Service Providers
4 varsConfigure AI models for agent responses
Voice Services
4 varsConfigure text-to-speech and speech recognition
NEXT_PUBLIC_ELEVENLABS_VOICE_IDDefault voice ID for ElevenLabs
NEXT_PUBLIC_AZURE_SPEECH_REGIONAzure Speech service region
Translation Services
3 varsConfigure language translation providers
Application Settings
5 varsConfigure general application behavior
NEXT_PUBLIC_API_URLBackend API URL
NEXT_PUBLIC_ENABLE_MULTILINGUALEnable multilingual features
NEXT_PUBLIC_DEFAULT_LANGUAGEDefault language code
NEXT_PUBLIC_ENABLE_VOICEEnable voice features
NEXT_PUBLIC_ENABLE_TRANSLATIONEnable translation features
Important Notes
Variables with NEXT_PUBLIC_ prefix are exposed to the browser
Keep API keys secure and never commit them to version control
Only configure the services you want to use
The system automatically falls back to available services
Restart your dev server after changing environment variables
For production, use your hosting platform environment settings
File Structure
Create these files in your project root:
Ready to Get Started?
Once configured, explore our AI agents and powerful developer tools.