Official agent skill

Langgraph CLI

by langchain-ai in langchain-ai/langchain-skills

INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications.

OfficialMITAuto-check: notesAI & LLM Engineering

Install Langgraph CLI

skills CLI
$ npx skills add langchain-ai/langchain-skills --skill langgraph-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install langchain-ai/langchain-skills langgraph-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/langchain-ai/langchain-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/config/skills/langgraph-cli .claude/skills/langgraph-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
langgraph-cli
GitHub stars
1.3k
Token cost
~2.8k tokens
SKILL.md length
729 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications.

  • Works in 6 steps: Scaffold — langgraph new to create a… → Configure — Edit langgraph.json: set… → Develop — langgraph dev for rapid local… → …
  • Tasks that involve Building AI agents
  • SKILL.md covers When to use, Installation, Commands and langgraph.json reference, plus 3 more sections
  • Calls pip, uv and npx; needs LANGSMITH_API_KEY and LANGGRAPH_HOST_API_KEY

What it does

Langgraph CLI is an agent skill from langchain-ai/langchain-skills, published by the product's own GitHub organization. INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications. Covers langgraph new, dev, build, up, deploy, and langgraph.json configuration.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Building AI agents and Containers. It works with LangGraph, Docker, LangSmith and Python. The licence is MIT.

When your agent uses it

  • Tasks that involve Building AI agents
  • Tasks that involve Containers

Example prompts

  • “/langgraph-cli”

Requirements

  • Python 3
  • Node.js
  • Docker
  • A credential in LANGSMITH_API_KEY
  • A credential in LANGGRAPH_HOST_API_KEY

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Scaffold — langgraph new to create a project from a template.
  2. Configure — Edit langgraph.json: set dependencies, point graphs at your compiled graph(s), add .env.
  3. Develop — langgraph dev for rapid local iteration with hot reload (no Docker, port 2024).
  4. Validate — langgraph up --recreate to test in a production-like Docker stack (port 8123, includes Postgres).
  5. Deploy — langgraph deploy to ship to LangGraph Platform (LangSmith Deployments).
  6. Monitor — langgraph deploy logs -f to tail runtime logs; --type build for build logs.

What it can do on your machine

Read from SKILL.md and the folder at commit 16a992f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • uv
    • npx
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, uv, npx and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • LANGSMITH_API_KEY
    • LANGGRAPH_HOST_API_KEY
    • LANGCHAIN_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Langgraph CLI loads about 2.8k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 729 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:118
    : `LANGSMITH_API_KEY` in environment or `.env`.
  • NoteMentions a .env fileSKILL.md:156
    docker-compose # also generate compose + .env + .dockerignore
  • NoteMentions a .env fileSKILL.md:171
    "env": "./.env"
  • NoteMentions a .env fileSKILL.md:183
    "env": "./.env"
  • NoteMentions a .env fileSKILL.md:196
    "env": "./.env",
  • NoteMentions a .env fileSKILL.md:211
    | `env` | No | Path to a `.env` file (string) OR an inline mapping of env var names to values (object). Used by `langgra
  • NoteMentions a .env fileSKILL.md:220
    `graphs` at your compiled graph(s), add `.env`.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from langchain-ai/langchain-skills at commit 16a992f, republished under its MIT licence (© langchain-ai). 729 words, ~2,788 tokens.

Download SKILL.mdSave it as .claude/skills/langgraph-cli/SKILL.md (or your agent's skills folder).
name
langgraph-cli
description
INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications. Covers langgraph new, dev, build, up, deploy, and langgraph.json configuration.
<overview>
The `langgraph` CLI manages the full lifecycle of LangGraph applications — from scaffolding a new project to deploying it to LangGraph Platform (LangSmith Deployments).

Key commands:

  • langgraph new — Scaffold a project from a template
  • langgraph dev — Run locally with hot reload (no Docker)
  • langgraph build — Build a Docker image
  • langgraph up — Launch locally via Docker Compose
  • langgraph deploy — Ship to LangGraph Platform
  • langgraph dockerfile — Generate a Dockerfile

All commands (except new) read from a langgraph.json config file in the project root. </overview>

When to use

Use this skill when the user wants to:

  • Scaffold a new LangGraph project
  • Run a local development or production-like server
  • Build or deploy a LangGraph application
  • Understand or edit langgraph.json configuration
  • Manage LangSmith Deployments (list, delete, view logs)

Installation

bash
# Python
pip install 'langgraph-cli[inmem]'   # includes langgraph dev support
pip install langgraph-cli             # without dev server (build/up/deploy only)

# if using UV as package manager
uv add "langgraph-cli[inmem]"       # includes langgraph dev support
uv add langgraph-cli                # without dev server (build/up/deploy only)

# JavaScript
npx @langchain/langgraph-cli         # use on demand
npm install -g @langchain/langgraph-cli  # install globally (available as langgraphjs)

Commands

langgraph new [PATH]

Scaffold a new project from a template.

bash
langgraph new                          # interactive template selection
langgraph new ./my-agent               # create in specific directory
langgraph new --template agent-python  # skip prompt, use template directly

Available templates: deep-agent-python, deep-agent-js, agent-python, new-langgraph-project-python, new-langgraph-project-js

langgraph dev

Run a local development server with hot reloading. No Docker required.

bash
langgraph dev                              # default: localhost:2024
langgraph dev --port 8000                  # custom port
langgraph dev --config ./langgraph.json    # explicit config path
langgraph dev --no-reload                  # disable hot reload
langgraph dev --no-browser                 # don't auto-open LangGraph Studio
langgraph dev --host 0.0.0.0              # bind to all interfaces (trusted networks only)
langgraph dev --tunnel                     # expose via Cloudflare tunnel for remote access
langgraph dev --debug-port 5678            # enable remote debugger (requires debugpy)
langgraph dev --n-jobs-per-worker 20       # max concurrent jobs per worker (default: 10)
langgraph build

Build a Docker image for the LangGraph API server.

bash
langgraph build -t my-image                # required: tag the image
langgraph build -t my-image --no-pull      # use locally-built base images
langgraph build -t my-image -c langgraph.json  # explicit config
langgraph build -t my-image --base-image langchain/langgraph-server:0.2.18  # pin base version
langgraph up

Launch the LangGraph API server via Docker Compose (includes Postgres).

bash
langgraph up                               # default port 8123
langgraph up --port 8000                   # custom port
langgraph up --watch                       # restart on file changes
langgraph up --recreate                    # force fresh build (useful for pre-deploy validation)
langgraph up --postgres-uri postgresql://...  # external Postgres
langgraph up --no-pull                     # use local images (after langgraph build)
langgraph up --image my-image              # skip build, use pre-built image
langgraph up -d docker-compose.yml         # add extra Docker services
langgraph up --debugger-port 8124          # serve debugger UI
langgraph up --wait                        # block until services are healthy
langgraph deploy

Build and deploy to LangGraph Platform (LangSmith Deployments). Requires Docker. On Apple Silicon (M1/M2/M3), Docker Buildx is also required for cross-compiling to linux/amd64.

bash
langgraph deploy                           # deploy, name defaults to directory name
langgraph deploy --name my-agent           # explicit deployment name
langgraph deploy --deployment-type prod    # production deployment (default: dev)
langgraph deploy --tag v1.2.0              # custom image tag (default: latest)
langgraph deploy --deployment-id <id>      # update an existing deployment by ID
langgraph deploy --config ./langgraph.json # explicit config path
langgraph deploy --no-wait                 # don't wait for deployment status
langgraph deploy --verbose                 # show detailed server logs

Prereq: LANGSMITH_API_KEY in environment or .env.

langgraph deploy also accepts build flags: --base-image, --pull/--no-pull.

langgraph deploy list
bash
langgraph deploy list                      # list all deployments
langgraph deploy list --name-contains bot  # filter by name
langgraph deploy delete
bash
langgraph deploy delete <deployment-id>          # interactive confirmation
langgraph deploy delete <deployment-id> --force  # skip confirmation
langgraph deploy logs
bash
langgraph deploy logs                                  # runtime logs, last 100
langgraph deploy logs --name my-agent                  # by deployment name
langgraph deploy logs --deployment-id <id>             # by deployment ID
langgraph deploy logs --type build                     # build logs instead of runtime
langgraph deploy logs -f                               # follow/stream logs
langgraph deploy logs --level error                    # filter by level (debug|info|warning|error|critical)
langgraph deploy logs -q "timeout"                     # search filter
langgraph deploy logs --limit 500                      # more entries
langgraph deploy logs --start-time 2026-03-08T00:00:00Z  # time range
langgraph dockerfile <SAVE_PATH>

Generate a Dockerfile (and optionally Docker Compose files) without building.

bash
langgraph dockerfile ./Dockerfile                      # generate Dockerfile
langgraph dockerfile ./Dockerfile --add-docker-compose # also generate compose + .env + .dockerignore

langgraph.json reference

The configuration file used by all CLI commands (dev, build, up, deploy). Defaults to langgraph.json in the current directory.

Minimal config (Python)
json
{
    "dependencies": ["."],
    "graphs": {
        "agent": "./my_agent/agent.py:graph"
    },
    "env": "./.env"
}
Minimal config (JavaScript)
json
{
    "dependencies": ["."],
    "graphs": {
        "agent": "./src/agent.js:graph"
    },
    "env": "./.env"
}
Full config with all keys
json
{
    "dependencies": [".", "langchain_openai", "./local_package"],
    "graphs": {
        "agent": "./my_agent/agent.py:graph",
        "retriever": "./my_agent/rag.py:rag_graph"
    },
    "env": "./.env",
    "python_version": "3.12",
    "pip_config_file": "./pip.conf",
    "dockerfile_lines": [
        "RUN apt-get update && apt-get install -y ffmpeg"
    ]
}
Key reference
KeyRequiredDescription
dependenciesYesArray of dependencies. "." looks for local packages via pyproject.toml, setup.py, requirements.txt, or package.json. Can also be paths to subdirectories ("./my_pkg") or package names ("langchain_openai").
graphsYesMapping of graph ID to path. Format: ./path/to/file.py:variable (Python) or ./path/to/file.js:function (JS). The variable must be a CompiledGraph or a function returning one. Multiple graphs supported.
envNoPath to a .env file (string) OR an inline mapping of env var names to values (object). Used by langgraph dev and langgraph up locally. langgraph deploy reads from this file and adds the variables as deployment secrets.
python_versionNo"3.11", "3.12", or "3.13". Defaults to "3.11".
node_versionNoNode.js version for JS projects.
pip_config_fileNoPath to a pip config file for custom package indexes.
dockerfile_linesNoArray of additional Dockerfile lines appended after the base image import. Use for system packages, binaries, or custom setup.
Show full SKILL.md (310 more words)Show less

Typical workflow

  1. Scaffold — langgraph new to create a project from a template.
  2. Configure — Edit langgraph.json: set dependencies, point graphs at your compiled graph(s), add .env.
  3. Develop — langgraph dev for rapid local iteration with hot reload (no Docker, port 2024).
  4. Validate — langgraph up --recreate to test in a production-like Docker stack (port 8123, includes Postgres).
  5. Deploy — langgraph deploy to ship to LangGraph Platform (LangSmith Deployments).
  6. Monitor — langgraph deploy logs -f to tail runtime logs; --type build for build logs.

langgraph dev vs langgraph up

Featurelanggraph devlanggraph up
Docker requiredNoYes
Installpip install 'langgraph-cli[inmem]'pip install langgraph-cli
Primary useRapid development & testingProduction-like validation
State persistenceIn-memory / pickled to local dirPostgreSQL
Hot reloadingYes (default)Optional (--watch)
Default port20248123
Resource usageLightweightHeavier (Docker containers for server, Postgres, Redis)
IDE debuggingBuilt-in DAP support (--debug-port)Container debugging

Gotchas

  • langgraph deploy requires Docker — On Apple Silicon (M1/M2/M3), Docker Buildx is also required for cross-compiling to linux/amd64.
  • langgraph deploy can only update its own deployments — Deployments created through the LangSmith UI or GitHub integration cannot be updated with langgraph deploy. Use the UI for those.
  • dependencies must include all packages — The dependencies array in langgraph.json must point to where your package config lives (e.g., "." for root). The actual packages are resolved from pyproject.toml, requirements.txt, or package.json at that location.
  • langgraph dev runs without Docker — It runs directly in your environment. If your code depends on system packages (e.g., ffmpeg), they must be installed locally. Use langgraph up to validate Docker builds.
  • JavaScript CLI — Use npx @langchain/langgraph-cli <command> (or langgraphjs if installed globally via npm install -g @langchain/langgraph-cli).
  • API key — LANGSMITH_API_KEY is required for langgraph deploy. For langgraph dev, it is optional — the server runs without it, but you won't get traces in LangSmith. Can also be set via LANGGRAPH_HOST_API_KEY or LANGCHAIN_API_KEY.

© langchain-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in config/skills/langgraph-cli of langchain-ai/langchain-skills.

Open the folder on GitHubat commit 16a992f

Compare with similar skills

Langgraph CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Langgraph CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Langgraph CLI this skilllangchain-ai/langchain-skills1.3k—~2.8kAutomated safety check: NotesMIT
Deepagents Setup Configurationsoba-labs/langchain-agent-skills107—~1.9kAutomated safety check: PassMIT
Langgraph Testing Evaluationsoba-labs/langchain-agent-skills107—~2.3kAutomated safety check: PassMIT
Langchain Deploy Integrationjeremylongshore/tons-of-skills-marketplace2.8k—~3.9kAutomated safety check: NotesMIT
Langchain Observabilityjeremylongshore/tons-of-skills-marketplace2.8k—~3.9kAutomated safety check: NotesMIT
CloudbaseTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~4.7kAutomated safety check: PassMIT

Similar skills

  • Deepagents Setup Configuration

    soba-labs/langchain-agent-skills

    Initialize, validate, and troubleshoot Deep Agents projects in Python or JavaScript using the deepagents package.

    107 GitHub stars~1.9k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Langgraph Testing Evaluation

    soba-labs/langchain-agent-skills

    A skill your agent uses when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory…

    107 GitHub stars~2.3k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Langchain Deploy Integration

    jeremylongshore/tons-of-skills-marketplace

    Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager…

    2.8k GitHub stars~3.9k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Langchain Observability

    jeremylongshore/tons-of-skills-marketplace

    Wire LangSmith tracing and custom metric callbacks into a LangChain 1.0 chain or LangGraph 1.0 agent correctly — env-var spelling, subgraph propagation, per-tenant dimensions, cost and latency…

    2.8k GitHub stars~3.9k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android…

    1.1k GitHub starsUsed in 1 repo~4.7k tokens
    Backend & APIsAuto-check passed
  • LangSmith Trace Debugging

    ComposioHQ/awesome-claude-skills

    Debugs LangChain and LangGraph agents by pulling recent execution traces with the langsmith-fetch CLI and reporting errors, tool calls, timings and token use.

    77k GitHub starsUsed in 9 repos~2.7k tokens
    AI & LLM EngineeringAuto-check passed

More from langchain-ai/langchain-skills

All 22 skills in this repo
  • Agent Eval Engineering

    langchain-ai/langchain-skills

    Official

    Builds agent evaluations in stages: inspect the repository and traces, agree a Task Spec with you, then build, audit and run a Harbor task with an independent verifier.

    1.3k GitHub stars~4k tokensUpdated 2 days ago
    Auto-check passed
  • Langgraph Human In The Loop

    langchain-ai/langchain-skills

    Official

    INVOKE THIS SKILL when implementing human-in-the-loop patterns, pausing for approval, or handling errors in LangGraph.

    1.3k GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • Swarm Parallel Dispatch

    langchain-ai/langchain-skills

    Official

    Fans a list of independent items out to subagents in parallel, merges the results back into a table and supports retrying only the rows that failed.

    1.3k GitHub stars~3k tokensUpdated 2 days ago
    Auto-check passed
  • LangGraph Decision Models

    langchain-ai/langchain-skills

    Official

    Routes LangGraph agents with typed decision models that return probabilities, and finds LLM calls that only exist to produce a routing decision.

    1.3k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Deep Agents Core

    langchain-ai/langchain-skills

    Official

    Explains how to build agents with the Deep Agents framework: create_deep_agent, the built-in middleware, the harness, SKILL.md format and configuration options.

    1.3k GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Langchain Dependencies

    langchain-ai/langchain-skills

    Official

    INVOKE THIS SKILL when setting up a new project or when asked about package versions, installation, or dependency management for LangChain, LangGraph, LangSmith, or Deep Agents.

    1.3k GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check passed

Questions about Langgraph CLI

What does Langgraph CLI do?

INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications. Langgraph CLI is an agent skill from langchain-ai/langchain-skills, published by the product's own GitHub organization. INVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications.

When should I use Langgraph CLI?

Langgraph CLI fits situations like: tasks that involve Building AI agents; tasks that involve Containers.

How do I install Langgraph CLI in Claude Code?

Run `npx skills add langchain-ai/langchain-skills --skill langgraph-cli -a claude-code`. Or copy the skill folder (config/skills/langgraph-cli in langchain-ai/langchain-skills) into .claude/skills/langgraph-cli in your project. Claude Code loads it when a task matches its description.

How do I install Langgraph CLI in Codex?

Run `npx skills add langchain-ai/langchain-skills --skill langgraph-cli -a codex`. Or copy the skill folder (config/skills/langgraph-cli in langchain-ai/langchain-skills) into .agents/skills/langgraph-cli in your project. Codex loads it when a task matches its description.

Can I use Langgraph CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add langchain-ai/langchain-skills --skill langgraph-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/langgraph-cli, .gemini/skills/langgraph-cli, .github/skills/langgraph-cli and .opencode/skills/langgraph-cli in your project.

What does Langgraph CLI need to run?

Going by SKILL.md and its folder, Langgraph CLI needs the command-line tools its instructions call (pip, uv, npx and npm) and credentials named LANGSMITH_API_KEY, LANGGRAPH_HOST_API_KEY and LANGCHAIN_API_KEY. Our summary lists: Python 3; Node.js; Docker; A credential in LANGSMITH_API_KEY; A credential in LANGGRAPH_HOST_API_KEY.

Does Langgraph CLI access the network?

SKILL.md contains no URLs. Its commands use pip, uv, npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Langgraph CLI safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Langgraph CLI use?

Langgraph CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Langgraph CLI use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Langgraph CLI?

Skills that share tags, products or a category with Langgraph CLI: Deepagents Setup Configuration (soba-labs/langchain-agent-skills, 107 stars), Langgraph Testing Evaluation (soba-labs/langchain-agent-skills, 107 stars), Langchain Deploy Integration (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Langchain Observability (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Langgraph CLI?

langchain-ai (a GitHub organization, an official publisher) maintains it in langchain-ai/langchain-skills, which has 1,270 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 5, 2026.

Source: langchain-ai/langchain-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.