Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

SDKs

Official AMP SDKs for integrating with the protocol.


TypeScript

The primary SDK, with three packages:

PackageDescription
@valeo/amp-coreShared types, PDA derivation, constants, metering proof utilities
@valeo/amp-serverExpress middleware, MCP server, metering engine, auto-settlement
@valeo/amp-clientAgent SDK, amp.fetch(), auto-discovery, channel lifecycle

TypeScript SDK reference →

Install

# Server
npm install @valeo/amp-server
 
# Client
npm install @valeo/amp-client
 
# Core (included as dependency of both)
npm install @valeo/amp-core

Quick examples

Server

import { AMP } from "@valeo/amp-server"
app.use(AMP.middleware({ rate: "0.001/call" }))

Client

import { AMPClient } from "@valeo/amp-client"
const amp = new AMPClient({ wallet, connection, budget: 10.00, token: "USDC" })
const res = await amp.fetch("https://api.example.com/v1/data")

Other languages

Python and Rust SDKs are planned. In the meantime, any language that can interact with Solana and sign Ed25519 can implement the AMP protocol using the specification.