Use any OpenAI-compatible library — point at MESH by changing the base URL.
MESH speaks the OpenAI Chat Completions, Embeddings, and Models APIs verbatim. Any OpenAI-compatible
client (the official OpenAI SDK, LangChain, LlamaIndex, Vercel AI SDK, etc.) works by changing two
settings:
Receipt + cost metadata still come back on the response headers (x-mesh-receipt-id,
x-mesh-total-usd, x-mesh-margin-usd, x-mesh-upstream-cost-usd) regardless of which client you
use.
The official OpenAI SDKs don’t know about MESH-specific surfaces like payments, account balance, or
signed attestation. If you want typed helpers for those, use: