Local companion
CLI reference
Every igpilot-local command and option, what it writes and what it prints.
Important
Self-installed version only. This page is about the local companion (igpilot-local), which works with a version of IG Pilot you install yourself. The Chrome Web Store version can't talk to the companion and has no Control from Claude desktop switch: connect it through the connector at https://api.igpilot.io/mcp instead.
npx igpilot-local <command> [options]| Command | What it does |
|---|---|
install | Registers the Chrome host and prints the Claude Desktop and Claude Code config |
doctor | Checks the setup: Node, the host registration, the launcher, the running host and the extension |
uninstall | Removes the host registration, the launcher and ~/.igpilot/companion (keeps the log) |
mcp | The stdio MCP server. Your AI app runs this; you don't |
host | The native-messaging host. Chrome runs this; you don't |
version | Prints the version (also --version, -v) |
help | Prints the command list (also --help, -h) |
The companion runs on macOS and Linux and needs Node.js 20 or newer.
install#
npx igpilot-local install [options]- When run from the npx cache, copies the package and its dependencies to
~/.igpilot/companion. - Writes the launcher
~/.igpilot/bin/igpilot-host, a small shell script that starts the companion's host with the Node that raninstall. - Writes Chrome's host manifest
io.igpilot.bridge.jsoninto the browser'sNativeMessagingHostsfolder, allowed only for the listed extension ids. - Saves those ids to
~/.igpilot/allowed-extensions.json. The host checks them again every time Chrome starts it. - Prints the config for Claude Desktop and Claude Code. It never writes your AI app's config.
| Option | What it does |
|---|---|
--extension-id <id> | Also allow this extension id: the 32 letters that chrome://extensions shows for IG Pilot. Repeat it for several. Needed when doctor doesn't list your IG Pilot's id |
--no-known-ids | Allow only the ids you pass with --extension-id |
--browser <name> | Register with another browser: chrome (the default), chrome-beta, chrome-canary, chromium, brave or edge |
--target-dir <dir> | Write the manifest and the launcher into this folder instead |
--dry-run | Print what it would write, and the config, without writing anything |
--copy | Always copy the package to ~/.igpilot/companion first |
--in-place | Never copy: point the launcher and the config at the package where it is |
Options take a value either as --browser brave or --browser=brave.
After installing, reload IG Pilot in chrome://extensions (or restart Chrome) so it picks up the host.
doctor#
npx igpilot-local doctor [--browser <name>] [--target-dir <dir>]Each line starts with a mark: [ok], [warn], [FAIL] or [--] (information). It checks:
| Check | Passes when |
|---|---|
| Node | Node is version 20 or newer |
| Chrome host manifest | io.igpilot.bridge.json exists, is well formed and allows at least one extension |
| Allowed extensions | (information) the extension ids the manifest allows |
| Launcher | The launcher exists, is executable, and its Node and companion paths still exist |
| Host running | The host answers on ~/.igpilot/bridge.sock within 3 seconds |
| Extension connected | IG Pilot has said hello to the host |
| Local Claude provider | (information) only used by IG Pilot's team; not needed for Claude Desktop |
It ends with All good. or the number of problems found, and exits with status 1 when something failed. Pass the same --browser or --target-dir you installed with.
uninstall#
npx igpilot-local uninstall [--target-dir <dir>] [--dry-run]Removes the host manifest from every supported browser's folder, the launcher, ~/.igpilot/companion and ~/.igpilot/allowed-extensions.json. It keeps the log, ~/.igpilot/companion.log. With --dry-run it only lists what it would remove.
Then remove the server from your client yourself:
- Claude Desktop: delete the
igpilotentry fromclaude_desktop_config.json. - Claude Code: run
claude mcp remove --scope user igpilot. - Codex: run
codex mcp remove igpilot, or delete the[mcp_servers.igpilot]table from~/.codex/config.toml. - Grok: run
grok mcp remove igpilot, or delete the[mcp_servers.igpilot]table from~/.grok/config.toml.
mcp#
"/path/to/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcpThe stdio MCP server, named igpilot. Your client starts it from the config on the Connect page. It forwards each tool call to the host over ~/.igpilot/bridge.sock and never talks to Instagram or any server itself. Its stdout is the MCP protocol, so it logs to ~/.igpilot/companion.log instead.
host#
The Chrome native-messaging host. Chrome starts it through the launcher when IG Pilot connects, and passes the extension's origin, which the host checks against the allowed ids before it serves anything. Don't run it by hand.
Files#
Everything the companion writes lives in ~/.igpilot, which is private to your user account:
| Path | What it is |
|---|---|
~/.igpilot/companion/ | The copied package (npx installs) |
~/.igpilot/bin/igpilot-host | The launcher Chrome starts |
~/.igpilot/allowed-extensions.json | The extension ids the host serves |
~/.igpilot/bridge.sock | The local socket between mcp and host. Each Chrome session gets its own socket file and bridge.sock points at the newest |
~/.igpilot/bridge.token | A random secret each host writes when it starts; mcp must present it |
~/.igpilot/companion.log | A small rotating log |
~/.igpilot/brain/ | The copy of the Brain and the CRM |
The host manifest itself goes in the browser's folder, for example ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/io.igpilot.bridge.json on macOS or ~/.config/google-chrome/NativeMessagingHosts/io.igpilot.bridge.json on Linux.
For more detail in the log, add export IGPILOT_LOG_LEVEL=debug to ~/.igpilot/bin/igpilot-host. A new install rewrites that file.
Note
login, auth-status and smoke are for the "Local Claude" provider, which only IG Pilot's team uses. You don't need them to connect Claude Desktop, Claude Code, Codex or Grok.