LangGraph GUI Setup on Windows
This guide will help you set up and run the LangGraph GUI application, both backend and frontend, on a Windows environment.
Prerequisites
Before you begin, ensure you have the following installed on your system:
- Python or Conda
- npm
- Ollama
Backend Setup
-
Open a PowerShell Terminal
Open a PowerShell terminal window to start the setup process. - Create a Conda Environment (Optional)
Create a new Conda environment for the LangGraph backend:conda create --name langgraph-backend python=3.11
Activate your new environment:
conda activate langgraph-backend
- Clone the Backend Repository
Clone the LangGraph backend repository from GitHub:git clone https://github.com/LangGraph-GUI/LangGraph-GUI-backend
- Navigate to the Backend Directory
Change directory to the backend project folder:cd LangGraph-GUI-backend
- Install Python Dependencies
Install the required Python packages usingpip
:pip install -r requirements.txt
- Start the Backend Server
Run the backend server:mkdir src/workspace cd src/workspace python ../server.py
Frontend Setup
-
Open Another PowerShell Terminal
Open a new PowerShell terminal window. - Clone the Frontend Repository
Clone the LangGraph frontend repository from GitHub:git clone https://github.com/LangGraph-GUI/LangGraph-GUI-frontend
- Navigate to the Frontend Directory
Change directory to the frontend project folder:cd LangGraph-GUI-frontend
- Install Node.js Dependencies
Usenpm
to install the required packages:npm install
- Start the Frontend Server
Launch the frontend server:npm start
Ollama Setup
-
Open Another PowerShell Terminal
Open another PowerShell terminal window. -
Start Ollama
Run the Ollama service:ollama serve
Conclusion
After completing the steps above, you should have the backend and frontend servers running along with the Ollama service. You can now access the LangGraph GUI through your web browser at http://localhost:3000
.
Note
- Ensure all terminal windows remain open while running the servers.