# Wegent
**Repository Path**: wecode-ai/wegent
## Basic Information
- **Project Name**: Wegent
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 2
- **Created**: 2025-11-13
- **Last Updated**: 2026-01-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Wegent
> ๐ An open-source platform to define, organize, and run Agentic AI
English | [็ฎไฝไธญๆ](README_zh.md)
[](https://python.org)
[](https://fastapi.tiangolo.com)
[](https://nextjs.org)
[](https://docker.com)
[](https://claude.ai)
### ๐ **Build Your Own AI Agent Workforce**
*From coding assistants to news analysts - deploy intelligent agents that actually work*
[Quick Start](#-quick-start) ยท [Use Cases](#-what-can-you-build) ยท [Documentation](docs/en/resource-definition-formats.md)
---
## ๐ก What Can You Build?
Wegent empowers you to create powerful AI applications through intelligent agent orchestration:
### ๐ฅ๏ธ **Web-Based Coding Assistant**
Build a full-featured development environment in your browser
### ๐ฐ **News Intelligence Platform**
Create a smart news aggregation and analysis system
### ๐ง **Custom Agent Applications**
The possibilities are endless - build agents for:
- **Data Analysis**: Automated report generation and visualization
- **Content Creation**: Blog posts, social media, and marketing materials
- **Customer Support**: Intelligent chatbots with contextual understanding
- **DevOps Automation**: CI/CD pipeline management and monitoring
- **Research Assistant**: Literature review and knowledge synthesis
---
## ๐ What is Wegent?
Wegent is an open-source AI native operating system that enables you to define, organize, and run intelligent agents at scale. Built on Kubernetes-style declarative API and CRD (Custom Resource Definition) design patterns, Wegent provides a standardized framework for creating and managing AI agent ecosystems.
```mermaid
graph LR
subgraph AIResource ["๐ AI Native Resource"]
subgraph YAMLDef ["๐ YAML Definitions"]
Ghost["๐ป Ghost
Agent Soul"]
Model["๐ง Model
Model Configuration"]
Shell["๐ Shell
Agent Program"]
Bot["๐ค Bot
Agent Instance"]
CollabModel["๐ค Collaboration
Collaboration Model"]
Team["๐ฅ Team
Collaborative Team"]
end
end
subgraph Wegent ["๐ Wegent"]
Workspace["๐ผ Workspace
Work Environment"]
TeamInstance["๐ฅ Agent Team Instance
Running Team"]
end
User["๐ค User"]
Task["๐ฏ Task
User Task"]
%% CRD Resource Relationships
Ghost --> Bot
Model --> Bot
Shell --> Bot
Bot --> Team
CollabModel --> Team
Shell --> Team
%% Team Definition to Instance
AIResource --> Wegent
Workspace --> TeamInstance
%% User Interaction Flow
User --> Task
Task --> TeamInstance
TeamInstance --> Task
%% Styling
classDef yamlBox stroke-dasharray: 5 5
classDef runtimeBox stroke:#ff6b6b,stroke-width:2px
classDef resourceBox stroke:#4ecdc4,stroke-width:2px
class YAMLDef yamlBox
class Runtime runtimeBox
class AIResource resourceBox
```
### ๐ฏ Key Concepts
- **๐ป Ghost**: The "soul" of an agent - defines personality, capabilities, and behavior patterns
- **๐ง Model**: AI model configuration - defines environment variables and model parameters
- **๐ Shell**: The "executable" - A program capable of launching an agent
- **๐ค Bot**: A complete agent instance combining Ghost + Shell + Model
- **๐ฅ Team**: Composed of multiple Bots + Collaboration Model, defining how agents work together
- **๐ค Collaboration**: Defines the interaction patterns between Bots in a Team (like Workflow)
- **๐ผ Workspace**: Isolated work environments for tasks and projects
- **๐ฏ Task**: Executable units of work assigned to teams
> ๐ก **Detailed YAML Configuration Documentation**:
- [Complete YAML configuration examples and field descriptions](docs/en/resource-definition-formats.md)
### โจ Why Wegent?
- **Standardized**: Universal AI agent runtime specifications, like Kubernetes for containers
- **Declarative**: Define and manage agents through simple YAML configurations
- **Collaborative**: Built-in support for multi-agent teamwork and orchestration
- **Multi-Model Support**: Currently supports Claude Code, with plans for Codex and Gemini
- **Flexible Configuration**: Customizable agent personalities and capabilities
- **Task Orchestration**: Intelligent scheduling and execution
## ๐ Quick Start
### Prerequisites
- Docker and Docker Compose
- Git
1. **Clone the repository**
```bash
git clone https://github.com/wecode-ai/wegent.git
cd wegent
```
2. **Start the platform**
```bash
docker-compose up -d
```
3. **Access the web interface**
- Open http://localhost:3000 in your browser
4. **Configure GitHub Access Tokens**
- Follow the page instructions to configure your GitHub access token
5. **Configure Bot**
Wegent ships with a built-in development bot. For the Claude Code runtime, set the following environment variables:
```json
{
"env": {
"ANTHROPIC_MODEL": "openrouter,anthropic/claude-sonnet-4",
"ANTHROPIC_AUTH_TOKEN": "sk-xxxxxx",
"ANTHROPIC_BASE_URL": "http://xxxxx",
"ANTHROPIC_SMALL_FAST_MODEL": "openrouter,anthropic/claude-3.5-haiku"
}
}
```
Note: Some runtimes may use `ANTHROPIC_API_KEY` instead of `ANTHROPIC_AUTH_TOKEN`. See docs for details.
6. **Run task**
On the task page, select your project and branch, describe your development requirements, such as implementing a bubble sort algorithm using Python
## ๐๏ธ Architecture
```mermaid
graph TB
subgraph "๐ฅ๏ธ Management Platform Layer"
Frontend["๐ Next.js Frontend"]
Backend["โ๏ธ FastAPI Backend"]
API["๐ Declarative API"]
end
subgraph "๐ Data Layer"
MySQL[("๐พ MySQL Database")]
end
subgraph "๐ Execution Layer"
ExecutorManager["๐ฏ Executor Manager"]
Executor1["๐ Executor 1"]
Executor2["๐ Executor 2"]
ExecutorN["๐ Executor N"]
end
subgraph "๐ค Agent Layer"
Claude["๐ง Claude Code"]
AngoPlanned["๐ป Agno (Planned)"]
DifyPlanned["โจ Dify (Planned)"]
end
%% System Interactions
Frontend --> API
API --> Backend
Backend --> MySQL
Backend --> ExecutorManager
ExecutorManager --> Executor1
ExecutorManager --> Executor2
ExecutorManager --> ExecutorN
%% AI Program Integration (Currently only supports Claude Code)
Executor1 --> Claude
Executor2 --> Claude
ExecutorN --> Claude
```
## ๐ ๏ธ Development
### Project Structure
```
wegent/
โโโ backend/ # FastAPI backend service
โโโ frontend/ # Next.js web interface
โโโ executor/ # Task execution engine
โโโ executor_manager/ # Execution orchestration
โโโ shared/ # Common utilities and models
โโโ docker/ # Container configurations
```
### Development Setup
1. **Backend Development**
```bash
cd backend
pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
```
2. **Frontend Development**
```bash
cd frontend
npm install
npm run dev
```
3. **Run Tests**
```bash
# Backend tests
cd backend && python -m pytest
# Frontend tests
cd frontend && npm test
```
## ๐ค Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
### Development Workflow
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests
5. Submit a pull request
## ๐ Support
- ๐ Issues: [GitHub Issues](https://github.com/wecode-ai/wegent/issues)
## ๐ฅ Contributors
Thanks to the following developers for their contributions and efforts to make this project better. ๐ช
---
Made with โค๏ธ by WeCode-AI Team