Skip to main content

Deploy in 3 Steps

1

Install CLI

2

Login to LangChain

This will prompt for your LangSmith API key. Get it from smith.langchain.com/settings.
3

Deploy

Your agent is now live on LangGraph Platform!
Deployment complete! Your agent is now running on LangGraph Platform with automatic scaling and built-in LangSmith tracing.

What Happens During Deployment

When you run langgraph deploy, the CLI:
  1. Packages your code - Bundles your agent and dependencies
  2. Uploads to platform - Securely transfers to LangGraph Platform
  3. Provisions infrastructure - Creates serverless compute resources
  4. Deploys your graph - Makes your agent available via API
  5. 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:
  1. Go to smith.langchain.com
  2. Select your project
  3. See all traces with full LLM details

Local Testing First

Test locally before deploying:

Deployment Commands

Next Steps

Configuration

Configure your deployment settings

Secrets Management

Manage API keys and secrets

Monitoring

Monitor with LangSmith

CI/CD

Automate deployments

Troubleshooting

Solution: Ensure you’re using a valid LangSmith API key from smith.langchain.com/settings.
Common causes:
  • Missing dependencies in langgraph/requirements.txt
  • Invalid langgraph.json configuration
  • Graph import errors
Solution: Test locally first with langgraph dev
Solution: Verify langgraph.json has correct graph path:

Need help? Check the full deployment guide or visit LangChain docs.