Install
Pick whichever fits how you work. Or don't install anything: the playground runs amlint in your browser.
pip
You need Python 3.9 or newer. amlint pulls in two small dependencies, PyYAML and Rich.
Docker
No Python needed. Mount the folder with your config and pass its path inside the container:
Releases are tagged by version (0.8.5) and minor version (0.8); latest follows the main branch.
Homebrew
brew tap danikdanik2013/amlint https://github.com/danikdanik2013/amlint
brew install danikdanik2013/amlint/amlint
Use the full name. Homebrew 6 and newer refuse brew install amlint with "Refusing to load
formula ... from untrusted tap". Naming the formula in full trusts it
(Tap Trust). Upgrade with brew upgrade amlint.
On Apple Silicon, Homebrew installs to /opt/homebrew/bin. If your editor can't find amlint,
see VS Code.
GitHub Action
Nothing to install. Add the action to a workflow; see GitHub Action.
pre-commit
Check the config on every commit. Add this to .pre-commit-config.yaml:
The hook runs on files whose names end in alertmanager.yml or alertmanager.yaml.
Editors
To see findings as you type, install amlint as above, then:
- VS Code: install the amlint extension (
code --install-extension dpyly.amlint). - Neovim, Helix and others: see Editors.
AI coding assistants
Claude Code: add the plugin. It teaches Claude to run amlint when you ask it to check an Alertmanager config, explain a finding, trace where an alert goes or write routing tests:
You still need amlint itself installed (see above). The plugin only tells Claude how to use it.
Other assistants: llms.txt is a short summary of amlint for AI tools, and llms-full.txt has every page of these docs in one file.
Shell completions
Tab completion for commands and flags in bash and zsh:
pip install "amlint[completions]"
# bash
echo 'eval "$(register-python-argcomplete amlint)"' >> ~/.bashrc
# zsh
echo 'eval "$(register-python-argcomplete amlint)"' >> ~/.zshrc
Check that it works
amlint init prints a minimal valid config, so the second command should report no errors.