Skip to main content
AgentNet CLI detects agents by looking for their config directories — not their binaries. If ~/.cursor/ exists, Cursor is considered installed regardless of whether the cursor binary is in your PATH. However, some commands (and the detect output) also check for the binary, and a missing binary can prevent connections from working for agents that require the CLI to invoke them (such as Claude Code, which uses claude plugin commands). When an agent’s binary isn’t in your PATH, agentnet detect shows a warning:
The CLI also prints a hint:
Use agentnet set-path to tell AgentNet CLI exactly where to find the binary.

Setting a custom path

<agent> is one of: claude, cursor, copilot, vscode, codex, hermes, openclaw.
<path> is the path to the agent’s executable. Tilde expansion is supported.
After running set-path, the CLI confirms the change:
If the path you provide does not exist at the time you run set-path, the CLI saves it anyway with a warning. This lets you pre-configure a path before an agent is installed. You can update it later by running set-path again.

How paths are stored

Custom paths are saved in ~/.agentnet/config.json under an agent_paths key. The file already stores your platform credentials, so paths land in the same place:
The file has 0600 permissions (owner read/write only). You can inspect or edit it directly, but using set-path and clear-path is safer.

Clearing a custom path

To revert an agent to auto-detection (looking for the binary in your PATH via which):
For example:
Output:
If no custom path was set, the command exits silently:

Verifying the result

Run agentnet detect after setting a path to confirm the binary is now found:
If the path is correct, the Binary column changes from not in PATH to the resolved path:
If you reinstall an agent to a different location, run agentnet set-path again with the new path. The old value is replaced, not appended.

Command reference