Chronix

chronixd command line

Every chronixd flag, environment variable and subcommand: running the server, the demo, checking a config, inspect and the MCP stdio server.

On this page

chronixd runs the server. With a subcommand it does one job and exits instead. Precedence for every setting: flag, then environment variable, then the config file, then the built-in default.

chronixd [FLAGS]                 run the server
chronixd --demo                  run on generated data, loopback only
chronixd inspect <DIR> [FLAGS]   report what a data directory holds
chronixd mcp --data-dir <DIR>    serve MCP over stdio from a directory

Server flags

FlagEnvironmentMeaning
-c, --config PATHCHRONIXD_CONFIGTOML configuration file (Configuration)
--data-dir PATHCHRONIXD_DATA_DIRData directory
--bind ADDRCHRONIXD_BINDHTTP address (default 0.0.0.0:8086)
--grpc-bind ADDRCHRONIXD_GRPC_BINDgRPC address (default 0.0.0.0:8087)
--flight-bind ADDRCHRONIXD_FLIGHT_BINDFlight SQL address (default 0.0.0.0:8817)
--tls-cert PATHCHRONIXD_TLS_CERTTLS certificate; needs --tls-key
--tls-key PATHCHRONIXD_TLS_KEYTLS private key
--tls-client-ca PATHCHRONIXD_TLS_CLIENT_CARequire client certificates signed by this CA (mTLS)
--tls-reload-interval-secs NCHRONIXD_TLS_RELOAD_INTERVALReload the certificate and key every N seconds; 0 never. Default: the config file's [tls] reload_interval_secs, else 60
--log-format text|json|compactCHRONIXD_LOG_FORMATLog format; text by default, json for a log pipeline
--log-level FILTERCHRONIXD_LOG_LEVELLog level filter, e.g. info or chronixd=debug
--export-dashboards DIR—Write the bundled Grafana dashboards to DIR and exit
--check-config—Validate the configuration, print what it resolves to, and exit without opening the database or binding a port
--demoCHRONIXD_DEMOServe a generated week of gateway data from a temporary directory, on loopback, without authentication; deleted on exit

--demo refuses --data-dir and --config. Pass --bind 127.0.0.1:0 to pick a free port; the banner prints the one it bound.

chronixd inspect

Reports what a data directory holds without opening it: nothing is written, locked or replayed, so it is safe on a directory a running server holds.

ArgumentMeaning
DIRThe data directory
--jsonOne JSON document (schema chronix.inspect/1) instead of the report
--fastSkip the series sidecars: faster, without series counts
-c, --config PATHTake the cardinality budget from this server configuration

Exit status 0 when a report was printed, problems included; 1 when the directory is not a Chronix data directory or the configuration cannot be read. See Operate a server for reading the report.

chronixd mcp

Serves the MCP tools over stdio from a data directory opened read-only — for a directory copied off a device. A directory a running process holds is refused; connect to that server's /mcp endpoint instead.

ArgumentMeaning
--data-dir DIRThe data directory
-c, --config PATHDatabase settings the directory needs, such as field-encryption keys; listen addresses are ignored

See Use Chronix from an AI agent.

Cluster binary

Cluster mode is a separate, unpublished binary with extra role flags; see Cluster (frozen).

Edit this page on GitHub · Updated

Esc