How do I run LangGraph Studio in dev mode in Self-hosted LangSmith?

Last updated: May 1, 2026

Context

When running langgraph dev locally, Studio redirects you to the LangSmith login page at smith.langchain.com by default. To make this work in a self-hosted environment, you need to pass in the --studio-url flag.

Answer

  1. Run langgraph dev with the --studio-url flag

  2. Specify your self-hosted LangSmith URL as the argument

Example:

langgraph dev --studio-url https://your-langsmith-instance.com

This will open the Studio UI using your self-hosted instance.