Runtime configuration reference
alquimia-runtime is configured through environment variables (and an optional .env file). Environment variables always take precedence over values in .env.
Required secrets
Section titled “Required secrets”The following secrets must be set before the runtime starts. They are never committed to version control.
| Secret | Purpose |
|---|---|
API_TOKEN | Bearer token for all authenticated endpoints. Required at startup in every runtime mode (master, worker, all) and with every AUTH_PROVIDER, including keycloak |
POSTGRES_USERNAME / POSTGRES_PASSWORD | PostgreSQL credentials. POSTGRES_PASSWORD may be omitted only when VAULT_POSTGRES_ENABLED=true |
BLOB_S3_ACCESS_KEY / BLOB_S3_SECRET_KEY | S3-compatible blob storage credentials |
KAFKA_SIGNING_KEY | 64-character hex key shared across all runtime instances. Used to sign and verify events between masters and workers |
Vault credentials depend on VAULT_AUTH_METHOD: a static VAULT_TOKEN is only used with token auth (local development). Kubernetes deployments use Vault Kubernetes auth instead; see External services.
Optionally, set ENCRYPTION_KEY (64-character hex) to enable application-layer AES-256-GCM encryption of Redis conversations and PostgreSQL worklog data at rest. Leave it empty to store data in plaintext.
| Variable | Required | Default | Description |
|---|---|---|---|
ENCRYPTION_ALLOW_PLAINTEXT_READS | No | false | Allow reading unencrypted rows while migrating to encryption |
ENCRYPTION_ALLOW_UNBOUND_READS | No | true | Allow reading legacy v1 envelopes whose AAD is not bound to a key |
TLS_ENFORCE | No | false | Production profile: require POSTGRES_SSL_MODE=verify-full, HTTPS Keycloak/OTLP URLs, ENCRYPTION_KEY, and KAFKA_SIGNING_KEY |
POSTGRES_SSL_MODE | No | — | PostgreSQL SSL mode; verify-full is required when TLS_ENFORCE=true |
Service settings
Section titled “Service settings”| Variable | Required | Default | Description |
|---|---|---|---|
BACKEND_SERVER_HOST | No | 0.0.0.0 | Bind address |
BACKEND_SERVER_PORT | No | 8080 | Listen port |
BACKEND_SERVER_WORKERS | No | 1 | Uvicorn worker count |
BACKEND_TIMEOUT_KEEP_ALIVE | No | 300 | Keep-alive timeout (seconds) |
DEBUG | No | false | Enable debug mode and verbose logging |
RESPONSE_MAX_RETRIES | No | 3 | Max retries for inference responses |
A2A_MAX_DEPTH | No | 5 | Maximum agent-to-agent call depth |
MAX_FILE_CONTENT_SIZE | No | 20971520 | Max knowledge file upload size in bytes (default 20 MB) |
ROOT_PATH | No | "" | FastAPI root_path for deployments behind a path-prefixing reverse proxy. Replaces the deprecated openapi_prefix |
The runtime reports service version 0.7.0 in health and OpenAPI metadata.
Runtime mode
Section titled “Runtime mode”| Variable | Required | Default | Description |
|---|---|---|---|
ALQUIMIA_RUNTIME_MODE | No | master | master serves the external API (registry read/write); worker consumes Kafka events and opens the registry read-only. Use all for single-process local deployments |
In production, run master and worker as separate deployments so they can scale independently. Setting ALQUIMIA_RUNTIME_MODE=worker prevents the local registry from being mutated by inference pods.
The master must run exactly one replica with the Recreate deployment strategy: it is the single writer of the TinyDB registry (guarded by a Redis Redlock). Scale throughput with workers only, up to the partition count of the alquimia.events topic (6 in the shipped manifests); extra workers beyond that sit idle.
Authentication and security
Section titled “Authentication and security”| Variable | Required | Default | Description |
|---|---|---|---|
API_TOKEN | Yes | — | Bearer token for all authenticated endpoints. Required on masters and workers, whatever AUTH_PROVIDER is set to |
AUTH_PROVIDER | No | api_token | Auth backend: api_token, jwt, or keycloak |
JWT_SECRET | Conditional | "" | Required when AUTH_PROVIDER=jwt |
JWT_ALGORITHM | No | HS256 | JWT signing algorithm |
KEYCLOAK_SERVER_URL | Conditional | "" | Required when AUTH_PROVIDER=keycloak |
KEYCLOAK_REALM | Conditional | "" | Keycloak realm |
KEYCLOAK_CLIENT_ID | Conditional | "" | Keycloak client ID |
KEYCLOAK_CLIENT_SECRET | Conditional | "" | Keycloak client secret |
KEYCLOAK_ADMIN_CLIENT_SECRET | No | "" | Falls back to KEYCLOAK_CLIENT_SECRET |
KEYCLOAK_CALLBACK_URI | No | "" | OAuth callback URI |
KEYCLOAK_ACCEPTED_AUDIENCES | No | alquimia-runtime | Comma-separated accepted token audiences. Must not be empty and must not contain account (startup fails) |
KEYCLOAK_ROLE_SOURCE_CLIENTS | No | alquimia-runtime,alquimia-studio-service,alquimia-ci | Comma-separated Keycloak client IDs whose client roles are honoured in addition to realm roles |
IS_ALLOWED_CREDENTIALS | No | false | CORS allow credentials |
ALLOWED_ORIGINS | No | ["*"] | CORS allowed origins. Cannot be ["*"] when IS_ALLOWED_CREDENTIALS=true |
ALLOWED_METHODS | No | ["*"] | CORS allowed methods |
ALLOWED_HEADERS | No | ["*"] | CORS allowed headers |
See Authentication & authorization for the conceptual model and deployment patterns.
Channel ingress authentication
Section titled “Channel ingress authentication”Channel webhook endpoints (/event/infer/{assistant_id}/{channel_id}) do not use the global bearer token. The runtime delegates authentication to the channel implementation from alquimia-core.
| Variable | Required | Default | Description |
|---|---|---|---|
CHANNEL_AUTH_REQUIRED | No | true | Require every channel to implement provider-specific auth. Channels without provider-specific verification are rejected unless explicitly set to false |
TRUSTED_PROXY_CIDRS | No | — | Comma-separated CIDRs of trusted reverse proxies. X-Forwarded-For is only trusted from these proxies and read right-to-left |
CHANNEL_MAX_BODY_SIZE | No | 1048576 | Max channel webhook body size in bytes (default 1 MB) |
CHANNEL_RATE_LIMIT_ENABLED | No | true | Enable per-source rate limiting |
CHANNEL_RATE_LIMIT_REQUESTS | No | 60 | Allowed requests per source per window |
CHANNEL_RATE_LIMIT_WINDOW_SECONDS | No | 60 | Rate-limit window |
See Channels and Connect a channel for provider-specific setup.
Streaming voice channel
Section titled “Streaming voice channel”The WS /streaming/{assistant_id}/{channel_id} endpoint is used for held-call audio streams such as Twilio Media Streams.
| Variable | Required | Default | Description |
|---|---|---|---|
STREAMING_CHANNEL_AUTH_REQUIRED | No | true | Require a valid X-Twilio-Signature on the TwiML callback (verified with the channel’s TWILIO_AUTH_TOKEN secret), a matching AccountSid, and Account SID validation in the stream start event |
STREAMING_CHANNEL_RATE_LIMIT_ENABLED | No | true | Enable per-source concurrent session limits |
STREAMING_CHANNEL_MAX_SESSIONS_PER_SOURCE | No | 10 | Maximum concurrent streaming sessions allowed from a single source |
STREAMING_CHANNEL_MAX_SESSION_SECONDS | No | 3600 | Maximum lifetime of a streaming session in seconds |
STREAMING_CHANNEL_PUBLIC_BASE_URL | No | "" | Public base URL Twilio uses to reach the runtime, e.g. https://voice.example.com. Twilio signs the exact URL it requested, so set this when a proxy rewrites the scheme, host, or path prefix (a path prefix here is assumed to be stripped by the proxy before forwarding); otherwise X-Forwarded-Proto/X-Forwarded-Host are used |
STREAMING_CHANNEL_TICKET_TTL_SECONDS | No | 60 | Lifetime of the single-use stream ticket minted by the TwiML callback and redeemed on the WebSocket start event |
STREAMING_ALLOW_QUERY_TOKEN | No | false | Allow legacy ?token= bearer-token query parameter on /streaming and /live WebSockets. Browser clients should use POST /streaming/auth-ticket instead |
See Connect a messaging or voice channel and Runtime API overview for the WebSocket path and message flow.
LiveKit agent worker
Section titled “LiveKit agent worker”The runtime ships a separate LiveKit agent worker (python -m livekit_worker) that joins LiveKit rooms as a generic agent, subscribes to participant audio, and bridges utterances through the runtime streaming inference pipeline. It requires LIVEKIT_API_KEY and LIVEKIT_API_SECRET in the environment and is configured with:
| Variable | Required | Default | Description |
|---|---|---|---|
LIVEKIT_WORKER_DEFAULT_ASSISTANT_ID | No | alquimia-voice-demo | Assistant used when the room provides no identifier |
LIVEKIT_WORKER_DEFAULT_AGENTSPACE_ID | No | default | Agentspace used for runtime registry lookups |
LIVEKIT_WORKER_REGISTRY_MODE | No | runtime | runtime loads agents from the published registry; file loads a local agent JSON |
LIVEKIT_WORKER_AGENT_CONFIG_PATH | No | "" | Path to the local agent JSON when LIVEKIT_WORKER_REGISTRY_MODE=file. If empty, falls back to /usr/app/agents/{assistant_id}.json |
LIVEKIT_WORKER_RATE_LIMIT_ENABLED | No | true | Enable Redis-backed per-worker/global active-room counters |
LIVEKIT_WORKER_RATE_LIMIT_WINDOW_SECONDS | No | 3600 | TTL for the Redis room counters (seconds) |
LIVEKIT_WORKER_MAX_ROOMS_PER_WORKER | No | 10 | Maximum active rooms for a single worker process |
LIVEKIT_WORKER_MAX_ROOMS_GLOBAL | No | 100 | Maximum active rooms across all workers sharing Redis |
LIVEKIT_WORKER_RUNTIME_BRIDGE_ENABLED | No | true | Bridge utterances through the runtime audit path (PostgreSQL worklog + Redis event stream + chat history) |
LIVEKIT_WORKER_MAX_SESSION_SECONDS | No | 3600 | Hard cap on a single room/job lifetime (seconds) |
The worker resolves the assistant for a room in this order:
assistant_idfrom the room metadata JSON.- Prefix of the room name before
--(for example,my-agent--room-1resolves tomy-agent). LIVEKIT_WORKER_DEFAULT_ASSISTANT_ID.
See Channels and Connect a messaging or voice channel for how the LiveKit worker differs from the in-process livekit-media-stream provider.
SPIFFE / SPIRE workload identity
Section titled “SPIFFE / SPIRE workload identity”| Variable | Required | Default | Description |
|---|---|---|---|
SPIFFE_ENABLED | No | false | Enable SPIFFE workload identity |
SPIFFE_SOCKET_PATH | No | /tmp/spire-agent/public/api.sock | Path to the SPIFFE Workload API socket |
SPIFFE_TRUST_DOMAIN | No | alquimia.ai | SPIFFE trust domain |
AGENTSPACE_PROVISIONING_ENABLED | No | false | Automate SPIRE entries and Vault roles per agentspace |
AGENTSPACE_PROVISIONING_INTERVAL_SECONDS | No | 300 | Reconciliation interval |
AGENTSPACE_PROVISIONING_K8S_NAMESPACE | No | spire | Namespace for ClusterStaticEntry CRDs |
AGENTSPACE_PROVISIONING_VAULT_JWT_AUTH_PATH | No | jwt | Vault JWT auth mount path |
When AGENTSPACE_PROVISIONING_ENABLED=true, the master creates or updates SPIRE ClusterStaticEntry CRDs, scoped Vault ACL policies, and JWT auth roles for each agentspace. A background reconciler runs every AGENTSPACE_PROVISIONING_INTERVAL_SECONDS seconds to converge state with the registry list. This is what produces per-agentspace, per-tier identities that agents use to authenticate to Vault.
See Workload hardening and Authorization policies for the Zero Trust deployment pattern.
| Variable | Required | Default | Description |
|---|---|---|---|
KAFKA_BOOTSTRAP_SERVERS | No | localhost:9092 | Broker address(es) |
KAFKA_TOPIC | No | alquimia.events | Topic for agent events |
KAFKA_CONSUMER_GROUP | No | alquimia-workers | Consumer group for workers |
KAFKA_SIGNING_KEY | Yes | "" | 64-character hex signing key shared by all instances |
KAFKA_SIGNING_KEYS | No | "" | Key ring for rotation, formatted kid1:hex1,kid2:hex2. Used to verify events signed with any key in the ring |
KAFKA_SIGNING_ACCEPT_LEGACY | No | false | Accept pre-#339 signatures during rolling upgrades |
KAFKA_EVENT_MAX_AGE_SECONDS | No | 3600 | Maximum age of a signed Kafka event before it is sent to the DLQ (±5 minutes skew tolerance) |
KAFKA_HANDLER_TIMEOUT_SECONDS | No | 540 | Maximum time a Kafka event handler may run before the event is sent to the DLQ |
KAFKA_SECURITY_PROTOCOL | No | PLAINTEXT | SASL_SSL or SSL in production |
KAFKA_SASL_MECHANISM | No | "" | SASL mechanism, e.g. SCRAM-SHA-256 |
KAFKA_SASL_USERNAME | No | "" | SASL username |
KAFKA_SASL_PASSWORD | No | "" | SASL password |
KAFKA_SSL_CA_FILE | No | "" | Path to CA certificate for broker verification |
KAFKA_SSL_CERT_FILE | No | "" | Path to client certificate for mTLS |
KAFKA_SSL_KEY_FILE | No | "" | Path to client key for mTLS |
KAFKA_SSL_VERIFY | No | true | Verify broker certificate hostname |
KAFKA_DLQ_TOPIC | No | alquimia.events.dlq | Dead-letter topic. Receives events that fail HMAC signature verification and events whose processing raised an error; they are routed there rather than dropped |
External services
Section titled “External services”| Variable | Required | Default | Description |
|---|---|---|---|
REDIS_URL | No | redis://localhost:6379 | Redis connection URL. See the TLS caution below before using rediss:// |
REDIS_TTL | No | 86400 | Default TTL for Redis keys (seconds) |
POSTGRES_HOST | No | localhost | PostgreSQL host |
POSTGRES_PORT | No | 5432 | PostgreSQL port |
POSTGRES_DB | No | alquimia | Database name |
POSTGRES_USERNAME | Yes | — | Database user |
POSTGRES_PASSWORD | Conditional | "" | Database password. Required unless VAULT_POSTGRES_ENABLED=true, in which case credentials are leased from Vault |
POSTGRES_SCHEMA | No | postgresql | SQLAlchemy schema prefix |
DB_POOL_SIZE | No | 60 | Connection pool size, per process |
DB_MAX_POOL_CON | No | 80 | Not read by the runtime; the effective per-process ceiling is DB_POOL_SIZE + DB_POOL_OVERFLOW |
DB_POOL_OVERFLOW | No | 20 | Pool overflow limit, per process |
DB_POOL_PRE_PING | No | true | Pre-ping connections before use |
DB_POOL_RECYCLE | No | 1800 | Connection recycle interval (seconds) |
DB_TIMEOUT | No | 5 | Query timeout (seconds) |
DB_CREATE_ON_STARTUP | No | false | Auto-create tables on startup (dev only) |
IS_DB_ECHO_LOG | No | false | Log all SQL statements |
QDRANT_URL | No | http://localhost:6333 | Qdrant vector store URL |
QDRANT_API_KEY | No | — | Qdrant API key (optional) |
ALQUIMIA_KNOWLEDGE_PROVIDER | Recommended | qdrant | Knowledge-base backend: qdrant, redis, or in_memory. The runtime exports this value to alquimia-core, where it replaces the connector declared on every topic-based, connector-backed knowledge base in the process. Set it explicitly: alquimia-core on its own (CLI/SDK) has no single default — inference keeps the spec’s connector, ingest/rebuild fall back to qdrant, and version rehydration is skipped when it is unset |
VAULT_ADDR | No | vault | HashiCorp Vault address. Use a full URL with scheme and port (for example https://vault.internal:8200); alquimia-core uses the value verbatim |
VAULT_MOUNT_POINT | No | secret | Vault KV v2 mount point. cubbyhole does not work (it is a per-token store) |
VAULT_AUTH_METHOD | No | token | Vault login method: token, kubernetes, or jwt. Use kubernetes in Kubernetes |
VAULT_TOKEN | Conditional | "" | Static Vault token; only used with VAULT_AUTH_METHOD=token (local development). The alquimia-vault Secret was removed from the Kubernetes manifests in favour of Kubernetes auth. The runtime probes token TTL on each resolver use and re-authenticates before expiry, with correct lookup paths and TTL handling for both renewable and static tokens |
VAULT_K8S_ROLE | Conditional | "" | Vault Kubernetes auth role for the runtime’s own Vault client. Required with kubernetes auth |
VAULT_AUTH_ROLE | Conditional | — | Vault auth role for the alquimia-core secret resolver (registry secret resolution). Required with kubernetes or jwt auth, in addition to VAULT_K8S_ROLE |
VAULT_K8S_TOKEN_PATH | No | /var/run/secrets/kubernetes.io/serviceaccount/token | Service-account token used for Kubernetes auth. Point it at a projected token with audience vault |
VAULT_JWT_ROLE | Conditional | "" | Vault JWT auth role for the runtime; required with jwt auth |
VAULT_JWT_SVID | Conditional | "" | JWT-SVID used for jwt auth. Accepts either the JWT string itself or a path to a file containing the JWT (for example, a JWT-SVID written by spiffe-helper) |
Blob storage (S3 / Alarik)
Section titled “Blob storage (S3 / Alarik)”| Variable | Required | Default | Description |
|---|---|---|---|
BLOB_S3_ENDPOINT_URL | Yes | "" | S3-compatible endpoint, e.g. http://alarik:8080 |
BLOB_S3_PROVIDER | No | Minio | rclone S3 provider name. Keep the default Minio for Alarik and other S3-compatible servers; it is the rclone provider name for generic S3-compatible endpoints, not a MinIO dependency |
BLOB_S3_ACCESS_KEY | Yes | "" | S3 access key |
BLOB_S3_SECRET_KEY | Yes | "" | S3 secret key |
BLOB_S3_BUCKET_NAME | Yes | "" | Bucket name |
BLOB_S3_REGION_NAME | No | us-east-1 | S3 region |
BLOB_S3_SECURE | No | true | Use TLS for S3 connections. Has no effect when BLOB_S3_ENDPOINT_URL starts with http://; use an https:// endpoint in production |
BLOB_S3_VERIFY_SSL | No | true | CA bundle for S3 TLS verification (path to PEM file, or true/false) |
BLOB_S3_CLIENT_CERT | No | "" | Client certificate for S3 mTLS (for example, a SPIFFE X.509-SVID) |
BLOB_S3_CLIENT_KEY | No | "" | Client key for S3 mTLS |
Registry and OCI
Section titled “Registry and OCI”| Variable | Required | Default | Description |
|---|---|---|---|
ALQUIMIA_REGISTRY_DIR | No | ~/.local/share/alquimia | Local path for TinyDB registry files |
ALQUIMIA_EMBEDDINGS_CONFIG_DIR | No | $ALQUIMIA_REGISTRY_DIR | Directory containing embeddings.yaml. The Kubernetes manifests mount it at /var/lib/alquimia/embeddings.yaml and set this to /var/lib/alquimia |
ALQUIMIA_OCI_REGISTRY_DEFAULT | No | ghcr.io | Default OCI registry for push/pull |
ALQUIMIA_OCI_NAMESPACE_AGENTSPACES | No | agents | Deployment-owned namespace for agentspace artifacts and their index anchor |
ALQUIMIA_OCI_NAMESPACE_BRAINS | No | brains | Deployment-owned namespace for Boltzmann brain artifacts and their index anchor. See Gaussia / Boltzmann brains |
ALQUIMIA_REGISTRY_SECRET_RESOLVER | No | vault | Secret resolver backend: vault or env. env reads directly from environment variables |
ALQUIMIA_OCI_SIGNATURE_POLICY | No | required | Signature verification policy: required, warn, or off. required aborts on missing/invalid signatures; warn logs and continues; off skips verification. With required and no verification key or keyless identity configured, every pull fails |
ALQUIMIA_OCI_COSIGN_PUBKEY | No | — | Cosign public key (path or KMS/env:// reference) used to verify signatures on pull. Falls back to ALQUIMIA_OCI_COSIGN_KEY |
ALQUIMIA_OCI_COSIGN_KEY | No | — | Cosign signing (private) key used on push. Only works as the verification fallback for KMS/env:// references; for on-disk key pairs set ALQUIMIA_OCI_COSIGN_PUBKEY |
ALQUIMIA_OCI_COSIGN_CERT_IDENTITY | No | — | Keyless verification certificate identity (use with _CERT_OIDC_ISSUER) |
ALQUIMIA_OCI_COSIGN_CERT_OIDC_ISSUER | No | — | Keyless verification OIDC issuer |
ALQUIMIA_OCI_INDEX_ENABLED | No | false | Enable OCI 1.1 referrers-based namespace index lifecycle: attach on push, detach on delete, discover for listings |
ALQUIMIA_OCI_SUBPROCESS_TIMEOUT | No | 120 | Timeout in seconds for OCI push/delete_manifest/pull subprocesses running in the asyncio thread pool |
ALQUIMIA_OCI_COSIGN_SIGN_PUSH | No | auto | auto signs on push only when a key or keyless identity is configured; true always tries; false never signs |
ALQUIMIA_OCI_COSIGN_TLOG_UPLOAD | No | true | Upload key-based signatures to the public Rekor transparency log; set to false to opt out |
ALQUIMIA_OCI_COSIGN_HOME | No | temp dir | Writable directory cosign uses as HOME (needed with a read-only root filesystem) |
ALQUIMIA_OCI_REFERRERS_FALLBACK | No | error | Behaviour when the registry lacks native OCI referrers support. Only the exact value warn enables ORAS’s fallback; any other value behaves as error. warn accepts silently lost index writes under concurrent attaches |
ALQUIMIA_OCI_DEV_MODE | No | false | Enable insecure ORAS transport flags (dev only) |
ORAS_PLAIN_HTTP | No | false | Use plain HTTP for ORAS (ignored unless ALQUIMIA_OCI_DEV_MODE=true; keep off in production) |
ORAS_INSECURE | No | false | Skip TLS verification for ORAS (ignored unless ALQUIMIA_OCI_DEV_MODE=true; keep off in production) |
Registry credentials for ORAS and cosign come from the Docker config ($DOCKER_CONFIG/config.json, default ~/.docker/config.json).
Registry encryption at rest
Section titled “Registry encryption at rest”When ALQUIMIA_REGISTRY_KEY is set, the local TinyDB registry files (metadata.json, <agentspace>/dist.json) are transparently encrypted with AES-256-GCM. The key is a Base64-encoded AES-256 key sourced from Vault or another secret injector.
| Variable | Required | Default | Description |
|---|---|---|---|
ALQUIMIA_REGISTRY_KEY | No | — | Base64-encoded AES-256 key for encryption at rest |
ALQUIMIA_REGISTRY_KEY_ID | No | default | Key identifier stored in the ciphertext envelope (rotation support) |
Encryption at rest protects against volume or bucket exposure. It does not protect against a compromised runtime process, which can still read decrypted data through the registry APIs. In production, run workers with ALQUIMIA_RUNTIME_MODE=worker so the registry is mounted read-only.
Changing ALQUIMIA_REGISTRY_KEY_ID alongside a new key causes the next write to re-encrypt with the new envelope. If ALQUIMIA_REGISTRY_KEY is absent, the registry stores plaintext.
File storage provider
Section titled “File storage provider”Registered topic files are stored outside the registry in a pluggable storage backend selected at deployment time.
| Variable | Required | Default | Description |
|---|---|---|---|
ALQUIMIA_FILE_STORAGE_PROVIDER | No | local | Storage backend: local or s3 |
ALQUIMIA_FILE_STORAGE_LOCAL_DIR | No | $ALQUIMIA_REGISTRY_DIR/files | Local filesystem root for local provider |
ALQUIMIA_FILE_STORAGE_S3_ENDPOINT_URL | Conditional | — | Required for s3 |
ALQUIMIA_FILE_STORAGE_S3_ACCESS_KEY | Conditional | — | Required for s3 |
ALQUIMIA_FILE_STORAGE_S3_SECRET_KEY | Conditional | — | Required for s3 |
ALQUIMIA_FILE_STORAGE_S3_BUCKET | Conditional | — | Required for s3 |
ALQUIMIA_FILE_STORAGE_S3_REGION | No | us-east-1 | AWS region for s3 |
The same provider is used by search_mode="direct" file reads and by alquimia registry topics add-file.
Knowledge authorization
Section titled “Knowledge authorization”The runtime forwards these settings to alquimia-core’s DefaultKnowledgeAuthzPolicy, which is default-deny. They control whether agents can query topic-less knowledge bases such as long-term-memory collections that declare a collection_id directly in the agent spec.
| Variable | Required | Default | Description |
|---|---|---|---|
KNOWLEDGE_AUTHZ_ALLOW_TOPICLESS | No | false | Allow queries against topic-less knowledge bases |
KNOWLEDGE_AUTHZ_TOPICLESS_COLLECTIONS | No | — | Comma-separated list of collection IDs that may be queried when KNOWLEDGE_AUTHZ_ALLOW_TOPICLESS=false |
KNOWLEDGE_AUTHZ_DEFAULT_DENY | No | true | Default-deny knowledge access when KNOWLEDGE_AUTHZ_ENABLED=true and the variable is unset |
Authenticity, identity, and topic access policy for Boltzmann brains are otherwise configured through the CLI. See Gaussia / Boltzmann brains.
Tools and external connectors
Section titled “Tools and external connectors”These variables control timeouts and sandboxing for tool, model, and speech connectors.
| Variable | Required | Default | Description |
|---|---|---|---|
ALQUIMIA_MCP_STDIO_ALLOWED | No | false | Allow MCP stdio transport to spawn subprocesses. When false, any tool config with command/args/transport: "stdio" is rejected |
ALQUIMIA_MCP_STDIO_ALLOWLIST | No | — | Comma-separated list of allowed commands for stdio transport. If set, only the listed command names are permitted; all others are rejected |
ALQUIMIA_MCP_TIMEOUT | No | 30 | Default timeout in seconds for MCP client calls. The value is converted to milliseconds when passed to fastmcp. Set to 0 to disable |
MCP_TOOL_TIMEOUT_SECONDS | No | 120 | Ceiling on MCP fetch + call time |
ALQUIMIA_HTTP_TIMEOUT | No | 30 | Default timeout in seconds for internal HTTP client calls to tool, model, and speech endpoints. Set to 0 to disable |
EVALUATION_MAX_STEPS_CEILING | No | 50 | Maximum max_steps allowed in an agent spec |
EVALUATION_MAX_CONCURRENT_TOOLS_CEILING | No | 16 | Maximum concurrent tool calls allowed in an agent spec |
ALQUIMIA_TRITON_USE_SSL | No | — | Override TLS for Triton gRPC connections. When unset, Triton gRPC defaults to TLS for non-local hosts and plaintext for localhost/127.0.0.1 |
The per-agentspace egress_allowlist is set through the agentspace metadata, not environment variables. See the CLI reference and Workload hardening.
Observability
Section titled “Observability”| Variable | Required | Default | Description |
|---|---|---|---|
OTEL_COLLECTOR_ENDPOINT_TRACES | No | — | OTLP HTTP endpoint for traces |
OTEL_COLLECTOR_ENDPOINT_LOGS | No | traces endpoint | OTLP HTTP endpoint for logs |
OTEL_COLLECTOR_ENDPOINT | No | — | OTLP HTTP endpoint for metrics |
OTEL_METRICS_ENABLED | No | true | Feature flag for OpenTelemetry metrics. Set to false, 0, no, or off to disable recording |
OTEL_ALQUIMIA_SERVICE_NAME | No | alquimia | Service name reported to OTEL |
OTEL_ALQUIMIA_METER_NAME | No | alquimia-metrics | Meter name for metrics |
OTEL_EXPORTER_INTERVAL_MILLIS | No | 5000 | Metrics export push interval |
OTEL_EXCLUDED_ATTRIBUTES | No | "" | Comma-separated metric attribute keys to strip before export |
Metrics query proxy
Section titled “Metrics query proxy”The runtime can proxy PromQL to a Prometheus-compatible store for the telemetry endpoints in Runtime API overview. These variables configure that proxy.
| Variable | Required | Default | Description |
|---|---|---|---|
METRICS_QUERY_URL | No | "" | Prometheus-compatible URL for /telemetry/query* and /telemetry/metrics |
METRICS_QUERY_BEARER_TOKEN | No | "" | Bearer token sent to the metrics backend |
METRICS_QUERY_TENANT_ID | No | "" | X-Scope-OrgID tenant for multi-tenant backends |
METRICS_QUERY_CA_FILE | No | "" | CA bundle for TLS to the metrics backend |
METRICS_QUERY_TIMEOUT_SECONDS | No | 30 | Request timeout for metrics backend queries |
See Observability for how the signals correlate.