English | ็ฎไฝไธญๆ
๐ An open-source platform to define, organize, and run Agentic AI
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.
graph LR
subgraph AIResource ["๐ AI Native Resource"]
subgraph YAMLDef ["๐ YAML Definitions"]
Ghost["๐ป Ghost<br/>Agent Soul"]
Model["๐ง Model<br/>Model Configuration"]
Shell["๐ Shell<br/>Agent Program"]
Bot["๐ค Bot<br/>Agent Instance"]
CollabModel["๐ค Collaboration<br/>Collaboration Model"]
Team["๐ฅ Team<br/>Collaborative Team"]
end
end
subgraph Wegent ["๐ Wegent"]
Workspace["๐ผ Workspace<br/>Work Environment"]
TeamInstance["๐ฅ Agent Team Instance<br/>Running Team"]
end
User["๐ค User"]
Task["๐ฏ Task<br/>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
- ๐ป 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
- 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
A quick preview of Wegent in action, showcasing agent creation and team collaboration.
- Docker and Docker Compose
- Git
-
Clone the repository
git clone https://github.com/wecode-ai/wegent.git cd wegent
-
Start the platform
docker-compose up -d
-
Access the web interface
- Open http://localhost:3000 in your browser
-
Configure GitHub Access Tokens
- Follow the page instructions to configure your GitHub access token
-
Configure Bot
Wegent comes with a built-in development bot. Simply configure your Claude API key to start using it:
{ "env": { "ANTHROPIC_MODEL": "claude-4.1-opus", "ANTHROPIC_API_KEY": "xxxxxx", "ANTHROPIC_BASE_URL": "sk-xxxxxx", "ANTHROPIC_SMALL_FAST_MODEL": "claude-3.5-haiku" } } ```bash
-
Run task
On the task page, select your project and branch, describe your development requirements, such as implementing a bubble sort algorithm using Python
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
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
-
Backend Development
cd backend pip install -r requirements.txt uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
-
Frontend Development
cd frontend npm install npm run dev
-
Run Tests
# Backend tests cd backend && python -m pytest # Frontend tests cd frontend && npm test
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
- ๐ Issues: GitHub Issues
Made with โค๏ธ by WeCode-AI Team