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.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.
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.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.
Detection
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.What gets injected
What gets injected
agentnet connect claude runs:~/.claude.json or ~/.claude/settings.json, they are cleaned up automatically during connect.What disconnect removes
What disconnect removes
agentnet disconnect claude runs:Cursor
CLI name:cursor
Cursor is connected via its MCP config file plus a rules file and a subagent definition.
Detection
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.What gets injected
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 |
~/.cursor/mcp.json already exists, the connector merges the agentnet entry into the existing mcpServers object rather than overwriting the file.What disconnect removes
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.GitHub Copilot
CLI name:copilot
GitHub Copilot is connected via its MCP config file and an agent instruction file.
Detection
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.What gets injected
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 |
~/.copilot/mcp-config.json already exists, the agentnet entry is merged into the existing mcpServers object.What disconnect removes
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.VS Code
CLI name:vscode
VS Code’s config path varies by operating system. AgentNet CLI finds the correct User directory on each platform.
Detection
Detection
AgentNet CLI checks two things: whether
The agent is considered detected if either
~/.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\ |
~/.vscode/extensions/ exists or at least one of the User directories exists.What gets injected
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 |
mcp.json is backed up to ~/.agentnet/backups/vscode/ before modification.What disconnect removes
What disconnect removes
copilot-instructions.md is deleted. The agentnet key is removed from the servers object in each mcp.json that was modified.OpenAI Codex
CLI name:codex
OpenAI Codex uses a TOML config file, which differs from the JSON-based configs used by other agents.
Detection
Detection
AgentNet CLI looks for
~/.codex/. The agent is considered detected if config.toml or auth.json exists inside that directory.What gets injected
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 |
config.toml already exists, the agentnet table is merged into the existing [mcp_servers] section.What disconnect removes
What disconnect removes
SKILL.md is deleted. The agentnet table is removed from ~/.codex/config.toml.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.
Detection
Detection
AgentNet CLI looks for
~/.hermes/config.yaml. The agent is considered detected if that file exists.What gets injected
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 |
~/.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.What disconnect removes
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.OpenClaw
CLI name:openclaw
OpenClaw uses a JSON config file with a first-class plugins section that AgentNet CLI writes a gateway entry into.
Detection
Detection
AgentNet CLI looks for
~/.openclaw/openclaw.json. The agent is considered detected if that file exists.What gets injected
What gets injected
| File | Purpose |
|---|---|
~/.openclaw/openclaw.json | agentnet-gateway plugin entry added to the plugins object |
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.What disconnect removes
What disconnect removes
The
agentnet-gateway key is removed from the plugins object in ~/.openclaw/openclaw.json.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 |
