Deploy in 3 Steps
1
Install CLI
2
Login to LangChain
3
Deploy
Deployment complete! Your agent is now running on LangGraph Platform with automatic scaling and built-in LangSmith tracing.
What Happens During Deployment
When you runlanggraph deploy, the CLI:
- Packages your code - Bundles your agent and dependencies
- Uploads to platform - Securely transfers to LangGraph Platform
- Provisions infrastructure - Creates serverless compute resources
- Deploys your graph - Makes your agent available via API
- Returns endpoint URL - Gives you the deployment URL
Test Your Deployment
Via CLI
Via HTTP
Via Python SDK
View Traces in LangSmith
All invocations are automatically traced in LangSmith:- Go to smith.langchain.com
- Select your project
- See all traces with full LLM details
Local Testing First
Test locally before deploying:Deployment Commands
Deploy with custom name
Deploy with custom name
Deploy with tag
Deploy with tag
List deployments
List deployments
View logs
View logs
Rollback
Rollback
Delete deployment
Delete deployment
Next Steps
Configuration
Configure your deployment settings
Secrets Management
Manage API keys and secrets
Monitoring
Monitor with LangSmith
CI/CD
Automate deployments
Troubleshooting
Login fails
Login fails
Solution: Ensure you’re using a valid LangSmith API key from smith.langchain.com/settings.
Deployment fails
Deployment fails
Common causes:
- Missing dependencies in
langgraph/requirements.txt - Invalid
langgraph.jsonconfiguration - Graph import errors
langgraph devGraph not found error
Graph not found error
Solution: Verify
langgraph.json has correct graph path:Need help? Check the full deployment guide or visit LangChain docs.