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
3. Deploy
Deployment complete in under 2 minutes!
Configuration
langgraph.json
Thelanggraph.json file configures your deployment:
langgraph.json
List of dependency sources.
["."] means current directory.Map of graph names to module paths. Format:
"name": "path/to/file.py:variable"Environment variables. Use LangSmith secrets for sensitive values.
Python version:
3.10, 3.11, or 3.12Setting Secrets
Store API keys securely in LangSmith:Deployment Commands
Deploy
Test Locally First
Invoke Deployed Graph
Manage Deployments
Staging
langgraph deploy my-agent-staging —tag stagingProduction
langgraph deploy my-agent-prod —tag productionStaging uses different LangSmith project
LANGSMITH_PROJECT=my-agent-staging langgraph deploy my-agent-stagingProduction
LANGSMITH_PROJECT=my-agent-prod langgraph deploy my-agent-prod.github/workflows/deploy-langgraph-platform.yml.
GitLab CI
.gitlab-ci.yml
Best Practices
Test Locally First
Test Locally First
Always test with
langgraph dev before deploying:Use Staging Environment
Use Staging Environment
Deploy to staging before production:
Version Your Deployments
Version Your Deployments
Tag deployments with versions:
Monitor After Deploy
Monitor After Deploy
Watch logs after deployment:Check LangSmith for errors and latency spikes.
Use Secrets for All Keys
Use Secrets for All Keys
Never put API keys in
langgraph.json:Troubleshooting
Deployment Fails with 'Graph not found'
Deployment Fails with 'Graph not found'
Symptom:
Error: Could not find graph 'agent'Solution:- Verify
langgraph.jsonhas correct graph path - Ensure file exists at
./langgraph/agent.py - Check variable name is
graph(notagent_graph)
Authentication Errors
Authentication Errors
Symptom:
401 UnauthorizedSolution:Missing Dependencies
Missing Dependencies
Symptom:
ModuleNotFoundError in logsSolution:- Add missing package to
langgraph/requirements.txt - Redeploy:
langgraph deploy
Environment Variable Not Set
Environment Variable Not Set
Symptom: Agent fails with missing API keySolution:
Comparison with Other Platforms
| Feature | LangGraph Platform | Cloud Run | Kubernetes |
|---|---|---|---|
| Setup Time | 2 minutes | 15 minutes | 1+ hours |
| Infrastructure | ✅ None | ⚠️ Minimal | ❌ Complex |
| Scaling | ✅ Automatic | ✅ Automatic | ⚠️ Manual config |
| LangSmith Integration | ✅ Built-in | ⚠️ Manual | ⚠️ Manual |
| Versioning | ✅ Built-in | ⚠️ Manual | ⚠️ Manual |
| Cost | Pay-per-use | Pay-per-use | Fixed + usage |
| Best For | Quick production deployments | GCP-native apps | Enterprise, self-hosted |
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!