Configuration is parsed at startup from (in order of precedence):
CLI flags (e.g. --host 0.0.0.0 --port 7700)
Environment variables (e.g. ACCELERATE_HOST, ACCELERATE_PORT)
config/default.toml (the file shipped with the binary)
Built-in defaults
The path to the TOML file can be overridden with --config <file> or
ACCELERATE_CONFIG=/path/to/file.
Warning
The project is in active development. Configuration keys may be
renamed, removed, or have their defaults changed between releases.
Always read the config/default.toml
of the release you are running for the authoritative reference.
Key Type Default Description
hoststringlocalhostBind address. localhost/127.0.0.1 for loopback, 0.0.0.0 to listen on every interface.
portu167700TCP port (Meilisearch-compatible).
workersusize0Actix worker threads. 0 = auto = number of CPU cores.
max_connectionsusize0Maximum simultaneous connections. 0 = unlimited.
keep_alivestring75sHTTP keep-alive duration.
read_timeoutstring30sMaximum time to wait for a request.
write_timeoutstring30sMaximum time to wait for a response.
shutdown_timeoutstring10sGraceful shutdown window.
max_body_sizeusize104857600Max HTTP request body in bytes (default 100 MiB).
Key Type Default Description
enabledboolfalseEnable TLS on the listen socket.
cert_pathstring""PEM certificate chain path.
key_pathstring""PEM private key path.
ca_cert_pathstring""Optional mTLS CA bundle.
require_client_certboolfalseEnforce mTLS client certificates.
Key Type Default Description
swagger_ui_enabledbooltrueServe Swagger UI at /swagger-ui/.
openapi_enabledbooltrueServe the OpenAPI spec at /api-docs/openapi.json.
Key Type Default Description
dirstring./dataOn-disk redb database directory.
envstringdevelopmentdevelopment or production. Production requires a non-empty auth.master_key.
Key Type Default Description
master_keystring""Master API key for admin access. Set with ACCELERATE_MASTER_KEY in production.
disable_authboolfalseExplicitly disable authentication (development only).
Key Type Default Description
max_values_per_facetusize100Max facet values returned per field.
pagination_max_total_hitsusize1000Max total hits reported in a paginated response.
bm25_k1f321.2BM25 term-frequency saturation.
bm25_bf320.75BM25 length normalisation.
default_limitusize20Default page size when not supplied by the client.
max_limitusize1000Maximum page size accepted from the client.
Key Type Default Description
max_batch_sizeusize1000Max documents per indexing batch.
commit_interval_msu64500Force commit after this delay.
parallelismusize0Indexing pipeline parallelism. 0 = auto.
stembooltrueApply language-aware stemming.
remove_stop_wordsbooltrueStrip stop words before indexing.
Key Type Default Description
enabledboolfalseEnable vector search at the platform level.
dimensionsusize384Default embedding dimensions.
similaritystringcosinecosine, dot, or euclidean.
hnsw_musize16HNSW connections per node.
hnsw_ef_constructionusize200HNSW search depth during indexing.
hnsw_ef_searchusize50HNSW search depth during queries.
quantizationstringnonenone, scalar, product, or binary.
pq_musize8Sub-spaces for product quantization.
pq_kusize256Centroids per sub-space for product quantization.
allow_sparsebooltrueAllow sparse vector embeddings (SPLADE-style).
allow_multibooltrueAllow multi-vector embeddings (ColBERT-style).
embedder_urlstring""Optional external embedder URL for auto-embedding.
embedder_modelstring""Optional embedder model name for telemetry.
Key Type Default Description
levelstringinfotrace, debug, info, warn, error.
formatstringprettypretty or json.
dirstring./logsLog file directory.
file_prefixstringaccelerateLog file prefix ({prefix}.{date}.log).
max_filesusize7Retained log files. 0 = unlimited.
max_size_mbusize100Max single-file size in MB. 0 = unlimited.
auto_delete_daysusize30Auto-delete logs older than N days. 0 = never.
no_consoleboolfalseDisable console output.
no_fileboolfalseDisable the file log appender.
no_colorboolfalseStrip ANSI color from console output.
quietboolfalseSilence non-error log lines.
Key Type Default Description
enabledbooltrueExpose Prometheus metrics at /metrics.
endpointstring/metricsMetrics endpoint path.
Key Type Default Description
dirstring./snapshotsSnapshot directory.
schedulestring0 0 * * *Cron schedule for auto-snapshot (UTC).
auto_createboolfalseEnable automatic snapshot creation.
Key Type Default Description
check_enabledbooltrueCheck for new versions on startup.
check_intervalstring24hInterval between version checks.
Key Type Default Description
enabledbooltrueEnable per-client rate limiting.
requests_per_secondu32100Steady-state RPS per client.
burst_sizeu32200Allowed burst above the steady-state RPS.
Key Type Default Description
tracing_enabledbooltrueEnable distributed tracing.
service_namestringaccelerateService name reported to tracing backends.
Key Type Default Description
enabledbooltrueToggle the search result cache.
max_entriesusize10000Maximum number of cached entries.
ttl_secondsu64300Cache TTL in seconds.
Key Type Default Description
enabledbooltrueApply CORS headers on every response.
allowed_originsarray<string>[]Allowed origins. [] = allow all.
allowed_methodsarray<string>["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]Allowed methods.
allowed_headersarray<string>["Authorization", "Content-Type", "Accept", "Origin", "X-Requested-With"]Allowed request headers.
allow_credentialsbooltrueAllow cookies / authorization headers.
max_ageu643600Preflight cache duration in seconds.
Every CLI flag is also exposed as an ACCELERATE_* environment
variable. For example, --host 0.0.0.0 is equivalent to
ACCELERATE_HOST=0.0.0.0. Sensitive values that are commonly set via
the environment in production:
Variable Equivalent CLI flag
ACCELERATE_CONFIG--config <file>
ACCELERATE_MASTER_KEY--master-key <key>
ACCELERATE_HOST--host <addr>
ACCELERATE_PORT--port <n>
ACCELERATE_DATA_DIR--data-dir <dir>
ACCELERATE_LOG_LEVEL--log-level <level>
ACCELERATE_ENV--env <development|production>
# config/default.toml contains: host = "localhost", port = 7700
# env vars: ACCELERATE_PORT=8080
# CLI: --host 0.0.0.0
# Effective:
# host = 0.0.0.0 (CLI > env > TOML > default)
# port = 8080 (env > TOML > default)