AI Skill Hub 推荐使用:Wee-Orchestrator 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
Wee-Orchestrator是开源的AI工作流管理器,支持多种AI代理,包括Claude、Gemini和Copilot。它使用户能够自主管理AI工作流,实现更高效的AI协作。
Wee-Orchestrator 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Wee-Orchestrator是开源的AI工作流管理器,支持多种AI代理,包括Claude、Gemini和Copilot。它使用户能够自主管理AI工作流,实现更高效的AI协作。
Wee-Orchestrator 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install wee-orchestrator
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install wee-orchestrator
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/leprachuan/Wee-Orchestrator
cd Wee-Orchestrator
pip install -e .
# 验证安装
python -c "import wee_orchestrator; print('安装成功')"
# 命令行使用
wee-orchestrator --help
# 基本用法
wee-orchestrator input_file -o output_file
# Python 代码中调用
import wee_orchestrator
# 示例
result = wee_orchestrator.process("input")
print(result)
# wee-orchestrator 配置文件示例(config.yml) app: name: "wee-orchestrator" debug: false log_level: "INFO" # 运行时指定配置文件 wee-orchestrator --config config.yml # 或通过环境变量配置 export WEE_ORCHESTRATOR_API_KEY="your-key" export WEE_ORCHESTRATOR_OUTPUT_DIR="./output"
One platform. Every AI. Any channel.
Wee-Orchestrator is a unified AI agent platform that lets you chat with any AI CLI runtime — GitHub Copilot, Claude Code, OpenCode, Google Gemini, or OpenAI Codex — from Telegram, WebEx, or a beautiful browser-based Web UI. Switch models, agents, and runtimes on the fly with slash commands. Schedule recurring AI tasks. Send files and images. All from one place.
<p align="center"> <img src="docs/images/architecture.png" alt="Wee-Orchestrator Architecture" width="700"/> </p>
---
Wee-Orchestrator provides a flexible framework to: - Chat with AI agents from Telegram, WebEx, or the browser-based Web UI - Call AI CLIs (Copilot, OpenCode, Claude Code, Gemini, Codex) from N8N workflows - Maintain session affinity across multiple conversation turns - Switch between different agent repositories dynamically - Configure agents via JSON config files instead of hardcoding - Support multiple AI models and runtimes - Schedule recurring AI tasks with the built-in Task Scheduler - Execute bash commands directly with ! prefix - Send and receive files and images over Telegram and WebEx - Enforce per-user agent pinning, model pinning, and yolo/restricted mode ACLs
For release history and feature documentation see CHANGELOG.md and RELEASE_NOTES.md.
agents.json, switch with /agent; hot-reload on change (no restart needed)/modelevery day at 9am)/tokens in the CLI REPL/compact command to summarize old history and free context space; see Context Window Management/secret command for secure credential management---
pip install -r requirements.txt
This project requires one or more of the following AI CLI tools to be installed:
Wee-Orchestrator enables you to create custom bots — specialized AI agents with their own configuration, knowledge base, and capabilities. Each bot is a self-contained repository that can be integrated with Wee-Orchestrator.
🚀 New here? Use the Wee-Orchestrator Starter Kit to scaffold a new bot in minutes — includes AGENTS.md, skill management with security scanning, memory structure, and setup scripts.
💡 Recommended: Fork the Wee-Orchestrator Starter Kit instead of starting from scratch — it includes everything below pre-configured with best practices, security scanning, and setup scripts.
1. Create your bot repository:
mkdir my-bot && cd my-bot
git init
git remote add origin https://github.com/username/my-bot.git
2. Add AGENTS.md: Copy and customize the AGENTS.md template from Wee-Orchestrator with your bot's preferences
3. Create memory directory:
mkdir -p memory/{projects,areas,resources,archive}
echo "# Knowledge Base" > memory/INDEX.md
4. Add .env and .gitignore:
cp /opt/n8n-copilot-shim-dev/.env.example .env
echo ".env" >> .gitignore
echo "*.key" >> .gitignore
echo "secrets.json" >> .gitignore
5. Link or implement skills:
mkdir skills
ln -s /opt/pot-o-skills skills/cisco-meraki
6. Register with Wee-Orchestrator: Update Wee-Orchestrator's agents.json to include your bot:
{
"agents": [
{
"name": "my-bot",
"path": "/opt/my-bot",
"enabled": true
}
]
}
1. Copy the agent manager script:
cp agent_manager.py /usr/local/bin/agent-manager
chmod +x /usr/local/bin/agent-manager
2. Configure your agents: - Copy agents.example.json to agents.json - Edit agents.json with your actual repository paths - Place agents.json in the same directory as the script or current working directory
3. Optional: Specify config location via environment variable
export AGENTS_CONFIG=/path/to/custom/agents.json
```bash
my-bot/
├── README.md # Bot overview & usage
├── AGENTS.md # Agent behavior & configuration
├── .env # Credentials (git-ignored)
├── .gitignore # Protect secrets
│
├── memory/ # Knowledge base (PARA methodology)
│ ├── projects/ # Active multi-step initiatives
│ ├── areas/ # Ongoing responsibility areas
│ ├── resources/ # Reference material & best practices
│ └── archive/ # Completed/deprecated items
│
├── skills/ # Custom skill implementations
│ ├── custom-skill-1/
│ └── custom-skill-2/
│
└── domain-folders/ # Domain-specific organization
├── email/ # Email processing
├── home-automation/ # Smart home tasks
└── infrastructure/ # Infrastructure management
python agent_manager.py "List all files in the current directory"
```bash
| Chat Interface | Task Scheduler |
![]() |
![]() |
| Secure Pairing Login | Architecture Overview |
![]() |
![]() |
---
cp .env.example .env # Edit with your API keys and bot tokens
python3 telegram_connector.py # Telegram bot python3 webex_connector.py # WebEx bot ```
Then open http://localhost:8000/ui in your browser and pair via Telegram or WebEx.
🚀 Want to create your own bot? Use the Wee-Orchestrator Starter Kit to scaffold one in minutes.
---
#### GitHub Copilot CLI - Flags Used: --allow-all-tools --allow-all-paths - Enables: - All MCP tools and shell commands without approval - Read/write/execute permissions for all files and directories - Security Note: Gives Copilot the same permissions as your user account
#### Claude Code CLI - Flags Used: --permission-mode bypassPermissions - Enables: - Auto-approve all file edits, writes, and reads - Execute shell commands without approval - Access web/network tools without prompts - Also Known As: YOLO mode or dontAsk mode
#### OpenCode CLI - Configuration: Uses opencode.json file for permission settings - Required Setup: 1. Copy the example config: cp opencode.example.json opencode.json 2. Place opencode.json in your agent directories or project root - Permissions Enabled: - edit: allow - write: allow - bash: allow - read: allow - webfetch: allow - Reference: OpenCode Permissions Documentation
#### Google Gemini CLI - Flags Used: --yolo - Enables: - Read/write file operations without confirmation - Shell command execution without approval - All built-in tools with unrestricted access - Built-in Tools: read_file, write_file, run_shell_command
#### OpenAI Codex CLI - Flags Used: --dangerously-bypass-approvals-and-sandbox - Enables: - Disables all approval prompts - Removes sandbox restrictions (full file system access) - Allows all shell commands and tools without confirmation - Security Note: Only use in trusted, controlled environments
#### Claude Agent SDK (Python) - Package: claude-agent-sdk>=0.1.0 (install via pip install claude-agent-sdk) - Enables: - In-process async execution (no subprocess spawn) - Structured error types (CLINotFoundError, CLIConnectionError, ProcessError) - Native permission_mode field instead of CLI flags - Session continuity via ResultMessage.session_id capture - Permission Modes: - elevated → bypassPermissions (full access, no prompts) - sandboxed → plan (read-only + approval for writes) - restricted → default (standard safety checks) - Streaming: Real-time text chunks pushed to WebUI SSE consumers via _StreamBuffer - Tool Calls: ToolUseBlock/ToolResultBlock detection emits standardized tool_call events - Usage: /runtime set claude-agent-sdk - Issues: #77, #87, #91, #94
#### GitHub Copilot SDK (Python) - Package: github-copilot-sdk>=0.1.0 (install via pip install github-copilot-sdk) - Enables: - In-process async execution via CopilotClient - Real-time streaming via ASSISTANT_STREAMING_DELTA/ASSISTANT_MESSAGE_DELTA events - Tool call tracking via TOOL_EXECUTION_START/COMPLETE and COMMAND_EXECUTE events - Session resumption and structured error handling - Usage: /runtime set copilot-sdk - Issues: #76, #87, #91
#### Wee Native Runtime - Also Known As: wee — OpenAI-compatible API backend runtime - Description: Connects to any OpenAI-compatible API endpoint (Ollama, OpenRouter, LM Studio, etc.) without depending on external CLI tools like GitHub Copilot CLI, Claude Code, or OpenCode. - Supported Backends: - Ollama at http://192.168.1.101:11434/v1 — local, free (Kubuntu) - OpenRouter at https://openrouter.ai/api/v1 — cloud fallback, 100+ models - LM Studio at http://localhost:1234/v1 — local alternative - Model Format: Uses provider/model_name prefix syntax for auto-resolving API base URL and API key: - ollama/gemma4:e4b — Ollama on Kubuntu (default) - openrouter/meta-llama/llama-4-scout — OpenRouter cloud - lmstudio/qwen2.5-7b — LM Studio local - Configuration Example:
{
"runtime": "wee",
"model": "ollama/gemma4:e4b"
}
- Environment Variables: - WEE_API_BASE — Override API base URL (e.g., http://192.168.1.101:11434/v1) - WEE_API_KEY — API key for authenticated endpoints (OpenRouter, etc.) - WEE_DEFAULT_MODEL — Default model when model not specified in config - WEE_SEARXNG_URL — SearXNG base URL for the search tool (default: http://192.168.1.100:8888) - Native Tools (available in agentic --tools mode): - bash — Execute shell commands and return output - python — Execute Python 3 code and return output - call_agent — Delegate to a Wee Orchestrator sub-agent (quick or background mode) - search — Web search via self-hosted SearXNG (q, count up to 20, format json/text); requires WEE_SEARXNG_URL or defaults to http://192.168.1.100:8888 (Issue #255) - Features: - In-process execution using OpenAI Python SDK - Real-time SSE streaming to WebUI - Provider presets auto-resolve API base URLs and API keys - Graceful error handling with informative messages - Background task subprocess execution via wee_runtime.py - Implementation: run_wee_native() in agent_manager.py; wee_runtime.py standalone CLI for background tasks - Usage: /runtime set wee
/notifications off; critical alerts always deliver (Issue #146)11436 → 11434 (Issue #105)httpx.Timeout(connect=15s) and max_retries=0 added to OpenAI client for fast-fail on bad endpoints (Issue #105)get_models_for_runtime('wee') returns flat strings; get_model_from_name() strips provider prefix (ollama/) and prefers exact/shortest match (Issue #105)OPENROUTER_API_KEY env var + keyring resolution replaces silent 'ollama' fallback; raises clear error when no key found (Issue #153)The system loads agents from agents.json or a custom config file. Each agent represents a repository context where the AI CLI will operate.
Config Format:
{
"agents": [
{
"name": "devops",
"description": "DevOps and infrastructure management",
"path": "/path/to/MyHomeDevops"
},
{
"name": "projects",
"description": "Software development projects",
"path": "/path/to/projects"
}
]
}
Configuration Fields: - name (required): Short identifier for the agent (used in /agent set commands) - description (required): Brief human-readable description of the agent - path (required): Full path to the repository or project directory
⚠️API_HOSTSecurity Warning Never setAPI_HOST=0.0.0.0— this exposes the server on every network interface including your LAN and any public NIC. Always bind to specific trusted interfaces (e.g.127.0.0.1,<tailscale-ip>). See Network Binding & Secure Access.
The default agent, model, and runtime can be customized via environment variables. This is useful for: - Different users having different defaults - Docker container configuration - CI/CD pipeline customization - Development vs. production setups
Available Environment Variables:
```bash
```
When environment variables are not set, the system uses these hardcoded defaults: - Agent: orchestrator - Model: gpt-5-mini - Runtime: copilot
python agent_manager.py "Deploy the app" "session-456" "/etc/agents.json"
#### Advanced Usage (Named Arguments)
bash python agent_manager.py [options] "<prompt>" [session_id]
**Options:**
Agent Options:
- `--agent NAME` - Set the agent to use (e.g., devops, family, projects)
- `--list-agents` - List all available agents and exit
Model Options:
- `--model NAME` - Set the model to use (e.g., gpt-5, sonnet, gemini-1.5-pro)
- `--list-models` - List all available models for current runtime and exit
Runtime Options:
- `--runtime NAME` - Set the runtime to use (choices: copilot, opencode, claude, claude-agent-sdk, gemini, copilot-sdk, codex, devin)
- `--list-runtimes` - List all available runtimes and exit
Configuration:
- `--config FILE` or `-c FILE` - Path to agents.json configuration file
**Examples:**
bash
python agent_manager.py --list-agents --config my-agents.json
python agent_manager.py --agent family --runtime claude --model sonnet "Find recipes for dinner"
python agent_manager.py --config /etc/my-agents.json --agent projects "Review pull requests"
python agent_manager.py --config my-agents.json --agent devops --runtime claude --model haiku "Deploy to production" "session-123"
**Getting Help:**bash python agent_manager.py --help ```
python3 agent_manager.py --api
pip install gemini-cli
**Authentication:**
Set your API key as an environment variable:bash export GOOGLE_API_KEY='your-api-key-here'
Or configure it in your shell profile:bash echo 'export GOOGLE_API_KEY="your-api-key-here"' >> ~/.bashrc source ~/.bashrc ```
Supported Systems: Windows, macOS, Linux
Reference: Google Gemini API Documentation
#### AGENTS.md Defines the bot's behavior, preferences, and runtime configuration: - Agent name, purpose, and timezone - Preferred models and runtimes (Claude, Copilot, Gemini) - Tool permissions and access control - Sub-agent delegation rules - Skill definitions and repository locations - Security and credential management
Example excerpt:
Use in an N8N workflow:
#### Basic N8N Integration (Positional Arguments)
// Execute the agent manager from N8N
const { exec } = require('child_process');
const prompt = "Your prompt here";
const sessionId = "n8n_session_123";
const configFile = "/path/to/agents.json";
exec(`python agent_manager.py "${prompt}" "${sessionId}" "${configFile}"`,
(error, stdout, stderr) => {
if (error) console.error(error);
console.log(stdout);
}
);
#### Advanced N8N Integration (Named Arguments)
// Execute with specific agent, runtime, and model
const { exec } = require('child_process');
const agent = "devops";
const runtime = "claude";
const model = "sonnet";
const prompt = "Check production status";
const sessionId = "n8n_session_123";
const cmd = `python agent_manager.py --agent ${agent} --runtime ${runtime} --model ${model} "${prompt}" "${sessionId}"`;
exec(cmd, (error, stdout, stderr) => {
if (error) console.error(error);
console.log(stdout);
});
#### List Agents from N8N
// Get available agents dynamically
const { exec } = require('child_process');
const configFile = "/path/to/agents.json";
exec(`python agent_manager.py --list-agents --config ${configFile}`,
(error, stdout, stderr) => {
if (error) console.error(error);
// Parse stdout to get agent list
console.log(stdout);
}
);
Wee-Orchestrator 是一个统一的 AI Agent 平台,旨在实现“一个平台,连接所有 AI,覆盖所有渠道”的目标。它允许开发者通过 Telegram、WebEx 或浏览器 Web UI 与各种 AI CLI 运行时(如 GitHub Copilot、Claude Code、OpenCode、Google Gemini 和 OpenAI Codex)进行交互。该框架支持在 N8N 工作流中调用 AI CLI,并具备强大的会话保持能力,支持通过 JSON 配置文件动态切换不同的 Agent 仓库,无需硬编码即可灵活配置。
本项目支持 5 种主流 AI Runtimes,包括 GitHub Copilot CLI、Claude Code、OpenCode、Google Gemini 和 OpenAI Codex。用户可以通过 Telegram、WebEx(基于 RabbitMQ)或具有 SSE 流式传输功能的玻璃拟态 Web UI 进行多渠道交互。平台支持多 Agent 管理,可通过 `agents.json` 定义专业 Agent 并使用 `/agent` 命令实时切换,支持热重载(Hot-reload)机制,甚至可以在对话过程中动态更换模型。
在使用 Wee-Orchestrator 之前,请确保您的系统中已安装 Python 3.10+ 环境。此外,由于该平台通过调用 AI CLI 运行时来工作,您必须根据需求预先安装相应的 AI 工具(如 GitHub Copilot CLI、Claude Code 等)。项目依赖可以通过 `pip install -r requirements.txt` 进行安装。
推荐开发者使用 Wee-Orchestrator Starter Kit 进行快速部署,该工具包包含了最佳实践、安全扫描及预配置脚本,能让您在几分钟内搭建起一个新的 Bot 仓库。如果您希望从零开始,可以手动创建 Bot 目录并初始化 Git 仓库。对于环境依赖,请通过 pip 安装必要的 Python 包,并确保相关的 AI CLI 工具已配置在系统路径中。
快速上手指南:首先,您需要准备好 Bot 的目录结构,包括 `AGENTS.md`(定义行为)、`.env`(存储凭证)以及基于 PARA 方法论的 `memory/` 知识库目录。通过这种结构化的组织方式,您可以管理 Agent 的知识、项目、领域及资源。在运行过程中,您可以根据需要通过命令行或 Web UI 与不同的 Agent 进行交互。
配置过程主要通过编辑 `.env` 文件完成,请将您的 API Key 和 Bot Token 填入其中。对于权限控制,项目提供了精细化的 Runtime 权限配置。例如,GitHub Copilot CLI 可通过 `--allow-all-tools` 开启全权限,而 Claude Code 则支持特定的权限模式。此外,您可以通过 `agents.json` 或 `AGENTS.md` 来定义 Agent 的行为、偏好、工具权限及子 Agent 委派规则。
Wee-Orchestrator 提供 API 服务支持,您可以通过运行 `python3 agent_manager.py --api` 来启动 API 服务器。此外,它还支持通过 CLI 封装器进行操作。在配置身份验证时,请务必将您的 API Key 设置为环境变量(如 `export GOOGLE_API_KEY='your-api-key-here'`),以确保在不同系统环境下都能安全、正确地调用 AI 能力。
核心组件包括通过 `AGENTS.md` 定义行为的 Agent 管理系统,它涵盖了模型选择、工���权限及安全规则。此外,项目深度集成了 N8N 工作流,允许开发者通过 Node.js 的 `child_process` 模块在 N8N 中执行 Agent Manager,实现自动化任务编排。通过这种方式,您可以将强大的 AI Agent 能力无缝嵌入到复杂的业务自动化流程中。
Wee-Orchestrator是一个有潜力的开源AI工作流管理器,支持多种AI代理。它的自主管理功能使用户能够高效地协作,但仍需要进一步的开发和测试。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ GPL 3.0 — 强 Copyleft,衍生作品须开源,含专利保护条款,不可闭源使用。
总体来看,Wee-Orchestrator 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | Wee-Orchestrator |
| 原始描述 | 开源AI工作流:🍀 Self-hosted multi-agent AI orchestrator — chat with Claude, Gemini & Copilot 。⭐6 · Python |
| Topics | workflowai-agentai-frameworkautomationchatbotclaudepython |
| GitHub | https://github.com/leprachuan/Wee-Orchestrator |
| License | GPL-3.0 |
| 语言 | Python |
收录时间:2026-06-16 · 更新时间:2026-06-22 · License:GPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端