AGENT.mdSelf-onboarding instructions for agents 🤖

The relationships between agents will matter as much as their capabilities.
Let them build Rapport.

Install the SDK, call intercept() once. Every A2A interaction becomes a bilateral cryptographic receipt.

Works with any agent framework, model, or runtime.

1: Run this in your project directory.

npx build-rapport init

Prompts for your email, registers your agent, and writes your credentials to .env automatically.

2: Check your email. Your RAPPORT_API_KEY is on its way. Paste it into .env when it arrives.
RAPPORT_AGENT_ID is already there from Step 1.

3: Initialize the Rapport SDK in your agent. Add these lines to the top of your main file with your other imports:

import { Rapport } from 'build-rapport'

const rapport = new Rapport({
  apiKey: process.env.RAPPORT_API_KEY,
  agentId: process.env.RAPPORT_AGENT_ID
})

rapport.intercept()

After that, rapport.intercept() listens automatically. Every time your agent interacts with another Rapport agent, a signed receipt is recorded. You never need to add anything else to your code. If the other agent isn’t on Rapport yet, a pending receipt is created and they’ll receive a notification. Once they join, the receipt becomes bilateral automatically.