Skip to main content
Karma AI automatically reads keys from your .env file (or environment variables) via the internal config utilities. Add the keys you plan to use:
# OpenAI
OPENAI_KEY=sk-...

# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...

# Grok (xAI)
XAI_API_KEY=xaikey-...

# Google Gemini
GEMINI_API_KEY=AIza...

# AWS Bedrock
AWS_ACCESS_KEY_ID=AKIA...
AWS_SECRET_ACCESS_KEY=xxxxxxxx
AWS_BEDROCK_REGION=us-east-1
Tip: Only set the providers you need. Karma AI will call the correct provider based on the Model and the Provider you choose (e.g., ai.GPT4 for ai.OpenAI, ai.Claude4Opus for ai.Anthropic, etc.).