IG Pilot Docs

Local companion

CLI reference

Every igpilot-local command and option, what it writes and what it prints.

On this page

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.

Terminal
npx igpilot-local <command> [options]
CommandWhat it does
installRegisters the Chrome host and prints the Claude Desktop and Claude Code config
doctorChecks the setup: Node, the host registration, the launcher, the running host and the extension
uninstallRemoves the host registration, the launcher and ~/.igpilot/companion (keeps the log)
mcpThe stdio MCP server. Your AI app runs this; you don't
hostThe native-messaging host. Chrome runs this; you don't
versionPrints the version (also --version, -v)
helpPrints the command list (also --help, -h)

The companion runs on macOS and Linux and needs Node.js 20 or newer.

install#

Terminal
npx igpilot-local install [options]
  1. When run from the npx cache, copies the package and its dependencies to ~/.igpilot/companion.
  2. Writes the launcher ~/.igpilot/bin/igpilot-host, a small shell script that starts the companion's host with the Node that ran install.
  3. Writes Chrome's host manifest io.igpilot.bridge.json into the browser's NativeMessagingHosts folder, allowed only for the listed extension ids.
  4. Saves those ids to ~/.igpilot/allowed-extensions.json. The host checks them again every time Chrome starts it.
  5. Prints the config for Claude Desktop and Claude Code. It never writes your AI app's config.
OptionWhat 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-idsAllow 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-runPrint what it would write, and the config, without writing anything
--copyAlways copy the package to ~/.igpilot/companion first
--in-placeNever 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#

Terminal
npx igpilot-local doctor [--browser <name>] [--target-dir <dir>]

Each line starts with a mark: [ok], [warn], [FAIL] or [--] (information). It checks:

CheckPasses when
NodeNode is version 20 or newer
Chrome host manifestio.igpilot.bridge.json exists, is well formed and allows at least one extension
Allowed extensions(information) the extension ids the manifest allows
LauncherThe launcher exists, is executable, and its Node and companion paths still exist
Host runningThe host answers on ~/.igpilot/bridge.sock within 3 seconds
Extension connectedIG 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#

Terminal
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 igpilot entry from claude_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#

Terminal
"/path/to/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcp

The 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:

PathWhat it is
~/.igpilot/companion/The copied package (npx installs)
~/.igpilot/bin/igpilot-hostThe launcher Chrome starts
~/.igpilot/allowed-extensions.jsonThe extension ids the host serves
~/.igpilot/bridge.sockThe local socket between mcp and host. Each Chrome session gets its own socket file and bridge.sock points at the newest
~/.igpilot/bridge.tokenA random secret each host writes when it starts; mcp must present it
~/.igpilot/companion.logA 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.

Written from the source of igpilot-local 0.1.0 (agent spec 2026-11-17.1). This page as Markdown · llms.txt

IG Pilot is an independent product, not affiliated with, endorsed by or sponsored by Instagram, Meta, Anthropic, OpenAI or xAI. Claude and Claude Code are trademarks of Anthropic, PBC. OpenAI, ChatGPT and Codex are trademarks of OpenAI. Grok is a trademark of xAI. Instagram is a trademark of Meta Platforms, Inc. Chrome is a trademark of Google LLC.