LangGraph 1 cheatsheet
LangGraph 1: Setup
5 common LangGraph 1 tasks.
Install the LangGraph CLI
Install the CLI, including the in-memory server used by langgraph dev.
pip install -U "langgraph-cli[inmem]"
Create a project from a template
Scaffold a LangGraph app. Choose a template when prompted, or name one with --template.
langgraph new my-app
Run the local dev server
Start the API server with hot reload and open LangGraph Studio. Run it from the folder with langgraph.json.
langgraph dev
Write langgraph.json
Tell the CLI which graphs your project exposes and where its dependencies and environment file are.
{
"dependencies": ["."],
"graphs": {"agent": "./agent.py:graph"},
"env": ".env"
}