Appearance
Install the CLI
ai-boost is one file. It needs nothing else installed, and no token.
Install
sh
curl -fsSL https://aiboost.metadevs.de/install.sh | shsh
wsl # then, inside the Linux shell:
curl -fsSL https://aiboost.metadevs.de/install.sh | shThe installer detects your platform, checks that the download is intact, installs to ~/.local/bin and adds that to your PATH.
To install somewhere else, set AI_BOOST_INSTALL_DIR — for example curl -fsSL https://aiboost.metadevs.de/install.sh | AI_BOOST_INSTALL_DIR=$HOME/bin sh.
Restart your terminal, then check it:
sh
ai-boost --versionWhy a terminal command and not a download link
macOS marks anything downloaded through a browser as quarantined, and Gatekeeper then refuses to run it. Files fetched with curl carry no such mark. If you do end up with a browser-downloaded copy, clear it with xattr -d com.apple.quarantine ai-boost.
Windows
Use WSL. There is no native Windows build, and install.ps1 refuses rather than installing one — it prints these instructions and exits non-zero.
powershell
wsl --install # once, if you do not already have WSL
wsl # then follow the macOS / Linux instructions above, inside itInside WSL you are on the ordinary Linux path: same binary, same init, same tools. Both WSL architectures are covered — x86_64 on Intel and AMD, aarch64 on Windows on ARM.
Nobody has run this on Windows yet
We tested the Linux versions. WSL runs Linux, so it should work, but nobody has tried it on Windows yet. If you are the first, please say how it went.
Keep the repository and your editor on the WSL side rather than reaching a Windows drive through /mnt/c. Indexing walks the working tree and that crossing is slow enough to feel; the hooks also belong next to the code they run against.
Why there is no native binary
Every platform's binary is a phpmicro runtime concatenated onto our phar, and upstream publishes only one Windows runtime — an spc-min build. Every other target uses common, which is required because a minimal build ships no curl and no openssl, leaving a binary with no TLS and therefore no command that can reach the server. The runtime sizes agree: upstream's known no-TLS minimal build is 2.7 MB, common is 12.5 MB, and the Windows one is 3.5 MB — it sits with the build that has no TLS.
This changes when upstream publishes windows/common/php-8.4.x-micro-win.zip. As of 8.4.24 it does not.
Old Windows .exe files in releases up to 1.3.0 were never tested. Do not use them. Releases from 2.0.0 on publish no Windows file at all.
No WSL? The phar
The phar is the same application without the bundled runtime, so it needs a PHP you provide:
powershell
# PowerShell, with PHP already on PATH
curl.exe -fsSLO https://aiboost.metadevs.de/cli/download/ai-boost.phar
php ai-boost.phar --versionThree prerequisites, none of which a Windows PHP archive does for you:
- PHP 8.4.1 or newer — earlier versions will not run it.
- A
php.ini— the archive shipsphp.ini-developmentandphp.ini-production; until you copy one tophp.ini, no extensions load at all. extension=curlandextension=openssluncommented — both are commented out by default, and without them every command that reaches the server fails.
Confirm all three at once. If this prints the server URL you are set up:
powershell
php ai-boost.phar doctorA missing extension surfaces here as an unreachable API rather than as a clear complaint about PHP, which is why it is worth checking before going further.
Set a project up
sh
cd ~/projects/acme.io # a repository, or the folder holding several
ai-boost initThis is the only command most people ever need. It signs you in, registers or joins every repository it finds, issues your keys, writes the editor configuration, installs the hooks and indexes the code. See Quick Start for what each of those means, and Doing it by hand below for the individual commands behind them.
Useful flags:
| Flag | What it does |
|---|---|
--skip-index | Set everything up but do not index yet |
--laravel-boost | Install laravel/boost into a Laravel project; init never offers it on its own |
--no-hooks | Do not register the Claude Code hooks or the post-commit / post-merge re-index |
--yes | Take the default answer to every question, for CI |
--no-browser | Print the sign-in URL instead of opening it — open it on any device |
Signing in
init signs you in the first time it runs. To sign in on its own, or to re-authenticate:
sh
ai-boost auth:loginYour browser opens, you sign in with Google (you need an invitation; the account's domain does not matter), and the terminal collects the credentials itself — there is nothing to copy back. They are stored in ~/.config/ai-boost/credentials.json.
On a machine without a browser, open the printed link on any other device:
sh
ai-boost auth:login --no-browser
# Sign in with Google by opening this URL on any device:
# https://aiboost.metadevs.de/auth/google?cli=<handle>The waiting terminal finishes by itself. For something scripting the CLI, add --json — stdout becomes one JSON event per line and the prose moves to stderr. A code you already have still works: --token=<code>, or AI_BOOST_TOKEN.
sh
ai-boost auth:status # who am I signed in as?
ai-boost doctor # is the server reachable, and is this directory actually set up?Re-indexing
sh
ai-boost index # everything here
ai-boost index --incremental # only what changed since the last commitYour machine splits the code into pieces, and the text of those pieces is uploaded so it can be searched. The server never needs access to your repository, but your code's text does leave your machine. Files git does not track are left out. A tracked file is sent as it is on disk, committed or not. The first run also indexes commit history. See What leaves your machine.
Before committing to a full run, see what would be included:
sh
ai-boost index --dry-run --explainEvery run ends by reporting what it excluded and which rule excluded it.
With the hooks init installs, post-commit and post-merge re-indexes keep the index current on its own — covering both the code you write and the code a git pull brings in — so this is for the times you want it now rather than at the next commit. A session start also re-indexes, in the background, a repository whose index has fallen far behind the remote's default branch; it indexes that branch from a temporary checkout and leaves your own branch and working tree alone (how it works).
Everything else
| Command | Purpose |
|---|---|
ai-boost doctor | Whether this directory is set up and working, check by check |
ai-boost analytics --repo=<id> | Cost, call count and average score for a repository |
ai-boost key:list --repo=<id> · key:revoke | Manage your keys |
ai-boost auth:logout | Sign out of the current server |
ai-boost admin:grant | Grant a platform role (admins only) |
Full details for every command: CLI Reference.
Updating
sh
ai-boost updateIt downloads the newest release, checks it against the same published checksum the installer uses, and replaces this binary in place. Repositories already set up keep working — their hooks name this path.
You should not have to run it at all. ai-boost updates itself in the background for small updates and tells you when it does. For a major update it only tells you; run ai-boost update then. To stop automatic updates, set AI_BOOST_NO_AUTO_UPDATE=1.
ai-boost update --check asks on demand, and AI_BOOST_NO_UPDATE_CHECK=1 turns the whole check off, which is what CI wants. Details are in update. The version you have is ai-boost --version, and the current release is shown on What's new → CLI.
Backing out
ai-boost uninstall removes everything init wrote to a repository — or to a folder of them, and the repositories inside it in the same run. --dry-run lists it first. Anything you edited or adopted is kept, and the server side is untouched: the project, its repositories and the index all stay, and the API key keeps working until you revoke it. See uninstall.
Doing it by hand
init does all of this for you. The individual commands are here because they are still the right tool for a script, a CI job, or a case init does not cover — and because it helps to know what it actually did.
1. Create a project, or list the ones you are already in:
sh
ai-boost project:list
ai-boost project:create "acme.io"2. Register the repository against its git remote. Paste either the SSH or the HTTPS address; ai-boost treats them as the same. This is what lets teammates enrol themselves later:
sh
cd ~/projects/acme.io/api
ai-boost repo:add --project=acme.io --gitlab=git@gitlab.example.com:acme/api.gitThe name, the stack and the remote are all read from the directory, so all three flags are optional — but a repository registered without a remote is one nobody else can ever join, so repo:add warns when it cannot find one.
--stack says what the repository is built with, so you get the right coding rules. It is detected from the directory when you omit it. Coding rules exist for php, laravel (and laravel-api), symfony, slim, vue, nuxt, react (and next) and node. Any other language works the same way and gets general advice.
3. Generate your key. key:generate issues a sharedab_live_ key — the kind a CI job or a script uses — for one repository (--repo) or a whole project (--project). init does this for you: it writes a personal ab_dev_ key for your editor into .claude/settings.local.json and the shared ab_live_ key into .env. By hand, find the repository id with repo:list:
sh
ai-boost repo:list
ai-boost key:generate --repo=12 --name="my laptop" --expires=90The key is shown once. Put it in the repository's .env as AI_BOOST_KEY= so the CLI finds it automatically, or export it:
sh
export AI_BOOST_KEY=ab_live_…4. Index the code:
sh
cd ~/projects/acme.io/api
ai-boost index5. Connect your editor. The CLI indexes; your editor needs to be told where to ask questions. Add one HTTP entry to the project's .mcp.json — see Connect Claude Code to ai-boost for the exact block.