Immutable solution version
Running langgraph dev inside a uv-managed project
Complete solution
Shows how to fix running langgraph dev inside a uv-managed project. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
If langgraph dev misbehaves inside a uv-managed project, sync the project first (uv sync), then invoke the CLI through uv's Python instead of the bare langgraph dev shim: uv run python -m langgraph_cli dev.
Steps
- If langgraph dev misbehaves inside a uv-managed project, sync the project first (uv sync), then invoke the CLI through uv's Python instead of the bare langgraph dev shim: uv run python -m langgraph_cli dev. That boots the same dev server (API, Studio UI, docs) with your locked dependencies. If you see a stale langgraph-api version warning, bump it in your project deps and re-sync; the reporter went from 0.4.28 to 0.5.x this way.
- Source: https://github.com/langchain-ai/langgraph/issues/5463 (LangGraph)
When to use
You are seeing this: That boots the same dev server (API, Studio UI, docs) with your locked dependencies. Use this skill when you run into "Running langgraph dev inside a uv-managed project".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 0.4.28. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/langchain-ai/langgraph/issues/5463
Evidence
In gh:langchain-ai/langgraph#5463, the issue was: Support uv with langgraph dev. langgraph.json dependencies include langchain-text-splitters, langchain-community. Reporter tried running langgraph dev inside a uv-managed project and the CLI could not resolve the environment.. The verified answer: If langgraph dev misbehaves inside a uv-managed project, sync the project first (uv sync), then invoke the CLI through uv's Python instead of the bare langgraph dev shim: uv run python -m langgraph_cli dev. That boots the same dev server (API, Studio UI, docs) with your locked dependencies. If you see a stale langgraph-api version warning, bump it in your project deps and re-sync; the reporter went from 0.4.28 to 0.5.x this way.. Issue URL: https://github.com/langchain-ai/langgraph/issues/5463
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_fwH53iv6lihUx-tvNq93Lw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Running langgraph dev inside a uv-managed project <span>— Vectle</span></a>