Multi-site AI gateway and control plane — unified routing across OpenAI, Anthropic, Codex, Grok, Gemini and more, with protocol conversion, OAuth orchestration, cost tracking, and real-time traffic observability.
services:
postgres:
image: postgres:17-alpine
container_name: xlyra-postgres
restart: unless-stopped
environment:
POSTGRES_DB: xlyra
POSTGRES_USER: xlyra
POSTGRES_PASSWORD: postgres_password
volumes:
- ./postgres:/var/lib/postgresql/data
xlyra:
image: yachiiiiyo/xlyra:latest
container_name: xlyra
restart: unless-stopped
depends_on:
- postgres
environment:
DB_HOST: postgres
DB_NAME: xlyra
DB_USER: xlyra
DB_PASSWORD: postgres_password
volumes:
- ./data:/data
ports:
- "5801:5801"
docker compose up -d
Access the console at http://localhost:5801 and create the first admin account on initial visit.
Before public deployment, change the default PostgreSQL password and configure HTTPS and a reverse proxy. The encryption master key is generated automatically on first startup at
./data/conf/master.key.
| Method | Path | Description |
|---|---|---|
GET | /v1/models | List downstream-visible models |
POST | /v1/chat/completions | OpenAI Chat Completions |
POST | /v1/responses | OpenAI Responses API |
GET | /v1/responses | OpenAI Responses API over WebSocket |
POST | /v1/messages | Anthropic Messages-style endpoint |
POST | /v1/images/generations | Image generation |
POST | /v1/images/edits | Image editing (multipart) |
POST | /v1/embeddings | Embeddings |
POST | /v1/audio/speech | Text-to-speech audio |
Official API / Direct OpenAI Compatible · Anthropic · Grok · OpenCode Go · DeepSeek · MiniMax · Moonshot · Kimi Code · Xiaomi MiMo · Google Gemini · GLM
Relay / Aggregator xLyra (cascade) · NewAPI
OAuth Codex (ChatGPT) · Antigravity (Gemini) · Claude Code
image_generation tool calls when the upstream cannot| Variable | Description |
|---|---|
HTTP_PORT | Backend listen port (default: 5801) |
POSTGRES_DSN | Full PostgreSQL DSN (overrides split DB settings) |
DB_HOST / DB_PORT / DB_NAME | Database host, port, name |
DB_USER / DB_PASSWORD | Database credentials |
APP_ENV | development / staging / production |
| Path | Content |
|---|---|
./postgres | PostgreSQL data |
./data | Backend runtime data, config, and master.key |
Content type
Image
Digest
sha256:5dce89a54…
Size
19.9 MB
Last updated
6 days ago
docker pull yachiiiiyo/xlyra