Go to file
hetaoBackend adbb03fc26 fix: fix sandbox cp issue 2026-01-20 22:08:36 +08:00
backend fix: fix sandbox cp issue 2026-01-20 22:08:36 +08:00
frontend feat: save locale in cookies 2026-01-20 16:00:39 +08:00
skills/public fix: fix skill md path 2026-01-20 21:10:05 +08:00
.dockerignore chore: init 2026-01-14 07:09:20 +08:00
.gitignore feat: enable public skills by default 2026-01-20 20:37:51 +08:00
LICENSE chore: init 2026-01-14 07:09:20 +08:00
README.md feat: add nginx reversed proxy (#15) 2026-01-19 23:23:38 +08:00
config.example.yaml feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00
deer-flow.code-workspace feat: support function factory (#4) 2026-01-15 22:05:54 +08:00
extensions_config.example.json fix: fix config 2026-01-20 13:58:28 +08:00
nginx.conf feat: add skills api 2026-01-20 13:57:36 +08:00

README.md

🦌 DeerFlow - v2

Originated from Open Source, give back to Open Source.

A LangGraph-based AI agent backend with sandbox execution capabilities.

Quick Start

  1. Configure the application:

    # Copy example configuration
    cp config.example.yaml config.yaml
    
    # Set your API keys
    export OPENAI_API_KEY="your-key-here"
    # or edit config.yaml directly
    
    # Optional: Enable MCP servers for additional tools
    cp mcp_config.example.json mcp_config.json
    # Edit mcp_config.json to enable desired servers
    
  2. Install dependencies:

    cd backend
    make install
    
  3. Run development server:

    make dev
    

Production Deployment

For production environments, use nginx as a reverse proxy to route traffic between the gateway and LangGraph services:

  1. Start backend services:

    # Terminal 1: Start Gateway API (port 8001)
    cd backend
    python -m src.gateway.app
    
    # Terminal 2: Start LangGraph Server (port 2024)
    cd backend
    langgraph up
    
  2. Start nginx:

    nginx -c $(pwd)/nginx.conf
    
  3. Access the application:

The nginx configuration provides:

  • Unified entry point on port 8000
  • Routes /api/models, /api/threads/*/artifacts, and /health to Gateway (8001)
  • Routes all other requests to LangGraph (2024)
  • Centralized CORS handling
  • SSE/streaming support for real-time agent responses
  • Optimized timeouts for long-running operations

Project Structure

deer-flow/
├── config.example.yaml    # Configuration template (copy to config.yaml)
├── nginx.conf            # Nginx reverse proxy configuration
├── backend/              # Backend application
│   ├── src/             # Source code
│   │   ├── gateway/     # Gateway API (port 8001)
│   │   └── agents/      # LangGraph agents (port 2024)
│   └── docs/            # Documentation
├── frontend/            # Frontend application
└── skills/              # Agent skills
    ├── public/          # Public skills
    └── custom/          # Custom skills

Architecture

Client
  ↓
Nginx (port 8000) ← Unified entry point
  ├→ Gateway API (port 8001) ← /api/models, /api/threads/*/artifacts, /health
  └→ LangGraph Server (port 2024) ← All other requests (agent interactions)

Documentation

License

This project is open source and available under the MIT License.

Acknowledgments

DeerFlow is built upon the incredible work of the open-source community. We are deeply grateful to all the projects and contributors whose efforts have made DeerFlow possible. Truly, we stand on the shoulders of giants.

We would like to extend our sincere appreciation to the following projects for their invaluable contributions:

  • LangChain: Their exceptional framework powers our LLM interactions and chains, enabling seamless integration and functionality.
  • LangGraph: Their innovative approach to multi-agent orchestration has been instrumental in enabling DeerFlow's sophisticated workflows.

These projects exemplify the transformative power of open-source collaboration, and we are proud to build upon their foundations.

Key Contributors

A heartfelt thank you goes out to the core authors of DeerFlow, whose vision, passion, and dedication have brought this project to life:

Your unwavering commitment and expertise have been the driving force behind DeerFlow's success. We are honored to have you at the helm of this journey.

Star History

Star History Chart