Chat

From chu2bard/pinion-os · View interactive version

Chat is an AI agent skill from the GitHub repository chu2bard/pinion-os. Chat with the Pinion AI agent. Send a messages array, get an AI response with web search. Costs $0.01 USDC via x402.

How to use this skill

Skill file

AI Agent Chat

Send messages to the Pinion AI agent and get a response. The agent knows about the Pinion protocol, x402, OpenClaw, ERC-8004 and on-chain topics. It has web search for current information.

Endpoint

POST https://pinionos.com/skill/chat

Price: $0.01 USDC per call (x402 on Base)

Request Body

{
  "messages": [
    { "role": "user", "content": "what is x402?" }
  ]
}

| Field | Type | Required | Description |

|----------|-------|----------|--------------------------------------------------|

| messages | array | yes | Array of { role, content } message objects |

Roles: user or assistant. Send conversation history for multi-turn chat.

Example Request

curl -X POST https://pinionos.com/skill/chat \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"what is x402?"}]}'

The first request returns HTTP 402 with payment requirements. Sign a USDC TransferWithAuthorization (EIP-3009) and retry with the X-PAYMENT header.

Example Response

{
  "response": "x402 is a protocol that brings the HTTP 402 Payment Required status code to life..."
}

When to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.