Files
wursor/.env.example
SinachPat 060b181e71
Mirror to GitHub / mirror (push) Canceled after 0s
feat: wire chat to the agent loop (POST /chat)
- api: /chat route runs runAgent (session-required, 503 when unconfigured)
- api: index.ts builds OpenRouterLlmClient + WpRestExecutor from env; loads .env
- web: useChat calls /chat with mock fallback; proxy /chat+/sites+/health
- .env.example: DATABASE_URL empty by default (in-memory dev)
- 111 unit tests green; smoke-tested signup+chat
2026-08-17 17:19:33 +01:00

29 lines
774 B
Bash

# Copy to .env. Never commit real values.
# API
PORT=3000
# Set DATABASE_URL only when Postgres is running (see infrastructure/DEVOPS.md).
# Leave empty for the in-memory dev store.
DATABASE_URL=
REDIS_URL=redis://localhost:6379
# Auth
SESSION_SECRET=replace-me
# LLM — Grok is the default adapter. Switch provider with LLM_PROVIDER (grok | openrouter).
LLM_PROVIDER=grok
XAI_API_KEY=
OPENROUTER_API_KEY=
# Model sent when LLM_PROVIDER=openrouter (default x-ai/grok-4.6).
OPENROUTER_MODEL=x-ai/grok-4.6
LLM_FALLBACK_PROVIDER=
# Sandbox
DOCKER_HOST=
# Set to 1 to enable sandbox spin-up via Docker (leave unset to return 503 on /sessions).
WUR_ENABLE_SANDBOX=
WUR_IMAGE=wursor-base:latest
WUR_WEB_PORT=8080
PREVIEW_BASE_URL=http://localhost:8080
WARM_POOL_HOT_SPARES=2