Skip to content

Configuration

The Alquimia Platform runtime is configured through environment variables grouped into logical areas: runtime mode, authentication, storage, secrets, telemetry, and feature flags. This page explains the model; exact variable names and defaults live in the runtime repository.

The runtime can run as a master, a worker, or both in a single process:

ModeUse
MasterHTTP API and registry management
WorkerConsumes events and executes agents
AllBoth roles in one process; useful for local development

The runtime supports several authentication methods:

  • API tokens for service-to-service calls.
  • JWT validated against a Keycloak or compatible OIDC issuer.
  • OIDC through Keycloak for user-facing endpoints.

See Authentication & authorization for the conceptual model.

BackendPurposeCommon options
PostgreSQLPersistent audit worklog and registryManaged cloud Postgres
RedisSession state, distributed locks, cachesRedis, KeyDB
QdrantVector search for knowledge basesQdrant Cloud, self-hosted
S3 / MinIOBlob storage for attachmentsAWS S3, MinIO, Ceph

Secrets are resolved at runtime from HashiCorp Vault or environment variables. Vault supports dynamic credentials for PostgreSQL and Redis, as well as static secrets for API keys, S3 credentials, and webhook signing keys.

OpenTelemetry is configured through standard OTLP endpoints for metrics, traces, and logs. See Observability for how the signals correlate.

  • Keep secrets out of .env files in production; use Vault or your cluster’s secret store.
  • Run master and worker in separate deployments for independent scaling.
  • Set resource requests and limits on both roles.
  • Enable telemetry endpoints before going live so you have baseline metrics.