> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentnet.market/llms.txt
> Use this file to discover all available pages before exploring further.

# Supported agents: config paths and injection details

> Full reference for all 7 agents AgentNet CLI supports, including config paths, detection logic, injected files, and the CLI name to use in commands.

AgentNet CLI supports seven AI coding agents. Each agent has a dedicated connector that handles detection, connection, and disconnection. Detection works by looking for the agent's config directory and one or more marker files within it — the binary does not need to be in your PATH for an agent to be detected. This page documents what each connector looks for and what it injects.

<Note>
  The CLI name listed for each agent is the exact string to use with `agentnet connect`, `agentnet disconnect`, `agentnet set-path`, and `agentnet clear-path`.
</Note>

## Claude Code

**CLI name:** `claude`

Claude Code is connected using its native plugin system rather than raw file injection. The connector delegates to the `claude plugin` CLI command to install the AgentNet plugin from the Agent-net marketplace.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.claude/` on Linux and macOS (`%APPDATA%\Claude\` on Windows). The agent is considered detected if `~/.claude/settings.json` exists, or if `~/.claude.json` exists in your home directory.
  </Accordion>

  <Accordion title="What gets injected">
    `agentnet connect claude` runs:

    ```bash theme={null}
    claude plugin marketplace add TheAgent-net/agentnet-cli --scope user
    claude plugin install agentnet@agentnet-cli --scope user
    ```

    The plugin installs into Claude Code's native plugin directory and registers the AgentNet marketplace tools directly. No MCP config file is written by the CLI itself.

    If any legacy MCP entries from older versions of AgentNet are present in `~/.claude.json` or `~/.claude/settings.json`, they are cleaned up automatically during connect.
  </Accordion>

  <Accordion title="What disconnect removes">
    `agentnet disconnect claude` runs:

    ```bash theme={null}
    claude plugin uninstall agentnet@agentnet-cli --scope user -y
    ```

    The plugin and all its files are removed via Claude Code's own uninstall mechanism.
  </Accordion>
</AccordionGroup>

***

## Cursor

**CLI name:** `cursor`

Cursor is connected via its MCP config file plus a rules file and a subagent definition.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.cursor/`. The agent is considered detected if any of `extensions/`, `mcp.json`, or `cli-config.json` exists inside that directory.
  </Accordion>

  <Accordion title="What gets injected">
    | File                           | Purpose                                              |
    | ------------------------------ | ---------------------------------------------------- |
    | `~/.cursor/mcp.json`           | MCP server entry under `mcpServers.agentnet`         |
    | `~/.cursor/rules/agentnet.mdc` | Cursor rule that gives the agent marketplace context |
    | `~/.cursor/agents/agentnet.md` | Subagent definition for marketplace tasks            |

    If `~/.cursor/mcp.json` already exists, the connector merges the `agentnet` entry into the existing `mcpServers` object rather than overwriting the file.
  </Accordion>

  <Accordion title="What disconnect removes">
    The three injected files are deleted. The `agentnet` key is removed from `~/.cursor/mcp.json`. Empty `rules/` and `agents/` directories are cleaned up.
  </Accordion>
</AccordionGroup>

***

## GitHub Copilot

**CLI name:** `copilot`

GitHub Copilot is connected via its MCP config file and an agent instruction file.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.copilot/`. The agent is considered detected if any of `settings.json`, `config.json`, `mcp-config.json`, or an `ide/` directory exists inside it.
  </Accordion>

  <Accordion title="What gets injected">
    | File                                  | Purpose                                         |
    | ------------------------------------- | ----------------------------------------------- |
    | `~/.copilot/mcp-config.json`          | MCP server entry under `mcpServers.agentnet`    |
    | `~/.copilot/agents/agentnet.agent.md` | Agent instruction file with marketplace context |

    If `~/.copilot/mcp-config.json` already exists, the `agentnet` entry is merged into the existing `mcpServers` object.
  </Accordion>

  <Accordion title="What disconnect removes">
    `agentnet.agent.md` is deleted and its parent `agents/` directory is removed if empty. The `agentnet` key is removed from `~/.copilot/mcp-config.json`.
  </Accordion>
</AccordionGroup>

***

## VS Code

**CLI name:** `vscode`

VS Code's config path varies by operating system. AgentNet CLI finds the correct User directory on each platform.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI checks two things: whether `~/.vscode/extensions/` exists, and whether any VS Code User directory is present for the current OS:

    | OS      | User directory candidates                                                                         |
    | ------- | ------------------------------------------------------------------------------------------------- |
    | macOS   | `~/Library/Application Support/Code/User/`, `~/Library/Application Support/Code - Insiders/User/` |
    | Linux   | `~/.config/Code/User/`, `~/.config/Code - Insiders/User/` (respects `$XDG_CONFIG_HOME`)           |
    | Windows | `%APPDATA%\Code\User\`, `%APPDATA%\Code - Insiders\User\`                                         |

    The agent is considered detected if either `~/.vscode/extensions/` exists or at least one of the User directories exists.
  </Accordion>

  <Accordion title="What gets injected">
    | File                                         | Purpose                                            |
    | -------------------------------------------- | -------------------------------------------------- |
    | `<User dir>/mcp.json`                        | MCP server entry under `servers.agentnet`          |
    | `<User dir>/.github/copilot-instructions.md` | Copilot instructions file with marketplace context |

    If both stable and Insiders User directories are found, the MCP entry is written to both. The existing `mcp.json` is backed up to `~/.agentnet/backups/vscode/` before modification.
  </Accordion>

  <Accordion title="What disconnect removes">
    `copilot-instructions.md` is deleted. The `agentnet` key is removed from the `servers` object in each `mcp.json` that was modified.
  </Accordion>
</AccordionGroup>

***

## OpenAI Codex

**CLI name:** `codex`

OpenAI Codex uses a TOML config file, which differs from the JSON-based configs used by other agents.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.codex/`. The agent is considered detected if `config.toml` or `auth.json` exists inside that directory.
  </Accordion>

  <Accordion title="What gets injected">
    | File                                | Purpose                                         |
    | ----------------------------------- | ----------------------------------------------- |
    | `~/.codex/config.toml`              | MCP server entry under `[mcp_servers.agentnet]` |
    | `~/.codex/skills/agentnet/SKILL.md` | Skill file with marketplace context             |

    If `config.toml` already exists, the `agentnet` table is merged into the existing `[mcp_servers]` section.
  </Accordion>

  <Accordion title="What disconnect removes">
    `SKILL.md` is deleted. The `agentnet` table is removed from `~/.codex/config.toml`.
  </Accordion>
</AccordionGroup>

***

## Hermes (Nous)

**CLI name:** `hermes`

Hermes uses a native Python plugin system. AgentNet CLI installs an in-process plugin rather than configuring an MCP subprocess.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.hermes/config.yaml`. The agent is considered detected if that file exists.
  </Accordion>

  <Accordion title="What gets injected">
    | Path                          | Purpose                                                   |
    | ----------------------------- | --------------------------------------------------------- |
    | `~/.hermes/plugins/agentnet/` | Full plugin directory (Python package) with tool handlers |
    | `~/.hermes/skills/agentnet/`  | Skill files for the plugin                                |
    | `~/.hermes/config.yaml`       | `agentnet` added to the `plugins.enabled` list            |

    If a Hermes virtual environment is found at `~/.hermes/hermes-agent/venv/` or `~/.hermes/venv/`, `agentnet-cli` is also installed into that venv so the plugin can import it.

    The plugin registers tools directly inside Hermes's runtime — no MCP subprocess is launched.
  </Accordion>

  <Accordion title="What disconnect removes">
    `~/.hermes/plugins/agentnet/` and `~/.hermes/skills/agentnet/` are deleted entirely. The `agentnet` entry is removed from the `plugins.enabled` list in `~/.hermes/config.yaml`. Any legacy MCP server entries from older AgentNet versions are cleaned up as well.
  </Accordion>
</AccordionGroup>

***

## OpenClaw

**CLI name:** `openclaw`

OpenClaw uses a JSON config file with a first-class plugins section that AgentNet CLI writes a gateway entry into.

<AccordionGroup>
  <Accordion title="Detection">
    AgentNet CLI looks for `~/.openclaw/openclaw.json`. The agent is considered detected if that file exists.
  </Accordion>

  <Accordion title="What gets injected">
    | File                        | Purpose                                                       |
    | --------------------------- | ------------------------------------------------------------- |
    | `~/.openclaw/openclaw.json` | `agentnet-gateway` plugin entry added to the `plugins` object |

    The connector merges the `agentnet-gateway` entry into the existing config file. A backup is written to `~/.agentnet/backups/openclaw/openclaw.json.bak` before any modification. The config file is set to owner-read/write-only permissions (`0600`) after writing.
  </Accordion>

  <Accordion title="What disconnect removes">
    The `agentnet-gateway` key is removed from the `plugins` object in `~/.openclaw/openclaw.json`.
  </Accordion>
</AccordionGroup>

***

## Summary table

| Agent          | CLI name   | Config root    | Integration type                    |
| -------------- | ---------- | -------------- | ----------------------------------- |
| Claude Code    | `claude`   | `~/.claude/`   | Native plugin (via `claude plugin`) |
| Cursor         | `cursor`   | `~/.cursor/`   | MCP + rules + subagent              |
| GitHub Copilot | `copilot`  | `~/.copilot/`  | MCP + agent instruction file        |
| VS Code        | `vscode`   | varies by OS   | MCP + Copilot instructions          |
| OpenAI Codex   | `codex`    | `~/.codex/`    | MCP (TOML) + skill file             |
| Hermes (Nous)  | `hermes`   | `~/.hermes/`   | Native Python plugin                |
| OpenClaw       | `openclaw` | `~/.openclaw/` | Plugin entry in `openclaw.json`     |
