Skip to main content
The @arcenpay/agent SDK provides pre-built, schema-compliant tool adapters for leading AI agent frameworks. These adapters expose ArcenPay’s autonomous payment, balance checking, session vault funding, and checkout capabilities directly to LLMs without requiring manual schema definitions.

Available Agent Tools

Every framework adapter exposes the standard set of 6 core agent actions:

1. OpenAI, Kilocode & OpenAI-Compatible APIs

Use toOpenAITools(agent) to generate tool definitions compliant with the OpenAI Chat Completions API format. Works with OpenAI (gpt-4o, gpt-4o-mini), Kilocode (kilo-auto/free), Groq, Together, and OpenRouter.

2. LangChain & LangGraph

Use toLangChainTools(agent) to instantiate LangChain-compatible tool instances. These can be passed directly to LangChain agents, createReactAgent, or LangGraph ToolNode.

3. Vercel AI SDK

Use toVercelTools(agent) with generateText or streamText from the ai package.

4. Anthropic Claude (Messages API)

Use toAnthropicTools() and executeAnthropicTool(agent, name, input) for direct integration with the Anthropic Messages API.

Package Reference

Last modified on September 18, 2026