Configuration

Customize mandex search, network, and display settings

The config file lives at ~/.mandex/config.toml. It is created automatically by mx init.

Sections

[search]
results = 5              # default number of results
rerank = true            # enable neural reranking
rerank_model = "default" # reranker model name
rerank_candidates = 20   # FTS candidates to rerank

[network]

[network]
cdn_url = "https://cdn.mandex.dev"
api_url = "https://registry.mandex.dev"

[display]

[display]
color = true

Environment variable overrides

Every config option can be overridden with an environment variable using the MX_ prefix. Nest levels are separated by _:

Config keyEnvironment variable
search.resultsMX_SEARCH_RESULTS
search.rerankMX_SEARCH_RERANK
search.rerank_candidatesMX_SEARCH_RERANK_CANDIDATES
network.cdn_urlMX_NETWORK_CDN_URL
display.colorMX_DISPLAY_COLOR
# Override results count for a single command
MX_SEARCH_RESULTS=10 mx search fastapi "middleware"