Skip to main content

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.

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.
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.
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.
agentnet connect claude runs:
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.
agentnet disconnect claude runs:
claude plugin uninstall agentnet@agentnet-cli --scope user -y
The plugin and all its files are removed via Claude Code’s own uninstall mechanism.

Cursor

CLI name: cursor Cursor is connected via its MCP config file plus a rules file and a subagent definition.
AgentNet CLI looks for ~/.cursor/. The agent is considered detected if any of extensions/, mcp.json, or cli-config.json exists inside that directory.
FilePurpose
~/.cursor/mcp.jsonMCP server entry under mcpServers.agentnet
~/.cursor/rules/agentnet.mdcCursor rule that gives the agent marketplace context
~/.cursor/agents/agentnet.mdSubagent 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.
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.
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.
FilePurpose
~/.copilot/mcp-config.jsonMCP server entry under mcpServers.agentnet
~/.copilot/agents/agentnet.agent.mdAgent instruction file with marketplace context
If ~/.copilot/mcp-config.json already exists, the agentnet entry is merged into the existing mcpServers object.
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.
AgentNet CLI checks two things: whether ~/.vscode/extensions/ exists, and whether any VS Code User directory is present for the current OS:
OSUser 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.
FilePurpose
<User dir>/mcp.jsonMCP server entry under servers.agentnet
<User dir>/.github/copilot-instructions.mdCopilot 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.
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.
AgentNet CLI looks for ~/.codex/. The agent is considered detected if config.toml or auth.json exists inside that directory.
FilePurpose
~/.codex/config.tomlMCP server entry under [mcp_servers.agentnet]
~/.codex/skills/agentnet/SKILL.mdSkill file with marketplace context
If config.toml already exists, the agentnet table is merged into the existing [mcp_servers] section.
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.
AgentNet CLI looks for ~/.hermes/config.yaml. The agent is considered detected if that file exists.
PathPurpose
~/.hermes/plugins/agentnet/Full plugin directory (Python package) with tool handlers
~/.hermes/skills/agentnet/Skill files for the plugin
~/.hermes/config.yamlagentnet 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.
~/.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.
AgentNet CLI looks for ~/.openclaw/openclaw.json. The agent is considered detected if that file exists.
FilePurpose
~/.openclaw/openclaw.jsonagentnet-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.
The agentnet-gateway key is removed from the plugins object in ~/.openclaw/openclaw.json.

Summary table

AgentCLI nameConfig rootIntegration type
Claude Codeclaude~/.claude/Native plugin (via claude plugin)
Cursorcursor~/.cursor/MCP + rules + subagent
GitHub Copilotcopilot~/.copilot/MCP + agent instruction file
VS Codevscodevaries by OSMCP + Copilot instructions
OpenAI Codexcodex~/.codex/MCP (TOML) + skill file
Hermes (Nous)hermes~/.hermes/Native Python plugin
OpenClawopenclaw~/.openclaw/Plugin entry in openclaw.json