Skip to main content

Overview

LangGraph Platform is LangChain’s fully managed hosting service for LangGraph applications. Deploy your agent to production with a single command.
Zero Infrastructure: No servers, no containers, no configuration. Just deploy and go.

Why LangGraph Platform?

Serverless

No infrastructure management. Auto-scaling from zero to thousands of requests.

Integrated Observability

Built-in LangSmith tracing. Every request automatically traced.

One-Command Deploy

langgraph deploy - that’s it. Deployment in seconds.

Versioning

Automatic versioning and instant rollbacks.

Secrets Management

Secure secrets via LangSmith. No .env files in production.

Global CDN

Edge deployment for low latency worldwide.

Quick Start

1. Install CLI

2. Login to LangChain

This will prompt for your LangSmith API key (get it from smith.langchain.com/settings).

3. Deploy

That’s it! Your agent is now live on LangGraph Platform.
Deployment complete in under 2 minutes!

Configuration

langgraph.json

The langgraph.json file configures your deployment:
langgraph.json
array
List of dependency sources. ["."] means current directory.
object
Map of graph names to module paths. Format: "name": "path/to/file.py:variable"
object
Environment variables. Use LangSmith secrets for sensitive values.
string
Python version: 3.10, 3.11, or 3.12

Setting Secrets

Store API keys securely in LangSmith:
Never hardcode API keys in code or commit them to git. Always use LangSmith secrets.

Deployment Commands

Deploy

Test Locally First

Invoke Deployed Graph

Manage Deployments

Staging

langgraph deploy my-agent-staging —tag staging

Production

langgraph deploy my-agent-prod —tag production

Staging uses different LangSmith project

LANGSMITH_PROJECT=my-agent-staging langgraph deploy my-agent-staging

Production

LANGSMITH_PROJECT=my-agent-prod langgraph deploy my-agent-prod
See complete workflow in .github/workflows/deploy-langgraph-platform.yml.

GitLab CI

.gitlab-ci.yml

Best Practices

Always test with langgraph dev before deploying:
Deploy to staging before production:
Tag deployments with versions:
Watch logs after deployment:
Check LangSmith for errors and latency spikes.
Never put API keys in langgraph.json:

Troubleshooting

Symptom: Error: Could not find graph 'agent'Solution:
  • Verify langgraph.json has correct graph path
  • Ensure file exists at ./langgraph/agent.py
  • Check variable name is graph (not agent_graph)
Symptom: 401 UnauthorizedSolution:
Symptom: ModuleNotFoundError in logsSolution:
  • Add missing package to langgraph/requirements.txt
  • Redeploy: langgraph deploy
Symptom: Agent fails with missing API keySolution:

Comparison with Other Platforms

Pricing

LangGraph Platform uses pay-per-use pricing:
  • Free Tier: 1M requests/month
  • Compute: Charged per execution time
  • No Minimum: Pay only for what you use
Cost-Effective: For most applications, LangGraph Platform is more cost-effective than running dedicated servers.

Next Steps

Platform Quickstart

Step-by-step deployment guide

Configuration

Advanced configuration options

Secrets Management

Managing secrets and environment variables

CI/CD Setup

Automate deployments

Ready to deploy? Run langgraph login and langgraph deploy to get your agent live in minutes!