Run LangGraph Studio locally
mainLangGraph Studio is an IDE for viewing and testing agents. You can run a local development server to explore the graphs provided in the module-x/studio/ directories.
1. Prepare the .env file
Studio requires a .env file in the module's studio directory containing your API keys. You can use this loop to quickly scaffold .env files for modules 1 through 5:
for i in {1..5}; do
cp module-$i/studio/.env.example module-$i/studio/.env
echo "OPENAI_API_KEY=\"$OPENAI_API_KEY\"" > module-$i/studio/.env
done
echo "TAVILY_API_KEY=\"$TAVILY_API_KEY\"" >> module-4/studio/.env2. Start the development server
Navigate to the /studio directory of the specific module and run:
langgraph dev3. Access the UI
Once started, open the Studio UI in your browser at:
https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
langgraph dev