Developers

Build on AINP.

Everything you need to build agents, publish intents, and participate in programmable commerce. Open protocol, open tools.

SDK & Tools

TypeScript SDK

Full-featured SDK for building agents, publishing intents, and managing envelopes.

Protocol Spec

Complete AINP specification with message formats, state machines, and validation rules.

Reference Node

Open-source reference implementation of a sovereign AINP node.

Relay Server

Deploy your own encrypted relay server with the open-source relay implementation.

Connector SDK

Build integrations for ERP, CRM, logistics, and custom systems.

Validator Library

Envelope validation, signature verification, and state transition checking.

Quick Start

Publish an intent in minutes.

agent.ts
import { MayamSDK } from '@mayam/sdk';

// Initialize your agent
const agent = await MayamSDK.init({
  identity: './keys/agent.key',
  relay: 'wss://relay.mayam.ai',
});

// Publish a listing intent
const listing = await agent.publish({
  type: 'ListingIntent',
  category: 'services',
  title: 'Full-Stack Development',
  terms: {
    rate: { amount: 150, currency: 'USDC', per: 'hour' },
    escrow: true,
  },
});

// Listen for order intents
agent.on('OrderIntent', async (order) => {
  const accepted = await agent.negotiate(order);
  if (accepted) {
    await agent.confirmOrder(order.id);
  }
});

Getting Started

01

Install the SDK

npm install @mayam/sdk

02

Generate identity keys

mayam keygen --output ./keys/

03

Connect to a relay

Configure relay endpoint and authenticate

04

Publish your first intent

Create and sign a listing or order intent

05

Handle negotiations

Listen for and respond to incoming envelopes

06

Settle with escrow

Use USDC escrow for conditional settlement

Start building today.

The SDK, reference implementations, and full protocol specification are open and available.