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

# Environment Variables

> Complete reference of environment variables for self-hosting.

# Environment Variables

Configure your Myrm instance with environment variables. Copy `.env.example` to `.env` and customize.

## Required

| Variable         | Description                         | Example  |
| ---------------- | ----------------------------------- | -------- |
| `OPENAI_API_KEY` | OpenAI API key (or any one LLM key) | `sk-...` |

## LLM Providers

| Variable            | Description      |
| ------------------- | ---------------- |
| `OPENAI_API_KEY`    | OpenAI           |
| `ANTHROPIC_API_KEY` | Anthropic Claude |
| `DEEPSEEK_API_KEY`  | DeepSeek         |
| `GOOGLE_API_KEY`    | Google Gemini    |

## Application

| Variable       | Default                 | Description         |
| -------------- | ----------------------- | ------------------- |
| `PORT`         | `3000`                  | HTTP server port    |
| `DATABASE_URL` | `sqlite:./data/myrm.db` | Database connection |
| `QDRANT_URL`   | `http://localhost:6333` | Vector store URL    |

## Docker Compose

| Variable         | Default     | Description                                                       |
| ---------------- | ----------- | ----------------------------------------------------------------- |
| `MYRM_BIND_HOST` | `127.0.0.1` | Host IP for port bindings. Set to `0.0.0.0` for LAN/remote access |
| `MYRM_PORT`      | `25808`     | Server API port                                                   |
| `FRONTEND_PORT`  | `3000`      | Frontend port                                                     |

## Security

| Variable         | Default          | Description            |
| ---------------- | ---------------- | ---------------------- |
| `JWT_SECRET`     | (auto-generated) | JWT signing secret     |
| `ENCRYPTION_KEY` | (auto-generated) | AES-256 encryption key |
