Skip to main content
This quickstart shows you how to deploy an application to LangSmith Cloud in GCP using the langgraph deploy command. Any app that exports a graph from a langgraph.json config deploys the same way, regardless of which framework you used to author the agent.
For a comprehensive Cloud deployment guide including GitHub-based deployments and all configuration options, refer to the Cloud deployment setup guide.
The langgraph deploy command is in beta. On LangSmith Cloud (SaaS) in AWS, local builds require langgraph-cli 0.4.35 or later.

Prerequisites

Before you begin, ensure you have:

Get started with your coding agent

A coding agent can follow this quickstart to prepare, test, and deploy your application. To get started, paste this prompt into your coding agent:

Deploy an application to LangSmith Cloud

To follow the steps yourself, continue below.

1. Create a deployable app

langgraph deploy deploys any project whose langgraph.json exports a graph. Pick the path that matches how you author your agent:
Create a new app from the new-langgraph-project-python template:
Run langgraph new without --template for an interactive menu of available templates.

2. Set your API key

Add your LangSmith API key to a .env file in your project root:
The langgraph deploy command reads this automatically. Alternatively, pass it inline:

3. Deploy

Deploy directly from the CLI or via the UI.
Run the deploy command from your project directory:
This creates a Serverless Agent Server named after your project directory. Use --name to change the name, or --agent-server-type dedicated for a Dedicated Agent Server.
To update an existing Agent Server after making code changes, re-run langgraph deploy. It finds the existing Agent Server by name and updates it in place.
You can also use langgraph deploy list to see all Agent Servers, langgraph deploy logs to tail runtime logs, and langgraph deploy delete <ID> to remove an Agent Server. For details, refer to the CLI reference.

4. Test in Studio

Studio is an interactive agent IDE connected directly to your Agent Server. Use it to send messages, inspect intermediate state at each node, edit state mid-run, and replay from any prior checkpoint without writing code. Once the Agent Server is ready:
  1. Go to LangSmith and select Agent Servers in the left sidebar.
  2. Select your Agent Server to view its details.
  3. Click Studio in the top right corner to open Studio.

5. Test the API

In LangSmith, copy the Agent Server address from the URL row in the Agent Server details view. Use it to call your application:
  1. Install the LangGraph Python SDK:
  2. Send a message to the assistant (stateless run):

Next steps

Assistants

Deploy the same graph with different models, prompts, or tools per assistant.

Threads

Persist state across multiple runs so your agent remembers context between interactions.

Runs

Kick off background runs for long-running jobs and stream results back to your client.