Skip to content

Server flags

Every flag can also be set as CURRAL_<FLAG>, for example CURRAL_MAX_CONCURRENCY=16. Repeatable flags take a comma-separated list: CURRAL_POLICY=policy.rego,roles.json. Run curral serve -h for the full list from your version.

Flag Default
--catalog extensions, secrets and databases
--users users, API keys and identities
--policy .rego or JSON/YAML data, repeatable
--policy-query data.curral.allow decision that must be true
--policy-limits-query off per-request limits, e.g. data.curral.limits
--policy-masks-query off column masks, e.g. data.curral.masks
--policy-row-filters-query data.curral.row_filters SQL row predicates per table, ANDed with --row-filters; undefined adds none
--row-filters off row-level security file
--row-filters-missing strict missing tables: strict aborts boot/reload; warn logs and keeps the rule
--mask-salt off secret salt required for the hash mask; prefer CURRAL_MASK_SALT, removed from the environment after boot

curral check --policy-tests cases.yaml also runs declarative policy tests.

Flag Default
--docs-validate-sql off off, warn (log invalid examples) or strict (reject with 400); checks context.sqls[].sql on writes and in curral check; requires --docs-dir
--docs-dir off directory of semantic documents served at /v1/docs; reloads on SIGHUP
--docs-scope all all serves every document to authenticated users; schema serves documents about tables or schemas the caller may query; requires --docs-dir
--docs-validate-names off off, warn or strict: resolve document table/schema names to qualified catalog names on writes; requires --docs-dir. Resolution checks the whole catalog
--policy-docs-query data.curral.docs_allow decision allowing writes to /v1/docs; undefined means deny
--jev-key off TypeSafe API key for search; sends candidate documents to TypeSafe. Prefer CURRAL_JEV_KEY
--jev-threshold 0.7 minimum Jev probability for a match
--jev-floor 0.2 when nothing reaches the threshold, return documents at or above this as weak matches (0 = the best, whatever their probability)
--jev-timeout 5s how long a search waits for Jev
--search-shortlist 20 best BM25 candidates a search hands to Jev
Flag Default
--mcp false enable authenticated Streamable HTTP at POST /mcp; see Native MCP
--serve-skill docs unauthenticated discovery at GET / and skill files at /skill/...: docs serves documentation and points to version-pinned scripts on GitHub; all also serves scripts over TLS or to loopback only; off disables both routes

See AI agents for installation and private networks.

Flag Default
--max-concurrency 8 queries executing at once
--queue-timeout 5s wait for a slot, then 503
--max-concurrency-per-user 0 per-user quota when the policy sets none
--query-timeout 60s maximum duration, then 504
--max-rows 0 rows per response (0 = no limit)
Flag Default
--threads DuckDB threads
--memory-limit e.g. 8GB
--temp-dir, --max-temp-size spill to disk
--extension-dir pre-installed extensions (offline)
--external-access false keep enable_external_access on
--allowed-path path or s3://bucket/ allowed while external access is off, repeatable
Flag Default
--auth-cache-ttl 5m cache of verified passwords
--oidc-providers off YAML file for multiple issuers with per-provider claims and role prefixes; mutually exclusive with --oidc-issuer
--oidc-issuer, --oidc-audience off accept JWTs; audience is required
--oidc-user-claim, --oidc-roles-claim sub, roles dotted paths work
--oidc-skew 30s clock tolerance
--oidc-require-email-verified true with email as user claim
--oidc-hosted-domain any accepted hd claims, repeatable
--auth-ip-max-failures 10 per IP, before lockout (0 = off)
--auth-user-max-failures 30 per user name, before lockout (0 = off)
--auth-failure-window, --auth-lockout 5m, 15m window and lockout duration
Flag Default
--tls-cert, --tls-key plain HTTP native HTTPS, reloads on SIGHUP; also covers the Flight SQL port
--trusted-proxy none IP/CIDR allowed to set X-Forwarded-For, repeatable
--metrics-listen off address for Prometheus /metrics
--flight-listen off address for Arrow Flight SQL (DataGrip, DBeaver, JDBC, ADBC), e.g. :31337; same users, policy, TLS and audit as HTTP. Needs -tags duckdb_arrow
Flag Default
--audit-log off JSONL file; - = stdout
--audit-sql redacted redacted, full or hash
--audit-queue 4096 events waiting to be written
--schema-cache-ttl 10m /v1/schema snapshot lifetime (0 = no cache)