8000 GitHub - Kasma-Inc/Sagi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Kasma-Inc/Sagi

Repository files navigation

License

🎯 About

Sagi is a production-ready, open-source LLM agent framework that combines advanced technologies to create powerful AI agents. It features:

  • 🧠 Deep-research workflow architecture, more details refers to the doc
  • 🛠️ MCP (Model Context Protocol) integration, the guide of the usage of MCP refers to the doc
  • 📊 GraphRAG-powered retrieval system, HiRAG mcp server refers to the repo

📰 News

  • [2025/04] 🔥 Sagi is publicly released!

🔜 Coming Soon

  • Interactive Web UI
  • Advanced file chunking & indexing supports
  • Improved documentation with more demos
  • Chat history & workflow state management

🚀 Quick Start

Prerequisites

  1. System Requirements

  2. Clone the Repository

    git clone https://github.com/Kasma-Inc/Sagi.git
    cd Sagi
    git submodule update --init --recursive  # Download MCP servers and Markify(MinerU)
  3. Environment Setup

    cp .env.example .env

    Configure the following in your .env file:

    • OPENAI_API_KEY - Your OpenAI API key
    • BRAVE_API_KEY - Your Brave Search API key
    • OPENAI_BASE_URL - (Optional) Custom endpoint URL

Installation & Running

  1. Build the Docker Container

    chmod +x dev/setup_dc.sh
    ./dev/setup_dc.sh
  2. Access the Container (Choose one method)

    • Option A: Use VSCode Remote Container (Recommended). You can run bash dev/install_vscode_extensions.sh to install the basic plugins for the development.
    • Option B: Access via terminal:
      docker exec -it "$(whoami)_chatbot_python" /bin/bash
  3. Install Dependencies

    • Option A: pip install
    pip install -e .
    • Option B: uv install
    uv venv
    source .venv/bin/activate
    uv pip install -e .
  4. Start CLI

    python cli.py

🤝 Contributing

We welcome contributions! Please feel free to submit a pull request. We also welcome any questions via Github Issues or via the community group, please join us.

Sagi Open Source

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

0