setup
БесплатноБез исполняемых скриптовНе проверенInstall, configure and verify PAI Knowledge OS, including workers, the router and the cockpit. USE WHEN user says "set up PAI", "install PAI", "configure…
от mnott★ 74 звезды на GitHubОб этом скилле
PAI setup
Work through the phases in order. Run the check of a phase first; if it already passes, say so and move on.
One install route, however the user started. Whether they said "clone https://github.com/mnott/PAI and set it up for me", installed the plugin, or asked from scratch, install the same way: the released npm package (phase 2), the pai plugin from the marketplace (phase 2a), then pai setup (phase 3), which also installs AIBroker. A clone of the repository is only where these instructions came from: do not build, link or run PAI from it (that would run unreleased code). Tell the user they can delete the clone afterwards, or keep it if they want to work on PAI itself. Prefer pai commands over editing files by hand; pai <command> --help is the reference. Ask the user before anything that installs a service, needs an API key, or starts a large download — except AIBroker, which setup installs without asking because PAI's messaging depends on it. Never print API keys back.
1. Prerequisites
Check: node --version (needs 20 or newer), claude --version, git --version.
- Node missing or older than 20: install a current LTS (brew, nvm, or the system package manager). Bun is not needed to install or run PAI.
- Claude Code missing: install it from its official installer, then run
claudeonce to log in. - On a clean macOS,
gitcan be a stub that fails until the Xcode command line tools are installed; trustgit --version, notcommand -v git. - Linux: also install
tmux(worker panes). Use an npm prefix in the home directory sonpm i -gneeds no sudo:npm config set prefix ~/.npm-globaland put~/.npm-global/binon PATH.
Verify: all three commands print a version. If npm i -g later fails with EACCES, fix the prefix as above.
2. Install or upgrade the package
Check: pai --version.
npm i -g https://github.com/mnott/PAI/releases/latest/download/pai.tgz # install (the release asset; no npm registry)
pai update # upgrade to the latest GitHub Release
pai update --check # only report
Verify: pai --version prints a version and pai more lists commands. If pai is not found, add $(npm prefix -g)/bin to PATH in the shell profile and open a new shell.
2a. Install the plugin
Check: claude plugin list shows pai.
claude plugin marketplace add mnott/PAI
claude plugin install pai@pai
The plugin brings PAI's skills (this one included) and keeps them current with claude plugin update pai. Tell the user the plugin is active from the next Claude Code session on.
3. Run setup
Never run the interactive pai setup from a Bash tool: there is no terminal, so it cannot be answered. Ask the user in chat instead:
pai setup --questions --json
It prints every question setup would ask on this machine, in order, each with id, step, question, flag, default, allowed and, where the machine already has an answer (storage, embedding, router), current. Ask the user those questions in chat, grouped by step, with each default pre-filled; accept "defaults" for all of them, and skip questions that have a current value unless the user wants to change it. Then run setup once with the matching flags (omit a flag to take its default):
pai setup --yes --storage sqlite --embedding none --router-port 9000 --router-bind loopback --no-hooks
Tell the user that setup also installs the background daemon as a login service (launchd on macOS, a systemd user unit on Linux) and AIBroker, and that the cockpit is reachable from other devices when its reach is not loopback. Setup covers storage, search embeddings, Claude Code hooks and settings, the background daemon, the router and cockpit, and the first index. It is safe to run again. Without --storage, --yes picks sqlite unless a local Postgres answers. On macOS setup also asks which dictation transcription model the menu bar app should use (--dictation-model ID: large-v3-turbo-q5_0 default, medium, small, base); it only records the choice and never downloads, it prints the download command when the file is missing. Change it later with pai setup --dictation-model ID.
Storage choice, ask the user:
- sqlite: keyword search, no extra software. Right for most people and for small machines.
- postgres: keyword plus semantic search. Needs Docker; setup starts a
pai-pgvectorcontainer itself (or pass--pg-url). On a small machine exportPAI_PG_SHARED_BUFFERS=256MBfirst.
Verify: setup ends without an error and pai memory search "test" runs (it prints hits or no results, but no error; results appear once the first index is done). If it stops, fix the named cause and run pai setup again.
4. Daemon
Check: pai daemon status says running. Under a HOME that is not the account home (a sandbox or test), setup writes the service file but does not load it: the status stays "not running" and the comm
Установить setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setup?
Install, configure and verify PAI Knowledge OS, including workers, the router and the cockpit. USE WHEN user says "set up PAI", "install PAI", "configure PAI", "give Claude a memory", "set up workers", "set up the cockpit", or asks whether their PAI install is healthy. Phase-based and idempotent: every phase checks its state first and only does what is missing.
Как установить скилл setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic