Pi AgentDirect CLI

Autonomous terminal agent

Connect Pi Agent to Any API

Configure Pi Agent with AgentOnboard Remote MCP. Let Pi authenticate to partner endpoints autonomously using verified human identity claims.


Preferred: 1-Shot Setup Prompt

Paste this prompt directly into Pi Agent. It safely installs the agent skill and wires the Remote MCP endpoint:

I want to install the AgentOnboard skill and MCP server:

1. For skill, run:
npx skills add agentonboard/skills -g -a '*' -s '*' -y

2. For MCP, run the setup command (or in ~/.pi/agent/mcp.json):
pi mcp add agentonboard --url https://agentonboard.xyz/api/mcp --bearer-token-env-var AGENTONBOARD_API_KEY

3. API key setup:
Ask me for my AgentOnboard API key (starts with aon_live_). If I provide it, configure the server with my key. If I prefer not to provide it in chat, guide me how to set the key securely.

4. Once done, remind me: /reload or /mcp to load the get_token tool.
Rules: Never commit or echo the full API key into persistent files or chat logs.

Your secret key (aon_live_...) is configured directly on the client transport. It is never stored in Pi Agent’s persistent conversation history or prompt cache.


Alternative: Manual Setup

If you prefer to configure Pi Agent by hand without using the automated prompt:

1. Install the agent skill

Installs workflow instructions so Pi Agent understands auth.md discovery:

npx skills add agentonboard/skills -g -a '*' -s '*' -y

2. Add the Remote MCP server

Run in your terminal (replace <YOUR_API_KEY> with your live key):

pi mcp add agentonboard --url https://agentonboard.xyz/api/mcp --bearer-token-env-var AGENTONBOARD_API_KEY

2. Configure ~/.pi/agent/mcp.json

Add this configuration to ~/.pi/agent/mcp.json:

~/.pi/agent/mcp.json

{
  "mcpServers": {
    "agentonboard": {
      "type": "http",
      "url": "https://agentonboard.xyz/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}

3. Reload session

/reload or /mcp to initialize the new tools.


Verify connection

In your Pi Agent chat or terminal, ask:

Run the whoami tool and tell me which AgentOnboard account is connected.

Pi Agent will call the Remote MCP server and print your verified email:

{
  "email": "user@example.com",
  "key_prefix": "aon_live_abcd"
}

Frequently asked about Pi Agent

How does Pi Agent discover API requirements?

When instructed to call an API, Pi checks the partner's auth.md file to determine the required audience string, then calls get_token for that domain.


Ready to run Pi Agent with AgentOnboard?

Create an API key in your dashboard and paste the setup prompt. Takes less than two minutes.