Monetize your MCP Server in minutes.
AgentPayClient
with your Service Token.consume()
method to charge for tool usage.st-apay-7sj3...-98dk...
agentpay-sdk
and its dependencies.
agentpay-sdk
package currently on PyPI is a placeholder to reserve the name during Early Access. To get the actual SDK now, join the Waitlist.AgentPayClient
. This client object is your main interface for interacting with AgentPay.
AgentPayClient
in the AgentPayClient Initialization Guide or the AgentPayClient SDK Reference.
consume()
method to record the usage and charge them using their User API Key.
X-AGENTPAY-API-KEY
).consume()
call into a tool function, following the best practice of processing your tool’s core logic before attempting to charge:
consume()
method, including all parameters, response objects, and advanced error handling, please see the detailed guide on Charging for Usage and the Consume Method SDK Reference.