LOCAL COMMANDER / CHATGPT SETUP

Connect ChatGPT to Your PC

Connect ChatGPT to files and terminal on your own computers through Local Commander. Start with a read-only check before asking it to change anything.

Documentation checked · By Peter Mamrukov

Prepare your computer

Create your Local Commander account, then open Dashboard → Add computer. Run the command shown for that computer's operating system and approve its pairing code in the same account. Choose Full Access to your operating-system user account or selected folders on that computer.

You need Node.js 20 or later, and Windows 11 x64, macOS 14+ on Apple Silicon, or Linux with a systemd user session (qualified on Ubuntu 24.04 x64/arm64). The computer must stay awake, online and running the agent. Your project tools, such as Git, are separate installs.

Install without a dashboard command

Run the matching command below on the computer you want to reach. Follow its pairing link/code, then check localcommander status. These install the hosted companion; they are not stdio MCP server commands.

Windows (PowerShell)

npx --registry=https://gitlab.com/api/v4/projects/88458751/packages/npm/ local-commander-agent@latest

macOS (Apple Silicon)

npx --registry=https://gitlab.com/api/v4/projects/88458751/packages/npm/ -p local-commander-agent@latest -p local-commander-agent-darwin-arm64@latest localcommander

Linux x64

npx --registry=https://gitlab.com/api/v4/projects/88458751/packages/npm/ -p local-commander-agent@latest -p local-commander-agent-linux-x64@latest localcommander

Linux arm64

npx --registry=https://gitlab.com/api/v4/projects/88458751/packages/npm/ -p local-commander-agent@latest -p local-commander-agent-linux-arm64@latest localcommander

Before installing, read the dated security status, including the unresolved historical advisory and version-specific checks. Full Access is not a sandbox.

Connect ChatGPT

Use the directory listing

  1. Open the Local Commander listing in ChatGPT.
  2. Use its install/connect action. Sign in to the same Local Commander account used for computer pairing, review the OAuth permission screen and allow the connection.
  3. Start a new chat, type @ and select Local Commander when you want it to use your computers.

Custom MCP alternative on ChatGPT web

OpenAI's current custom-connection documentation lists full MCP for Business and Enterprise/Edu, with workspace permissions; Pro custom connections are limited to read/fetch. This is separate from directory-plugin availability. Check your account's available actions before relying on command execution.

  1. Open Plugins, select the plus button and Add custom MCP server.
  2. Name it Local Commander, enter https://localcmd.app/mcp as the HTTPS endpoint and choose OAuth.
  3. Review the warning, create the plugin and complete Local Commander's sign-in/consent. No client secret or personal API key is needed.
  4. Select the plugin in a fresh chat and run the read-only check below.

Developer Mode is no longer a prerequisite in the current Plugins UI. Custom connection setup is web-only; directory availability and later use on other clients depend on your account and client. In a managed workspace, an admin may need to enable it.

Verify access without changing files

Start a fresh conversation with Local Commander enabled. Ask:

Use Local Commander to list my computers. Ask which one to use if there is more than one. On that computer, list the names of files in a folder I have granted access to. Do not read file contents, edit anything, install software or run commands.

A successful result names the selected computer and returns that folder's entries. An empty folder is a valid result; an offline computer or access error is not success. Check the matching read operation in Activity. A chat reply without a tool result does not prove a connection.

When the first request fails

No computers
Check that the agent and AI connection use the same Local Commander account. Run localcommander status on the target computer and finish pairing.
Computer offline
Wake it, restore its internet connection and run localcommander start. The service cannot wake an offline computer.
Sign-in expired or tools missing
Reconnect the client using OAuth, refresh its tool list if available and start a new conversation. A server restart does not refresh a client's cached tools.
Access denied
Choose a folder within the existing grant. Only widen access deliberately on the computer with localcommander configure-access; a chat cannot grant itself more access.
Antivirus blocks installation
Keep protection enabled and follow the antivirus guide. Do not restore quarantined files or add a broad exclusion.

Access, cancellation and removal

This connection provides file, Git and terminal tools on the selected computer. It is not remote desktop or general GUI clicking, and does not automatically connect email, calendars or cloud accounts. Commands run with that computer user's rights. Hosted commands and results pass through Local Commander to your AI; see data handling.

Ask the AI to cancel a running request, or run localcommander stop on the computer. Removing access blocks new work; it does not itself stop already running work. Cancellation and process-tree guarantees depend on the installed platform/mode.

To disconnect, remove Local Commander in your AI client's connections and revoke its access in Dashboard → Settings → AI apps with access. To remove the agent, run localcommander uninstall on that computer. It stops the agent and preserves local enrollment state; localcommander uninstall --purge-state also deletes that local state. Remove the computer from the dashboard if you no longer use it.

Sources and verification

OpenAI: custom MCP connections, checked 24 November 2026. Client screens and account policies can change. This guide has not yet been verified end to end in a signed-in ChatGPT account for this revision; the date above records the documentation review, not a successful connection test.

Learn how remote access fits together or choose a read-only first task.