new-langgraph-project-python
template or new-langgraph-project-js
template. This template demonstrates a single-node application you can extend with your own logic.
langgraph new
without specifying a template, you will be presented with an interactive menu that will allow you to choose from a list of available templates.edit
mode so your local changes are used by the server:
.env
file.env.example
in the root of your new LangGraph app. Create a .env
file in the root of your new LangGraph app and copy the contents of the .env.example
file into it, filling in the necessary API keys:
langgraph dev
command starts LangGraph Server in an in-memory mode. This mode is suitable for development and testing purposes. For production use, deploy LangGraph Server with access to a persistent storage backend. For more information, see Deployment options.
langgraph dev
command:
Safari compatibility
--tunnel
flag with your command to create a secure tunnel, as Safari has limitations when connecting to localhost servers: