---
title: "Agents That Pay | How Nevermined Empowers LangChain Agents to Buy and Sell Services"
description: "Nevermined lets operators delegate a credit card to a LangChain agent once, under a server-enforced spend policy covering total budget, time window, per-purchase cap and transaction count."
url: "https://swe.quest/articles/agents-that-pay-how-nevermined-empowers-langchain-agents-to-buy-and-sell-7cd324b4f0e9ab29"
canonical: "https://www.langchain.com/blog/agents-that-pay-how-nevermined-empowers-langchain-agents-to-buy-and-sell-services"
source: "LangChain"
published: "2026-09-03"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 11
tags: ["ai-agents","payments","observability"]
---

# Agents That Pay | How Nevermined Empowers LangChain Agents to Buy and Sell Services

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-09-03, 11 min read, Announcement. Original: [https://www.langchain.com/blog/agents-that-pay-how-nevermined-empowers-langchain-agents-to-buy-and-sell-services](https://www.langchain.com/blog/agents-that-pay-how-nevermined-empowers-langchain-agents-to-buy-and-sell-services)

## Summary

Nevermined lets operators delegate a credit card to a LangChain agent once, under a server-enforced spend policy covering total budget, time window, per-purchase cap and transaction count. The agent can then buy API credits mid-task, top up when a provider returns 402 NO\_MORE\_CREDITS, and purchase new services such as Exa search and Baselayer company data via x402 without a human in the loop. On the sell side, a \`@requires\_payment\` decorator gates a LangChain tool per call. Payment authorization propagates to Deep Agents subagents, and the verify and settlement steps appear as spans in LangSmith traces.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- LangChain agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Nevermined, LangChain, LangSmith, x402, Exa, Baselayer, Deep Agents, MCP

## Related posts

- [Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents](https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321.md): LangChain · 2026-10-08 · Medium · 6 min read · AI agents, Payments & fintech, Identity & auth, API design
  Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases.
- [How We Built LangChain’s Paid Media Agent](https://swe.quest/articles/how-we-built-langchain-s-paid-media-agent-c859415582fca684.md): LangChain · 2026-10-29 · Medium · 18 min read · AI agents, LLMs, System design, Ads
  LangChain's Paid Media Agent is a Slack-resident Deep Agent that merges ad-platform data with warehouse pipeline data, produces weekly per-platform PDF reports, answers follow-up questions, and proposes campaign changes for human approval.
- [Connections: managed credentials and per-caller identity for Managed Deep Agents](https://swe.quest/articles/connections-managed-credentials-and-per-caller-identity-for-managed-deep-agents-ce54a93aff5fdc9f.md): LangChain · 2026-09-14 · Medium · 6 min read · AI agents, Identity & auth, LLMs
  Connections in Managed Deep Agents (v0.7.0+) store named credentials in the LangSmith workspace instead of \`.env\` or the build, and tools fetch them at run time by slug via \`connections.get()\`.
- [Building Long-Running Agents with ScaleDown and Deep Agents](https://swe.quest/articles/building-long-running-agents-with-scaledown-and-deep-agents-76e2d7318050ea78.md): LangChain · 2026-10-13 · Medium · 9 min read · AI agents, LLMs, Python
  The langchain-scaledown integration offloads context-management decisions in long-running agents (summarizing history, compressing tool results, extracting fields, classifying state) from frontier LLMs to ScaleDown's small, task-specific constrained decoding models, which ScaleDown reports are far faster and cheaper on these narrow tasks.
- [Mubit + Neon AI Gateway: an agent that cuts its own frontier-model tokens by 73%](https://swe.quest/articles/mubit-neon-ai-gateway-an-agent-that-cuts-its-own-frontier-model-tokens-by-73-358da1147275d399.md): Neon · 2026-11-12 · Medium · 10 min read · AI agents, LLMs, Cost optimization, Inference & serving, PostgreSQL
  Mubit, a proxy placed in front of Neon AI Gateway, records an agent's model calls, groups recurring calls into tasks, and fine-tunes a small open-weight model once a task has at least 25 good replies.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
