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

# Quickstart

# <img src="https://mintcdn.com/lipedevv/MuqSig17BRwFcVpd/icons/quickstart.svg?fit=max&auto=format&n=MuqSig17BRwFcVpd&q=85&s=d3b9d6def77d1c5e89ecd582d83bc813" alt="Quickstart icon" width="22" data-path="icons/quickstart.svg" /> Quickstart

Goal: from zero to first valid response in minutes.

## 1) Configure your API key and endpoint

Set these variables in bot `.env`:

```env theme={null}
AI_PROVIDER=openai
OPENAI_BASE_URL=https://api.aicord.cloud/v1
OPENAI_API_KEY=<customer_or_tenant_api_key>
OPENAI_MODEL=aicord/fast
AI_FALLBACK_PROVIDERS=
```

## 2) Configure Discord channels

Use slash commands:

1. `/chat user channel`
2. `/chat admin channel`
3. Optional: `/chat prompt edit`

## 3) Validate API connectivity

```bash theme={null}
curl https://api.aicord.cloud/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "aicord/fast",
    "messages": [{"role":"user","content":"Say OK"}],
    "temperature": 0.2
  }'
```

Expected result: `200 OK` and text in `choices[0].message.content`.

## 4) Go-live checklist

* [ ] Bot replies in configured channels
* [ ] `/doctor live_probe:true` passes
* [ ] `/panel` opens and settings persist
* [ ] API key is not exposed in public repos
* [ ] Fallback path is documented
