mx init
Set up AI coding tool integrations
Usage
mx init [--yes]
Detects installed AI coding tools and configures them to use mandex for documentation lookups. Creates the config file at ~/.mandex/config.toml.
Flags
| Flag | Description |
|---|---|
--yes | Accept all defaults without prompting |
What it does
- Detects AI tools — scans for Claude Code, Cursor, Codex, and Windsurf
- Installs integrations — writes rules/skills to each tool’s config location
- Offers reranker setup — downloads a ~19MB ONNX model for neural reranking of search results
- Creates config — writes
~/.mandex/config.tomlwith default settings
Example
$ mx init
◇ Detected tools ──────────
│ ● Claude Code
│ ● Cursor
◇ Installing ──────────────
│ ✓ Claude Code
│ ✓ Cursor
│ ✓ Reranker enabled
│ ✓ Model ready
└ Done.
Non-interactive mode
Use --yes in scripts or CI to skip all prompts:
mx init --yes