Prerequisites
- Node.js 20+
- A running Alquimia Runtime instance (its URL becomes
ASSISTANT_BASEURL)
Lite mode (no database setup)
Lite mode replaces PostgreSQL with SQLite and Keycloak with local-credentials login. It is designed for development and demos — zero infrastructure besides Node.Start the dev server
Production setup (PostgreSQL + Keycloak)
For production deployments with a real database and enterprise SSO:Configure your environment
Copy
.env.example to .env.local. Set DB_STRATEGY=postgres with a valid DATABASE_URL, and AUTH_STRATEGY=keycloak with your Keycloak credentials.Key environment variables
| Variable | Description |
|---|---|
DB_STRATEGY | postgres (default) or lite (SQLite) |
DATABASE_URL | PostgreSQL connection string, or file:.data/lite.db for SQLite |
AUTH_STRATEGY | keycloak or lite |
NEXTAUTH_SECRET | NextAuth signing secret |
NEXTAUTH_URL | App base URL (e.g. http://localhost:3000) |
ASSISTANT_BASEURL | Alquimia Runtime base URL |
ALQUIMIA_ASSISTANT_API_KEY | Alquimia API key |
AUTH_LITE_USERS | JSON array of users (lite only) |
AUTH_KEYCLOAK_ID | Keycloak client ID (keycloak only) |
AUTH_KEYCLOAK_SECRET | Keycloak client secret (keycloak only) |
AUTH_KEYCLOAK_ISSUER | Keycloak issuer URL (keycloak only) |
.env.example for the full list, including optional observability variables.
Docker
If you prefer Docker:Next steps
First steps
Log in and create your first topic.