A Jupyter notebook environment for developing LangGraph agents with CopilotKit.
- uv
- Node.js 18+
- OpenAI API key
-
Install Python dependencies:
uv sync
-
Install frontend dependencies:
cd frontend npm install -
Set your OpenAI API key:
export OPENAI_API_KEY=your-api-key
Start the notebook:
uv run jupyter notebook dev.ipynbOr with JupyterLab:
uv run jupyter lab dev.ipynbThen run the cells in order:
- Start Backend Server - Launches the FastAPI server on port 8000
- Define Agent Graph - Configure your LangGraph agent
- Customize Frontend - Edit the React UI
- Start Frontend - Launches Next.js on port 3000
Open http://localhost:3000 to interact with your agent.
- Re-run Define Agent Graph to update agent behavior without restarting
- Re-run Customize Frontend to update the UI (Next.js hot-reloads automatically)