Other agents

Claude Code and Codex are set up for you. Any other agent that speaks MCP can use Terminal Use too: NeuroTerm copies its setup, you paste it.

How it works

Terminal Use is NeuroTerm's MCP server. It answers an agent started in a NeuroTerm Local or WSL tab, whichever agent it is, and asks you before the agent runs a command or types. Pressing Copy setup puts the agent's config block on the clipboard, with the path of NeuroTerm's server on this computer and the settings that agent needs to pass the tab's key. Copying also turns Terminal Use on for that host; Stop in the same place turns it off.

Agents in other terminals, and SSH hosts, are not answered. For Claude Code and Codex use Terminal Use instead: NeuroTerm sets them up itself.

OpenCode

  1. Open Settings → Coding agents → Other agents. Pick OpenCode and the host it runs on (This computer, or a WSL distribution), then press Copy setup.
  2. Add the block's neuroterm entry to ~/.config/opencode/opencode.json (on Windows, the same path under your user folder), beside any servers already there. Pasting the block over the whole file drops your other settings.
  3. Start opencode in a NeuroTerm Local or WSL tab. OpenCode 2 runs its servers in a shared background service by default, which does not know which tab you are in: start it with opencode --standalone.
  4. Ask the agent to list NeuroTerm's tabs. Its first command or typing in a tab asks you on that tab first.

Alerts

NeuroTerm alerts on a terminal bell, OSC 9 or OSC 777. OpenCode sends none by default; an OpenCode plugin that rings the bell or sends OSC 9 when a session goes idle gives you the alert. Not yet checked with NeuroTerm.

Gemini CLI

  1. Open Settings → Coding agents → Other agents. Pick Gemini CLI and the host it runs on (This computer, or a WSL distribution), then press Copy setup.
  2. Add the block's neuroterm entry to ~/.gemini/settings.json (on Windows, the same path under your user folder), beside any servers already there. Pasting the block over the whole file drops your other settings.
  3. Start gemini in a NeuroTerm Local or WSL tab.
  4. Ask the agent to list NeuroTerm's tabs. Its first command or typing in a tab asks you on that tab first.

Gemini CLI removes variables whose names contain KEY before it starts a server, so the copied block names NEUROTERM_AGENT_KEY in its env. Not yet checked on Windows.

Alerts

Set general.enableNotifications to true in the same settings file.

Copilot CLI

  1. Open Settings → Coding agents → Other agents. Pick Copilot CLI and the host it runs on (This computer, or a WSL distribution), then press Copy setup.
  2. Add the block's neuroterm entry to ~/.copilot/mcp-config.json (on Windows, the same path under your user folder), beside any servers already there. Pasting the block over the whole file drops your other settings.
  3. Start copilot in a NeuroTerm Local or WSL tab.
  4. Ask the agent to list NeuroTerm's tabs. Its first command or typing in a tab asks you on that tab first.

Copilot CLI passes only a few variables to a server, so the copied block lists the ones NeuroTerm's server reads in its env. Not yet checked on Windows.

Alerts

Copilot CLI rings the terminal bell when it finishes or needs you, while its beep setting is on (the default). Not yet checked with NeuroTerm.

Any other agent

Pick Other agent: the block is the common mcpServers form with the server's path. If your agent does not pass its own environment to servers, also pass NEUROTERM_AGENT_KEY (and on Linux XDG_RUNTIME_DIR); the page names them beside Copy setup.

WSL

For an agent inside WSL, pick that distribution as the host and paste the block inside the distribution. NeuroTerm's server is the Windows program, reached through WSL, and the block sets WSLENV so the tab's key reaches it. That value replaces any WSLENV you set for this server. Not yet checked with every agent.

Alerts in general

See Agent alerts for the test alert, the Windows taskbar count and what each tab shows.