PuraRoute AI Agent

Bring proxy selection, resource checks, connection setup, and troubleshooting into Codex or Claude Code with the PuraRoute Agent Skill and local MCP server.

Documentation

Install this instance's npm package, add its Skill and MCP server to Codex or Claude Code, and verify access with a read-only task.

The Agent Skill guides proxy selection, connection setup, and troubleshooting. The local stdio MCP server provides account tools. Both are included in this instance's npm package, but each must be added to your AI client.

Before you start

You need Node.js 22.13.0 or newer, npm, Codex or Claude Code, and an account API Key for this instance. Obtain the approved HTTPS API origin from your trusted account information or administrator. The origin contains only the scheme and hostname; do not add /gin or an endpoint path. An account API Key is different from a proxy username and password.

1. Install the package

Run these commands on the computer where you use your AI client:

npm install --global @agent-proxy-kit/puraroute-mcp-server
puraroute-proxy-mcp --setup

View npm package

Keep the --setup output. It gives the actual MCP launcher path, the complete Skill folder, the destinations for Codex and Claude Code, and client-specific registration examples. Use those paths; npm installation alone does not register either component.

2. Add the components to your client

ClientAgent SkillLocal MCP server
CodexCopy the entire Skill folder to the Codex user Skill target printed by --setup.Add the printed config.toml block to your user configuration.
Claude CodeCopy the entire Skill folder to the Claude Code user Skill target printed by --setup.Run the printed claude mcp add --scope user --transport stdio command.

The Skill target must directly contain SKILL.md and references/. Inspect an existing target or MCP registration before replacing it. Restart the client after setup. This package runs a local stdio MCP server; there is no hosted MCP URL to enter.

3. Provide account access locally

Make these environment variables available to the process that starts your AI client and its MCP child process:

VariableValue
PROXY_AGENT_API_ORIGINThe approved HTTPS origin of this instance, without a path.
PROXY_AGENT_API_KEYAn account API Key belonging to the same instance.

Use a trusted local secret manager or enter the values in the terminal session that launches your client. Do not paste the Key into a web page, project file, AI chat, or support screenshot. A desktop app launched from an icon may not inherit terminal variables; check its environment if MCP cannot connect.

4. Verify with a read-only task

Restart Codex or Claude Code. Check that the Skill is available, run codex mcp list or claude mcp list, and inspect /mcp inside a new session. The installed package's bundle-manifest.json is the source of truth for the available tools.

Use the installed proxy Agent Skill and connected MCP for this instance. Call read-only tools only. First list my existing proxy resources and their status. After I choose a resource, summarize its actual protocol, connection host, port, and proxy authentication fields. Mask the proxy password. Mark missing fields as incomplete; do not guess a gateway or change my account.

The selected resource's response determines the connection host and port. An exit IP is not necessarily a gateway, and the account API Key is not a proxy password.

If setup fails

  • Skill or MCP is missing: Run --setup again, compare the printed paths with your installed Skill folder and MCP registration, then restart the client. Copy the complete Skill folder, including references/.
  • The API path contains /gin twice: Set PROXY_AGENT_API_ORIGIN to the approved HTTPS origin only. The MCP adds the reviewed business API path itself.
  • The agent found credentials but no host or port: Recheck the selected resource's read-only response. Do not derive the gateway from an exit IP or credentials; consult the product integration guide or support if a required field is absent.

See the AI Agent overview for supported use cases and this instance's package.