A self-hostable AI workspace for chat, coding, knowledge bases, automation, and local execution.
English | 简体中文
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.
Prerequisite: Docker and Docker Compose.
curl -fsSL https://raw.githubusercontent.com/wecode-ai/Wegent/main/install.sh | bashThen open http://localhost:3000 in your browser.
| 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.shCommon 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 --stopSee Standalone Mode and Quick Start for details.
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 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.
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.
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.
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.
Connect Wegent agents to DingTalk, Telegram, and other IM tools, or call them from existing applications through an API.
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."
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"]
- 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.
| 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 |
- Quick Start
- Installation Guide
- Core Concepts
- Skill System
- YAML Specification
- OpenAPI Responses API
- Developer Guide
We welcome contributions! Please see our Contributing Guide for details.
- 🐛 Issues: GitHub Issues
- 💬 Discord: Join our community
Thanks to the following developers for their contributions and efforts to make this project better. 💪
Made with ❤️ by WeCode-AI Team