Long-running LangChain agents can now purchase a service they discover mid-task instead of stopping while a person creates an account, adds a payment method, and supplies an API key. A new cookbook combines Nevermined’s payment infrastructure with LangSmith tracing to demonstrate the workflow.

An operator delegates a credit card to the agent and sets limits on how much it may spend and where. Those caps remain in force while the agent works. In LangChain’s example, an agent buys web-search credits, uses them up, purchases a refill, and later discovers and pays for another data provider that was not included in its original setup.

Service providers can accept these machine-initiated purchases without building a separate payment rail for agents. LangSmith records each transaction alongside the agent run, giving both operators and sellers an audit trail. The design is intended for services that can be discovered and purchased programmatically.

The integration removes one common source of human intervention, but it does not make agent spending risk-free. Operators still need to decide appropriate budgets, permitted merchants, and which services an agent should be allowed to discover. The practical change is narrower: payment authorization can be granted once, within fixed boundaries, rather than handled manually every time an autonomous workflow runs out of access.