Skip to content

wecode-ai/Wegent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,787 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Wegent

A self-hostable AI workspace for chat, coding, knowledge bases, automation, and local execution.

English | 简体中文

Python FastAPI Next.js Docker Claude Gemini Version


Why Wegent

Wegent is a self-hostable AI workspace for managing chat, coding tasks, knowledge bases, automation, and local execution in one place. You can ask questions over your own materials, hand code repositories to AI, turn recurring information checks into automated feeds, and let your team use the same assistants from DingTalk, Telegram, or other tools. When a task needs local repositories or intranet access, it can run on your own machine.

  • Start privately: Launch a self-hosted workspace with one command and begin with chat and knowledge Q&A.
  • Grow into team workflows: Share common assistants, models, tools, and knowledge bases instead of configuring them repeatedly.
  • Choose where work runs: Run coding tasks, automation, and local-device jobs in the environment that fits the job.
  • Fit existing tools: Bring AI into your current workflow through APIs or IM bots.

🚀 Quick Start

Prerequisite: Docker and Docker Compose.

curl -fsSL https://raw.githubusercontent.com/wecode-ai/Wegent/main/install.sh | bash

Then open http://localhost:3000 in your browser.

Deployment Modes

Mode Best For
Standalone (default) Single container + SQLite, best for personal trials and lightweight deployments
Standard Multi-container + MySQL + Redis, best for teams and production
Development Source startup + hot reload, best for development and extensions
# Standard mode
curl -fsSL https://raw.githubusercontent.com/wecode-ai/Wegent/main/install.sh | bash -s -- --standard

# Development mode
git clone https://github.com/wecode-ai/Wegent.git && cd Wegent && ./start.sh
Common Commands
# Standalone mode
docker logs -f wegent-standalone
docker restart wegent-standalone

# Standard mode
docker compose logs -f
docker compose down
docker compose up -d

# Development mode
./start.sh --status
./start.sh --restart
./start.sh --stop

See Standalone Mode and Quick Start for details.


Core Scenarios

Chat, Group Chat, and File Handling

Chat Mode Demo

Set up a private AI chat entrypoint. Wegent supports multiple models, multi-turn history, group chat with @mentions, file parsing, clarifying questions, answer checking, and long-term memory. When needed, AI can also read files, run commands, or generate diagrams.

Let AI Work on Code Repositories

Code Mode Demo

Let AI work on code in isolated environments. Wegent connects to GitHub, GitLab, Gitea, and Gerrit so agents can clarify requirements, create branches, modify code, run tests, commit changes, and open pull requests.

Track Information and Publish Feeds

Feed Demo

Turn AI into a continuously running task trigger. Set schedules or event triggers so AI can summarize information, analyze webpages, filter notifications, and publish results as a feed.

Knowledge Q&A

Knowledge Demo

Upload documents, import webpages, or sync DingTalk multi-dimensional tables to build team knowledge bases. Wegent handles parsing, conversion, indexing, and retrieval so AI can answer with your own materials.

Local Device Execution

AI Device Demo

Install a local runner on your own machine and connect it securely to Wegent. Tasks can switch between cloud environments and local devices, which is useful when AI needs access to local repositories, intranet resources, or dedicated development environments.

Team Tools and Existing Systems

Connect Wegent agents to DingTalk, Telegram, and other IM tools, or call them from existing applications through an API.


How It Grows

You do not need to learn every concept upfront. Wegent can start as a private AI workspace: choose a model, create an assistant, upload materials, and chat. As your team starts reusing these capabilities, you can turn common assistants, knowledge bases, coding tasks, and IM entrypoints into shared workflows.

Stage How You Can Use Wegent
Personal use Start the service and create your own AI assistants and knowledge bases
Team collaboration Share common assistants, model settings, knowledge bases, and coding tasks
Automated workflows Let AI handle work through schedules, event triggers, or IM bots
Deep integration Connect Wegent to existing systems through APIs, tools, and configuration files
Core concepts for customization and extension

Internally, Wegent splits an AI assistant into reusable pieces:

Ghost (prompt + MCP + Skills)
  + Shell (Chat / ClaudeCode / Dify)
  + Model (Claude / OpenAI / Gemini / DeepSeek / GLM, etc.)
  = Bot

Multiple Bots + collaboration mode = Team (the user-facing Agent)
Team + Workspace = Task (a traceable execution)

These relationships can be created in the web UI or managed with YAML. The web wizard supports "describe requirements → AI follow-up questions → live prompt tuning → one-click creation."


Deployment and Integration

Wegent can grow from a personal trial to a team deployment:

  • Personal trial: Standalone mode starts one container, suitable for a laptop or lightweight server.
  • Team deployment: Standard mode uses dedicated database, cache, and execution services for long-running use.
  • Local devices: Connect your own machine as a place to run tasks that need local repositories or intranet access.
  • Existing systems: Connect Wegent to team tools through APIs or IM bots.
Technical component overview
graph TB
    User["User / API / IM"] --> Frontend["Next.js Web"]
    User --> Backend["FastAPI Backend"]
    Frontend --> Backend

    Backend --> MySQL[("MySQL / SQLite")]
    Backend --> Redis[("Redis")]
    Backend --> ChatShell["Chat Shell<br/>LangGraph + Multi-LLM"]
    Backend --> ExecutorManager["Executor Manager"]
    Backend --> KnowledgeRuntime["Knowledge Runtime"]

    ExecutorManager --> CloudExecutor["Cloud Executor<br/>ClaudeCode / Dify"]
    Backend <--> LocalExecutor["Local Executor<br/>WebSocket"]
    KnowledgeRuntime --> VectorStore["Elasticsearch / Qdrant / Milvus"]
    Backend --> DocConverter["Knowledge Doc Converter<br/>MinerU OCR"]
Loading

For Developers and Team Admins

  • Application integration: Call Wegent agents from your own apps through /api/v1/responses.
  • External tools: Use MCP to let AI call existing tools and services.
  • Reusable capabilities: Package specialized abilities as Skills and load them only when needed.
  • Flexible runtimes: Use different runtime engines for chat, coding tasks, multi-agent work, and external app proxying.
  • Central model management: OpenAI, Claude, Gemini, DeepSeek, GLM, and protocol-compatible model services.
  • Team sharing and permissions: Groups, shared agents, shared models, shared Skills, and admin management.
  • Observability: OpenTelemetry support across backend, frontend, and execution services.

Built-in Assistants

Assistant Purpose
chat-team General AI assistant with Mermaid diagram support
translator Multi-language translation
dev-team Git workflow: branch, code, commit, PR
wiki-team Codebase Wiki documentation generation

Documentation


Contributing

We welcome contributions! Please see our Contributing Guide for details.

Support

Contributors

Thanks to the following developers for their contributions and efforts to make this project better. 💪

qdaxb
Axb
Micro66
MicroLee
feifei325
Feifei
FicoHu
FicoHu
cc-yafei
YaFei Liu
kissghosts
Yanhe
icycrystal4
Icycrystal4
parabala
Parabala
johnny0120
Johnny0120
moqimoqidea
Moqimoqidea
yixiangxx
Yi Xiang
joyway1978
Joyway78
sunnights
Jake Zhang
2561056571
Xuemin
cocowh
Birch
fengkuizhi
Fengkuizhi
jnhu76
Jm.hu
kerwin612
Kerwin Bryant
RockysGit
RockysGit
maquan0927
Just Quan
junbaor
Junbaor
fingki
Fingki
DavidLeeUX
Kva
flyhope
李枨煊
jolestar
Jolestar
code-wangdi
Code-wangdi
haosenwang1018
Sense_wang
LiDaiyan
Li Daiyan
qwertyerge
Erdawang
DeadLion
Jasper Zhong
rayzhang0603
Ray
RichardoMrMu
RichardoMu
Ged0
_
andrewzq777
Andrewzq777
ch15084
Ch15084
gdouyang
Gdouyang
graindt
Graindt
qingchengliu
Qingcheng
salt-hai
Salt-hai
wxcfox
Wxcfox

Made with ❤️ by WeCode-AI Team

About

An open-source AI-native operating system to define, organize, and run intelligent agent teams

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors