Skip to content
Updated Jul 23, 2026

Connect An Agent

Connect your AI agents to AgentPMT to enable tool and workflow execution. AgentPMT supports two primary connection methods: Model Context Protocol (MCP) for modern AI platforms, and REST API for custom integrations.

Choose a Connection Method

MethodBest forCredentialNotes
Hosted MCPBrowser-hosted clients and remote MCP clientsAgent Group Bearer tokenUse https://api.agentpmt.com/mcp when the client supports streamable HTTP MCP.
Local STDIOClaude Code, Codex, Cursor, Zed, and local agent runtimesAgent Group Bearer token stored by the routerUse the local router when the client needs STDIO or a local command.
Bearer RESTServer-side integrations that call platform endpoints directlyAgent Group Bearer tokenUse Programmatic Access for endpoint contracts.
Wallet-authenticated autonomous APIAutonomous agents that buy credits, invoke tools, run workflows, or complete jobsAgentAddress wallet signature and optional x402 paymentUse Autonomous Agents for the generated endpoint catalog.

MCP Integration

The Model Context Protocol (MCP) provides a standardized way for AI agents to discover and use tools from AgentPMT. This is the recommended method for connecting AI agents like Claude, ChatGPT, and other MCP-compatible platforms.

30 Second Setup

STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections.

bash
npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted Streamable HTTPS

MCP endpoint for browser-based apps like ChatGPT, Claude, Grok, or any time you want a streamable connection with no local install.

text
https://api.agentpmt.com/mcp

Config Example

Use the hosted endpoint directly in clients that support remote MCP. Store your Bearer token in the client config or secret field.

Reveal your Agent Group's Bearer token from Control Center, then paste it into your client's config.
json
{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

For platform-specific setup and the full connection guide, see Connection.

Verify the Connection

  1. List available tools

    Ask the client to list AgentPMT tools. The list should match the tools enabled on the selected Agent Group.

  2. Run a harmless tool or workflow

    Use a low-cost action with known inputs so you can confirm authentication, authorization, and result formatting.

  3. Check Agent Activity

    Open Control Center and confirm the request appears with the expected Agent Group, tool or workflow, status, and safe metadata.

Troubleshooting

SymptomCheck
Authorization failsConfirm the Bearer token or wallet signature belongs to the intended Agent Group or AgentAddress.
Tool is unavailableEnable the tool or workflow on the Agent Group, then list tools again.
Credential is missingConnect the required credential to the Agent Group before retrying.
Spending cap blocks the callRaise the cap intentionally or choose a lower-cost path such as a reusable workflow.

RestAPI Integration

For custom integrations and advanced use cases, AgentPMT provides a REST API that gives you programmatic control over tool execution, workflow management, and agent interactions.

API Overview

The REST API allows you to:

  • Execute tools directly via HTTP requests
  • Manage workflows and their execution
  • Handle authentication programmatically
  • Monitor usage and billing
  • Integrate with existing systems using standard web protocols

API Reference

For complete API documentation, see the Programmatic Access reference.