> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mellob.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment setup

> Configure API keys via .env for OpenAI, Anthropic, Grok (xAI), Gemini, and AWS Bedrock.

Karma AI automatically reads keys from your `.env` file (or environment variables) via the internal config utilities. Add the keys you plan to use:

```bash theme={null}
# 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.).
