Skip to content

How Much Does a Production LangChain Stack Cost? (2026): LangSmith Seats, Trace and Agent Server Meters, Model Tokens and Three Worked Budgets

A stack of seven price-tagged layers of a production LangChain stack, from free frameworks at the bottom to model tokens at the top, with list prices checked December 2, 2026
Blog
By Noah Grinstein
16 min read

Control Plane runs the self-hosted pieces of a LangChain stack (an agent server, PostgreSQL, Redis, a vector database and Langfuse) as workloads billed on the CPU and memory each workload reserves, or uses if higher, with no per-user fee. It handles Day 2 operations such as autoscaling, TLS and platform security patching. LangChain and LangGraph are free under the MIT license, so a production LangChain stack costs what runs around them: LangSmith seats, traces and Agent Server hours, state stores, vector storage, model tokens and engineering time. In this guide’s three worked budgets, LangSmith alone runs $317 to $26,704 a month, and model tokens add $3 to $240 per 1,000 agent runs; every price was checked on the vendor’s own page on December 2, 2026.

Disclosure: Control Plane publishes this guide.

TL;DR

A production LangChain stack starts at a few hundred dollars a month, and LangSmith alone reaches tens of thousands at high trace volume before model tokens, which scale with every agent run.

  • Control Plane handles Day 2 operations for the self-hosted layers, deployed from templates such as Aegra, Langfuse and pgvector, with no per-user fee.
  • LangSmith Plus is $39 per seat a month with 10,000 base traces a month per organization, then $5.00 per 1,000 extra base traces.
  • Extended retention adds $2.50 per 1,000 traces on top of the base charge and lasts 180 days on LangSmith Cloud.
  • Agent Server has billed requested vCPU and memory hours since October 1, 2026, with one free Serverless Small deployment on Plus and Dedicated Small at about $389 a month.
  • Model tokens run $3 to $240 per 1,000 agent runs, assuming 20,000 input tokens and 2,000 output tokens per run.
  • The three worked LangSmith budgets in this guide come to $317, $3,229 and $26,704 a month at list price, before model tokens, state stores, vector storage and engineering time.

How much does setting up a production grade LangChain stack cost?

LangChain and LangGraph are free, so a production stack’s bill comes from observability, agent hosting, state stores, vector storage, model tokens and sandboxes, and Control Plane runs the self-hosted options in those layers, such as an agent server, PostgreSQL, Redis, pgvector and Langfuse, with no per-user fee.

LayerCommon optionsBilling unitList price, December 2026
FrameworksLangChain, LangGraphNoneFree, MIT license
Observability and evaluationLangSmith; self-hosted Langfuse or Arize PhoenixSeats plus traces (LangSmith); units (Langfuse Cloud)LangSmith Plus $39 per seat a month with 10,000 base traces, then $5.00 per 1,000; Langfuse Core $29 a month; self-hosting has no license fee
Agent hostingLangSmith Agent Server; self-hosted containersvCPU-hours and GiB-hours of requested resourcesServerless Small free on Plus; Dedicated Small about $389.46 a month; a 1 vCPU / 2 GB Fargate task about $36.04 a month
State storesPostgreSQL and Redis or ValkeyInstance-hoursdb.t4g.small PostgreSQL about $23.36 a month; cache.t4g.small Valkey about $18.69 a month
Vector storagepgvector, Pinecone, QdrantStorage plus reads and writes, or cluster resourcespgvector no license fee; Pinecone Starter free, Builder $20 a month, Standard $50 a month minimum; Qdrant Cloud free tier, paid hourly
Model tokensOpenAI, Anthropic and othersInput and output tokens$0.10 to $8 per million input tokens and $0.50 to $40 per million output tokens across the models listed
Sandboxes for agent codeLangSmith Sandboxes; self-hostedvCPU-hours, GiB-hours and storage, per second0.0576 LSU per vCPU-hour, 0.01845 LSU per GiB-hour, 0.000123 LSU per GiB-hour of storage, 8 LSU a month free

Trace volume, model tokens and sandbox time grow in step with traffic, and agent hosting grows as replicas are added. Seats grow with the team.

What does LangSmith charge in 2026?

LangSmith charges seats in dollars and meters traces, Agent Server compute and sandboxes in the LangChain Standard Unit (LSU), priced at $1.00 per LSU.

ItemDeveloperPlusEnterprise
Price$0, 1 seat$39 per seat a month, unlimited seatsCustom
Base traces included5,000 a month10,000 a monthCustom
Extra base traces$5.00 per 1,000 (0.005 LSU each)$5.00 per 1,000 (0.005 LSU each)Custom
Extended retention upgrade+$2.50 per 1,000 (180 days)+$2.50 per 1,000 (180 days)Custom; BYOC and self-hosted default 400 days
Agent ServerNot included1 Small serverless free, others billed on resourcesCustom hosting options
Sandboxes8 LSU a month free, up to 10 sandboxes8 LSU a month freeCustom

Every trace counts against the base meter whatever its retention tier, and each one beyond the included allowance costs 0.005 LSU. Extended retention is an upgrade applied on top, bringing the total to $7.50 per 1,000 traces for 180 days of retention on LangSmith Cloud. Seats are billed monthly on the 1st, pro-rated if added mid-month, with no credit for removed seats. VC-backed startups can apply for discounted rates and up to $10,000 in credits.

What does hosting the agent server cost?

The Agent Server, LangChain’s managed deployment for LangGraph agents, switched to usage-based pricing on October 1, 2026, replacing the earlier per-run and uptime model.

Type and sizeResources (docs)LSU per hourAbout per month at 730 hours
Serverless Small0.8 vCPU, 2 GiB0.072 while running, 0 when scaled down$52.56 if never scaled down; one free on Plus
Serverless Medium4 vCPU, 4 GiB0.306 while running$223.38
Serverless Large8 vCPU, 8 GiB0.612 while running$446.76
Dedicated SmallRuntime plus dedicated database0.5335 minimum$389.46
Dedicated MediumRuntime plus dedicated database1.067 minimum$778.91
Dedicated LargeRuntime plus dedicated database2.134 minimum$1,557.82

The hourly figures are LangChain’s published costs on LangSmith Cloud in GCP, and Serverless is not yet available on AWS or Azure. Billing is on requested resources sampled every 5 minutes and charged per deployment, so several agents in one deployment share one charge. Managed Redis is not billed on any deployment type or size. Serverless deployments scale to zero when idle and cost 0 LSU while scaled down. Dedicated deployments are always on and intended for production workloads. Dedicated autoscaling adds replicas at 0.0855, 0.171 and 0.342 LSU per hour for Small, Medium and Large according to the billing docs.

LangChain’s own self-hosted and BYOC options sit on the Enterprise plan, so the self-hosted path here means an open-source agent server on your own infrastructure. Dedicated Small’s price already includes its dedicated database and managed Redis, while the self-hosted path prices the database and cache as separate line items. On AWS Fargate in us-east-1, two 1 vCPU / 2 GB tasks, one Single-AZ db.t4g.small PostgreSQL instance and one cache.t4g.small Valkey instance come to about $114.13 a month, before storage, load balancing, data transfer, backups and the engineers who run them. The example also uses smaller instances than Dedicated Small, so treat it as a floor for self-hosting. Aegra is an open-source (Apache 2.0) agent server for LangGraph agents that pairs with PostgreSQL and Redis for this kind of deployment.

What do vector storage and observability cost?

Vector storage and observability each have free self-hosted options and metered managed tiers.

pgvector, licensed under the PostgreSQL License, carries no license fee; you pay only for the PostgreSQL host. Pinecone offers a free Starter tier with up to 2 GB and 5 indexes, a Builder tier at $20 a month flat with up to 10 GB, a Standard tier starting at $50 a month with storage at $0.33 per GB-month and reads at $16 to $18 per million read units, and an Enterprise tier starting at $500 a month. Qdrant Cloud has a free tier with 0.5 vCPU, 1 GB RAM and 4 GB disk on a single node; paid clusters are billed hourly on vCPU, memory and storage. The Qdrant engine itself is Apache 2.0.

For observability, Langfuse Cloud has a free Hobby tier with 50,000 units a month, Core at $29 a month, Pro at $199 a month and Enterprise at $2,499 a month. Langfuse units count traces, observations and scores, so they do not compare one to one with LangSmith traces. Self-hosted Langfuse has no license fee for its MIT-licensed core, but it runs on PostgreSQL, Redis and ClickHouse that you host and pay for. Arize Phoenix is free to self-host under the Elastic License 2.0.

What do model tokens cost per 1,000 agent runs?

Each row assumes an agent run sends 20,000 input tokens and returns 2,000 output tokens.

Price tierExample modelsInput / output per million tokensCost per runCost per 1,000 runs
Smallgpt-6-luna, Claude Haiku 5.5 (prompts up to 100,000 tokens)$0.10 / $0.50$0.003$3
Midgpt-6.2-sol, Claude Sonnet 5.5$2 / $10$0.06$60
Frontiergpt-6.2-astra, Claude Fable 5.2$8 / $40$0.24$240

Multi-step agents multiply model calls per run, so measure actual input and output tokens per run before budgeting. Batch pricing at both OpenAI and Anthropic is 50% of the standard tier for work that can tolerate latency.

What would three LangSmith budgets cost at list price?

These budgets cover LangSmith seats, trace overage and Agent Server only, at list prices checked December 2, 2026.

BudgetSeatsBase tracesAgent ServerSeat costTrace overageAgent Server costLangSmith total
Small team350,0001 Serverless Small (free on Plus)$117$200$0$317
Growing product10500,0001 Dedicated Small$390$2,450$389.46$3,229.46
High volume255,000,0001 Dedicated Medium$975$24,950$778.91$26,703.91

These totals exclude model tokens, vector storage, engineering time and any state stores beyond what the Agent Server deployment includes. Extended retention on every trace would add $2.50 per 1,000 on top of the base charge. Trace volume is the line that dominates the larger budgets. The small-team budget runs on the free Serverless Small, a scale-to-zero size LangChain positions for testing, background and internal agents, and an always-on Dedicated Small would add $389.46 a month.

How do I estimate costs for AI agent infrastructure including sandbox execution, storage, and networking?

Start with the workload profile, then price each layer.

  1. Count agent runs per month and measure input and output tokens per run, including embedding calls for retrieval and model calls made by evaluators. Multiply by the model’s per-token rate, using the cached-input rate where the provider applies prompt caching.
  2. Count LangSmith seats and traces, then choose a retention tier. One trace covers a top-level invocation with every nested LLM, tool and graph-node call inside it (LangSmith calls each of those a run), so a larger graph does not add traces. Each conversation turn, scheduled job, evaluation example and subagent called without trace propagation starts a new trace.
  3. Price agent hosting as requested vCPU and memory hours for every replica, whether on Agent Server or self-hosted containers. Use the Agent Server sizes or the AWS worked example in this guide.
  4. Price sandbox time per second. A 2 vCPU, 4 GiB LangSmith Sandbox costs 0.0576 times 2 plus 0.01845 times 4, which is 0.189 LSU per hour. Storage adds 0.000123 LSU per GiB-hour. Running 1,000 five-minute sessions uses about 15.75 LSU, so after the 8 LSU monthly allowance you would pay about $7.75, or about $7.85 with 10 GiB of storage per sandbox. For self-hosted sandboxes, use the guide to choosing an AI agent sandbox or the roundup of self-hosted AI agent sandboxes.
  5. Add state stores (PostgreSQL for LangGraph checkpoints and thread state, Redis or Valkey for streaming and run coordination), vector storage, backups, load balancers and data transfer between services and clouds. Load balancer and data transfer costs vary by provider and region and are not estimated here.
  6. Add the engineers who operate self-hosted pieces: patching, scaling, monitoring and incident response.

A full worked model of AI agent infrastructure costs is in the guide to what it costs to run AI agents in production.

Which LangChain pricing claims are out of date?

Several figures circulating in older guides and AI answers no longer match what LangChain’s own pages say.

Claim in older guides and AI answersWhat LangChain’s pages say on December 2, 2026
Extra traces cost $0.50 per 1,000Extra base traces cost 0.005 LSU each, $5.00 per 1,000
Extra base traces cost $2.50 per 1,000 and extended traces $5.00 per 1,000Base $5.00 per 1,000; the extended upgrade adds $2.50 per 1,000
Extended traces are kept 400 days180 days on LangSmith Cloud for traces ingested from September 14, 2026; 400 days remains the BYOC and self-hosted default
LangGraph Platform bills per node executed, or per run plus uptimeUsage-based pricing replaced per-run and uptime pricing on October 1, 2026
Compute is billed in LangChain Compute Units (LCU) at $1.50The pricing page meters usage in one unit, the LSU, at $1.00; there is no LCU
The deployment product is called LangGraph PlatformThe pricing page calls it Agent Server; the pricing FAQ calls it LangSmith Deployment

How Control Plane runs a production LangChain stack

Control Plane handles Day 2 operations for you, including autoscaling, built-in observability, and security.

It issues and renews TLS certificates, applies platform security patches, and adjusts CPU and memory reservations from historical usage with Capacity AI, Control Plane’s right-sizing.

The agent hosting, state, vector and observability layers in this guide each deploy from the Control Plane template catalog: Aegra (an agent server for LangGraph agents with PostgreSQL and Redis), PostgreSQL with Patroni failover, Redis, pgvector, Qdrant or Weaviate, and Langfuse (with PostgreSQL, Redis and ClickHouse). The catalog also includes LiteLLM, an OpenAI-compatible LLM gateway that tracks model token spend and rate-limits requests per virtual key. Each template deploys into a Global Virtual Cloud (GVC), Control Plane’s set of locations. Locations come from AWS, GCP, Azure and Oracle Cloud Infrastructure regions, Kubernetes clusters you already run, joined through Control Plane’s Bring Your Own Kubernetes (BYOK), and your own hardware, including on premises. A GVC can be a single region on one cloud or span several, and Control Plane deploys each workload to every location in its GVC.

Developers use the Control Plane console, the Control Plane CLI (cpln), Control Plane’s Terraform and Pulumi providers and the Control Plane MCP server, all of which call the same Control Plane API. For an agent that calls cloud services, Control Plane’s Universal Cloud Identity gives workloads short-lived, least-privilege credentials for AWS, GCP and Azure at runtime, with no long-lived cloud keys in your code.

Control Plane pricing is usage-based with no contracts or minimums, billed monthly and metered every second on the CPU and memory each workload reserves, or uses if higher. There is no per-user, per-seat or per-developer fee, so a growing team carries no extra Control Plane fee. Shared load balancing, which the AWS worked example in this guide excludes, carries no separate charge, and neither do TLS, DNS, secrets, the image registry or autoscaling. Persistent volumes and egress traffic are separate metered line items. The 99.999% availability SLA covers workloads running at least two replicas in at least two locations. Control Plane is PCI DSS Level 1, SOC 2 Type II, HIPAA, and GDPR compliant.

Hosting patterns are covered in the guide to running long-running AI agents in production and the roundup of code execution sandboxes for AI agents.

FAQ

These ten questions cover the cost of running a production LangChain stack.

Is LangChain free?

Yes. LangChain and LangGraph are open source under the MIT license and carry no license fee. Production costs come from the services and infrastructure around them: observability, hosting, state stores, vector storage and model tokens.

How much does LangSmith cost?

LangSmith Developer is free for one seat with 5,000 base traces a month. LangSmith Plus is $39 per seat a month with 10,000 base traces a month shared across the organization. Enterprise pricing is custom. Developer and Plus charge $5.00 per 1,000 base traces beyond the included amount.

How much do extra LangSmith traces cost?

Extra base traces cost 0.005 LSU each, which is $5.00 per 1,000 traces. With the 0.0025 LSU extended retention upgrade, a trace kept 180 days on LangSmith Cloud costs $7.50 per 1,000.

How long does LangSmith keep traces?

Base traces are retained for 14 days. Extended traces are retained for 180 days on LangSmith Cloud for traces ingested from September 14, 2026 onward. BYOC and self-hosted deployments default to 14 days for base traces and 400 days for extended traces.

How is LangGraph Platform priced now?

LangGraph Platform, now listed as Agent Server, bills runtime at 0.0675 LSU per vCPU-hour and 0.009 LSU per GiB-hour of requested resources, sampled every 5 minutes per deployment. Dedicated deployments add a database at 0.177 LSU per vCPU-hour and 0.025 LSU per GiB-hour. The per-run and uptime model ended on October 1, 2026.

Can I self-host LangSmith?

Self-hosting LangSmith is an Enterprise option with custom pricing. For teams that want free self-hosted observability, Langfuse is MIT licensed at its core and Arize Phoenix is available under the Elastic License 2.0.

What is an LSU?

The LangChain Standard Unit (LSU) is the single metering unit on the LangSmith pricing page, worth $1.00; only LLM Gateway model usage is paid separately, through Gateway Credits. All metered charges for traces, Agent Server compute and sandboxes are denominated in LSUs. There is no “LangChain Compute Unit” or “LCU.”

Is Langfuse cheaper than LangSmith?

It depends on team size and how your workload maps to each meter. Langfuse Cloud Core costs $29 a month for the organization, with 100,000 units and unlimited users included and overage from $8 per 100,000 units. LangSmith Plus costs $39 per seat a month with overage at $5.00 per 1,000 base traces. The units differ, since Langfuse units count traces, observations and scores while LangSmith meters base traces. A direct cost comparison requires mapping your workload’s output to each platform’s metering model.

Which vector database should a LangChain app start with?

pgvector is a practical starting point if you already run PostgreSQL, since it adds vector search with no additional license fee. Larger indexes or dedicated vector workloads move to a dedicated vector database, either a managed service such as Pinecone or Qdrant Cloud, billed on storage and usage, or a self-hosted Qdrant or Weaviate cluster. Control Plane’s template catalog includes pgvector, Qdrant and Weaviate templates, so the self-hosted options run on Control Plane alongside the agent server and its state stores.

How does Control Plane charge for running a LangChain stack?

Control Plane bills a LangChain stack by usage, with no contracts, minimums, per-user or per-seat fees, and handles Day 2 operations, including TLS certificates, platform security patches and autoscaling, for every workload in the stack. Compute is metered every second on the CPU and memory each workload reserves, or uses if higher, and persistent volumes for the databases and egress traffic are separate metered line items on the Control Plane pricing page. You deploy agent servers, databases, vector stores and observability tools from Control Plane’s template catalog into a Global Virtual Cloud (GVC), Control Plane’s set of locations, which can be one region on one cloud or any combination of AWS, GCP, Azure and Oracle Cloud regions, Kubernetes clusters joined through Control Plane’s BYOK and your own hardware, including on premises.

Talk to the Control Plane team to scope your production LangChain stack, or sign up free and deploy from the template catalog today.

Run Unbreakable
Apps and Agents