Skip to content

Haohao-end/openagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAgent - End-to-End AI Agent Platform


Overview

OpenAgent is a full-stack platform for building and operating AI agent applications. The repository contains:

  • A Flask backend with LangChain and LangGraph orchestration
  • A Vue 3 frontend for agent, workflow, dataset, tool, and conversation management
  • Celery workers for background jobs
  • PostgreSQL, Redis, Weaviate, and Nginx in the Docker stack

The current codebase focuses on:

  • Multi-provider LLM integration
  • Workflow authoring and execution
  • Conversation management and search
  • Public app and workflow publishing
  • Knowledge base, document, and dataset management
  • Built-in tools and notification pipelines

Project Layout

.
├── api/        # Flask backend, services, handlers, tasks, tests
├── ui/         # Vue 3 frontend, components, views, tests
├── docker/     # Docker Compose stack and deployment config
├── docs/       # High-level documentation index and deployment guides
└── README.md   # Project overview

Features

Backend

  • REST APIs built with Flask
  • Service-oriented backend structure
  • JWT, OAuth, and role-based account flows
  • SSE / websocket driven real-time notifications
  • Celery-based background tasks

Frontend

  • Vue 3 + Vite + TypeScript
  • Workflow editor and app management views
  • Conversation history, search, and publishing pages
  • Notification components and live UI updates

Infrastructure

  • Docker Compose deployment
  • PostgreSQL for persistence
  • Redis for cache and task queue
  • Weaviate for vector search
  • Nginx as reverse proxy

Architecture

┌─────────────────────────────────────────────────────────────┐
│                         Frontend (Vue 3)                     │
│  Agent Builder  Workflow Editor  Dataset Manager  Tools UI   │
└─────────────────────────────────────────────────────────────┘
                            ↕ HTTP / SSE / WebSocket
┌─────────────────────────────────────────────────────────────┐
│                      Backend (Flask + Celery)                │
│  API Layer   Services   LangChain / LangGraph   Background   │
└─────────────────────────────────────────────────────────────┘
                            ↕
┌─────────────────────────────────────────────────────────────┐
│                    Infrastructure                            │
│  PostgreSQL   Redis   Weaviate   Nginx                       │
└─────────────────────────────────────────────────────────────┘

Quick Start

Prerequisites

  • Docker 20.10+
  • Docker Compose 2.0+
  • 8GB+ RAM recommended for the full stack

Start with Docker

git clone https://github.com/Haohao-end/openagent.git
cd openagent

cp api/.env.example api/.env
# edit api/.env and fill in the required API keys

cd docker
docker compose up -d --build

Service URLs

Service URL Notes
Frontend http://localhost:3000 Vue 3 web UI
API http://localhost:5001 Flask REST API
Nginx http://localhost Reverse proxy

For more deployment details, see DOCKER_QUICKSTART.md and docker/README.md.


Local Development

Backend

cd api
pip install -r requirements.txt
flask run --port 5001

Run tests:

cd api
pytest

Frontend

cd ui
npm install
npm run serve

Vite serves the frontend on port 5173 by default and proxies /api to http://localhost:5001.

Useful frontend commands:

cd ui
npm run type-check
npm run lint
npm run build
npm run test:unit -- --run

Configuration

Backend environment

Copy api/.env.example to api/.env and set at least one LLM provider key plus the required database and Redis settings.

Docker environment

If you need to customize ports, container passwords, or other infrastructure settings, use the Docker configuration documented in docker/README.md.

Key references


Documentation


Testing

The repository already includes a large automated test suite.

  • Backend: cd api && pytest
  • Frontend: cd ui && npm run test:unit -- --run

License

License terms are not declared in a root LICENSE file at the moment. Add one if you want the licensing to be explicit.

About

AI Agent Development Platform - Supports multiple models (OpenAI/DeepSeek/Wenxin/Tongyi), knowledge base management, workflow automation, and enterprise-grade security. Built with Flask + Vue3 + LangChain, featuring one-click Docker deployment.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors