Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
A high-performance Agent subsystem designed for complex multi-agent orchestration (OASIS),automated computer use tasks, and real-time visual monitoring via a...
A high-performance Agent subsystem designed for complex multi-agent orchestration (OASIS),automated computer use tasks, and real-time visual monitoring via a...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
https://github.com/Avalon-467/Teamclaw
TeamClaw is an OpenClaw-like multi-agent sub-platform with a built-in lightweight agent (similar to OpenClaw's), featuring computer use capabilities and social platform integrations (e.g., Telegram). It can run independently without blocking the main agent, or be directly controlled by an OpenClaw agent to orchestrate the built-in OASIS collaboration platform. It also supports exposing the frontend to the public internet via Cloudflare, enabling remote visual multi-agent workflow programming from mobile devices or any browser. TeamClaw is a versatile AI Agent service providing: Conversational Agent: A LangGraph-based multi-tool AI assistant supporting streaming/non-streaming conversations OASIS Forum: A multi-expert parallel discussion/execution engine for orchestrating multiple agents Scheduled Tasks: An APScheduler-based task scheduling center Bark Push: Mobile push notifications Frontend Web UI: A complete chat interface
All scripts are located in selfskill/scripts/, invoked uniformly via the run.sh entry point, all non-interactive. selfskill/scripts/ run.sh # Main entry (start/stop/status/setup/add-user/configure) adduser.py # Non-interactive user creation configure.py # Non-interactive .env configuration management
All commands are executed in the project root directory. Three-step launch flow: setup → configure → start
# Install dependencies bash selfskill/scripts/run.sh setup # Initialize configuration file bash selfskill/scripts/run.sh configure --init # Configure LLM (required) bash selfskill/scripts/run.sh configure --batch \ LLM_API_KEY=sk-your-key \ LLM_BASE_URL=https://api.deepseek.com \ LLM_MODEL=deepseek-chat # ⚠️ Create user account (REQUIRED — without this you CANNOT log in to the Web UI or call API) bash selfskill/scripts/run.sh add-user system MySecurePass123 ⚠️ You MUST create at least one user account before starting the service! The Web UI login page requires username + password. All API calls require Authorization: Bearer <user_id>:<password> (or INTERNAL_TOKEN:<user_id>). If you skip this step, you will be locked out of the entire system. You can create multiple users. The first argument is the username, the second is the password.
bash selfskill/scripts/run.sh start # Start in background bash selfskill/scripts/run.sh status # Check status bash selfskill/scripts/run.sh stop # Stop service
ComponentHow it startsConfiguration neededNotesBark Push (port 58010)Automatically started by launcher.pyNone — works out of the boxA standalone binary (bin/bark-server). Auto-downloaded on first setup. No env vars needed.Telegram BotRequires manual setupTELEGRAM_BOT_TOKEN, TELEGRAM_ALLOWED_USERS in .envlauncher.py calls chatbot/setup.py which has an interactive menu (input()). In headless/background mode this will block. To avoid blocking, configure the bot tokens in .env beforehand and start the bot separately: nohup python chatbot/telegrambot.py > logs/telegrambot.log 2>&1 &QQ BotRequires manual setupQQ_APP_ID, QQ_BOT_SECRET, QQ_BOT_USERNAME in .envSame as Telegram — interactive setup will block in headless mode. Start separately: nohup python chatbot/QQbot.py > logs/qqbot.log 2>&1 & ⚠️ Important for Agent/headless usage: The chatbot/setup.py script contains interactive input() prompts. When launcher.py runs in the background (via run.sh start), if chatbot/setup.py exists it will be called and block indefinitely waiting for user input. To prevent this: Either remove/rename chatbot/setup.py before starting, OR Pre-configure all bot tokens in .env and start bots independently (bypassing setup.py).
# View current configuration (sensitive values masked) bash selfskill/scripts/run.sh configure --show # Set a single item bash selfskill/scripts/run.sh configure PORT_AGENT 51200 # Batch set bash selfskill/scripts/run.sh configure --batch TTS_MODEL=gemini-2.5-flash-preview-tts TTS_VOICE=charon
OptionDescriptionDefaultLLM_API_KEYLLM API key (required)LLM_BASE_URLLLM API URLhttps://api.deepseek.comLLM_MODELModel namedeepseek-chatLLM_PROVIDERProvider (google/anthropic/deepseek/openai, auto-inferred)AutoLLM_VISION_SUPPORTVision support (auto-inferred)AutoPORT_AGENTAgent main service port51200PORT_SCHEDULERScheduled task port51201PORT_OASISOASIS forum port51202PORT_FRONTENDWeb UI port51209PORT_BARKBark push port58010TTS_MODELTTS model (optional)TTS_VOICETTS voice (optional)OPENCLAW_API_URLOpenClaw backend service URL (full path, including /v1/chat/completions)http://127.0.0.1:18789/v1/chat/completionsOPENCLAW_API_KEYOpenClaw backend service API key (optional)OPENCLAW_SESSIONS_FILEAbsolute path to OpenClaw sessions.json file (required when using OpenClaw)NoneINTERNAL_TOKENInternal communication secret (auto-generated)Auto
PortService51200AI Agent main service51201Scheduled tasks51202OASIS forum51209Web UI
Authorization: Bearer <user_id>:<password>
Authorization: Bearer <INTERNAL_TOKEN>:<user_id> INTERNAL_TOKEN is auto-generated on first startup; view it via configure --show-raw.
Base URL: http://127.0.0.1:51200
POST /v1/chat/completions Authorization: Bearer <token> {"model":"mini-timebot","messages":[{"role":"user","content":"Hello"}],"stream":true,"session_id":"my-session"}
POST /system_trigger X-Internal-Token: <INTERNAL_TOKEN> {"user_id":"system","text":"Please execute a task","session_id":"task-001"}
POST /cancel {"user_id":"<user_id>","session_id":"<session_id>"}
📖 Dedicated OASIS usage guide (especially for OpenClaw agent integration): OASIS_GUIDE.md The "four modes" are two orthogonal switches: Discussion vs Execution: Determines whether expert output is "forum-style discussion/voting" or "workflow-style execution/deliverables". Synchronous vs Detach: Determines whether the caller blocks waiting for results.
Discussion Mode (discussion=true, default) Purpose: Multiple experts provide different perspectives, pros/cons analysis, clarify disputes, and can form consensus. Use case: Solution reviews, technical route selection, questions that need "why". Execution Mode (discussion=false) Purpose: Use OASIS as an orchestrator to complete tasks in planned sequential/parallel order, emphasizing direct output (code/scripts/checklists/finalized plans). Use case: Delivery tasks with clear objectives that don't need debate.
Detach (detach=true, default) Behavior: Returns topic_id immediately, continues running/discussing in the background; later use check_oasis_discussion(topic_id) to track progress and results. Use case: Most tasks, especially multi-round/multi-expert/long-running/tool-calling tasks. Synchronous (detach=false) Behavior: After calling post_to_oasis, waits for completion and returns the final result directly. Use case: Quick tasks where you need the deliverable immediately to continue iterating.
When not explicitly specified, the following default strategy is recommended: Default = Discussion + Detach discussion=true detach=true Switch to Execution Mode when these signals appear: "Give me the final version / copy-pasteable / executable script / just conclusions no discussion" "Generate SOP / checklist / table step by step and finalize" Switch to Synchronous Mode when these signals appear: "Wait for the result / I need it now / give me the answer directly" Quick single-round tasks where the deliverable is needed immediately
CombinationParametersReturnsUse CaseDiscussion + Detach (default)discussion=true, detach=truetopic_id, check laterDecision/review/collect opinionsDiscussion + Syncdiscussion=true, detach=falseSee discussion & conclusion on the spotQuick discussion needing immediate resultExecution + Detachdiscussion=false, detach=truetopic_id, check laterLong execution/complex pipelinesExecution + Syncdiscussion=false, detach=falseDirect deliverablesGenerate code/plans/checklists
OASIS supports four types of agents, distinguished by the name format in schedule_yaml: #TypeName FormatEngine ClassDescription1Direct LLMtag#temp#NExpertAgentStateless single LLM call. Each round reads all posts one LLM call publish + vote. No cross-round memory. tag maps to preset expert name/persona, N is instance number (same expert can have multiple copies).2Oasis Sessiontag#oasis#idSessionExpert (oasis)OASIS-managed stateful bot session. tag maps to preset expert, persona injected as system prompt on first round. Bot retains conversation memory across rounds (incremental context). id can be any string; new ID auto-creates session on first use.3Regular AgentTitle#session_idSessionExpert (regular)Connects to an existing agent session (e.g., Assistant#default, Coder#my-project). No identity injectionthe session's own system prompt defines the agent. Suitable for bringing personal bot sessions into discussions.4External APItag#ext#idExternalExpertDirectly calls any OpenAI-compatible external API (DeepSeek, GPT-4, Ollama, another TeamClaw instance, etc.). Does not go through local agent. External service assumed stateful. Supports custom request headers via YAML headers field.
tag#temp#N ExpertAgent (stateless, direct LLM) tag#oasis#<id> SessionExpert (oasis-managed, stateful bot) Title#session_id SessionExpert (regular agent session) tag#ext#<id> ExternalExpert (external API, e.g. OpenClaw agent) Special Suffix: Appending #new to the end of any session name forces creation of a brand new session (ID replaced with random UUID, ensuring no reuse): creative#oasis#abc#new #new stripped, ID replaced with UUID Assistant#my-session#new Same processing Oasis Session Conventions: Oasis sessions are identified by #oasis# in session_id (e.g., creative#oasis#ab12cd34) Stored in the regular Agent checkpoint DB (data/agent_memory.db), no separate storage Auto-created on first use, no pre-creation needed tag part maps to preset expert configuration to find persona
version: 1 plan: # Type 1: Direct LLM (stateless, fast) - expert: "creative#temp#1" - expert: "critical#temp#2" # Type 2: Oasis session (stateful, with memory) - expert: "data#oasis#analysis01" - expert: "synthesis#oasis#new#new" # Force new session # Type 3: Regular agent session (your existing bot) - expert: "Assistant#default" - expert: "Coder#my-project" # Type 4: External API (DeepSeek, GPT-4, etc.) # Note: api_key is auto-read from OPENCLAW_API_KEY env var; use "****" mask in YAML (never write plaintext keys) - expert: "deepseek#ext#ds1" # Type 4: OpenClaw External API (local Agent service) # api_key auto-resolved from OPENCLAW_API_KEY env var when set to "****" - expert: "coder#ext#oc1" api_url: "http://127.0.0.1:23001/v1/chat/completions" api_key: "****" # Masked — real key read from OPENCLAW_API_KEY env var at runtime model: "agent:main:test1" # agent:<agent_name>:<session>, session auto-created if not exists # Parallel execution - parallel: - expert: "creative#temp#1" instruction: "Analyze from innovation perspective" - expert: "critical#temp#2" instruction: "Analyze from risk perspective" # All experts speak + manual injection - all_experts: true - manual: author: "Moderator" content: "Please focus on feasibility"
When the workflow has fan-in (a node has multiple predecessors) or fan-out (a node has multiple successors), use DAG mode with id and depends_on fields. The engine maximizes parallelism — each node starts as soon as all its dependencies are satisfied. DAG YAML Example: version: 1 repeat: false plan: - id: research expert: "creative#temp#1" # Root — starts immediately - id: analysis expert: "critical#temp#1" # Root — runs in PARALLEL with research - id: synthesis expert: "synthesis#temp#1" depends_on: [research, analysis] # Fan-in: waits for BOTH to complete - id: review expert: "data#temp#1" depends_on: [synthesis] # Runs after synthesis DAG Rules: Every step must have a unique id field. depends_on is a list of step ids that must complete before this step starts. Omit for root nodes. The graph must be acyclic (no circular dependencies). Steps with no dependency relationship run in parallel automatically. The visual Canvas auto-detects fan-in/fan-out and generates DAG format. manual steps can also have id/depends_on.
The OASIS Server (port 51202) can be used independently of the Agent main service. External scripts, other services, or manual curl can directly operate all OASIS features without going through MCP tools or Agent conversations. Independent Use Scenarios: Initiate multi-expert discussions/executions from external scripts Debug workflow orchestration Integrate OASIS as a microservice into other systems Manage experts, sessions, workflows, and other resources Prerequisites: OASIS service is running (bash selfskill/scripts/run.sh start starts all services simultaneously) All endpoints use user_id parameter for user isolation (no Authorization header needed) API Overview: FunctionMethodPathList expertsGET/experts?user_id=xxxCreate custom expertPOST/experts/userUpdate/delete custom expertPUT/DELETE/experts/user/{tag}List oasis sessionsGET/sessions/oasis?user_id=xxxSave workflowPOST/workflowsList workflowsGET/workflows?user_id=xxxYAML LayoutPOST/layouts/from-yamlCreate discussion/executionPOST/topicsView discussion detailsGET/topics/{topic_id}?user_id=xxxGet conclusion (blocking)GET/topics/{topic_id}/conclusion?user_id=xxx&timeout=300SSE real-time streamGET/topics/{topic_id}/stream?user_id=xxxCancel discussionDELETE/topics/{topic_id}?user_id=xxxList all topicsGET/topics?user_id=xxx These endpoints share the same backend implementation as MCP tools, ensuring consistent behavior.
POST http://127.0.0.1:51202/topics {"question":"Discussion topic","user_id":"system","max_rounds":3,"discussion":true,"schedule_file":"...","schedule_yaml":"...","callback_url":"http://127.0.0.1:51200/system_trigger","callback_session_id":"my-session"} Prefer using schedule_yaml to avoid repeated YAML input; this is the absolute path to the YAML workflow file, usually under /XXXXX/TeamClaw/data/user_files/username.
The OASIS Server (port 51202), in addition to being called by MCP tools, also supports direct curl operations for external scripts or debugging. All endpoints use user_id parameter for user isolation. 1. Expert Management # List all experts (public + user custom) curl 'http://127.0.0.1:51202/experts?user_id=xinyuan' # Create custom expert curl -X POST 'http://127.0.0.1:51202/experts/user' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","name":"Product Manager","tag":"pm","persona":"You are an experienced product manager skilled in requirements analysis and product planning","temperature":0.7}' # Update custom expert curl -X PUT 'http://127.0.0.1:51202/experts/user/pm' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","persona":"Updated expert description"}' # Delete custom expert curl -X DELETE 'http://127.0.0.1:51202/experts/user/pm?user_id=xinyuan' 2. Session Management # List OASIS-managed expert sessions (sessions containing #oasis#) curl 'http://127.0.0.1:51202/sessions/oasis?user_id=xinyuan' 3. Workflow Management # List user's saved workflows curl 'http://127.0.0.1:51202/workflows?user_id=xinyuan' # Save workflow (auto-generate layout) curl -X POST 'http://127.0.0.1:51202/workflows' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","name":"trio_discussion","schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","description":"Trio discussion","save_layout":true}' 4. Layout Generation # Generate layout from YAML curl -X POST 'http://127.0.0.1:51202/layouts/from-yaml' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","yaml_source":"version:1\nplan:\n - expert: \"creative#temp#1\"","layout_name":"trio_layout"}' 5. Discussion/Execution # Create discussion topic (synchronous, wait for conclusion) curl -X POST 'http://127.0.0.1:51202/topics' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","question":"Discussion topic","max_rounds":3,"schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","discussion":true}' # Create discussion topic (async, returns topic_id) curl -X POST 'http://127.0.0.1:51202/topics' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","question":"Discussion topic","max_rounds":3,"schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","discussion":true,"callback_url":"http://127.0.0.1:51200/system_trigger","callback_session_id":"my-session"}' # View discussion details curl 'http://127.0.0.1:51202/topics/{topic_id}?user_id=xinyuan' # Get discussion conclusion (blocking wait) curl 'http://127.0.0.1:51202/topics/{topic_id}/conclusion?user_id=xinyuan&timeout=300' # Cancel discussion curl -X DELETE 'http://127.0.0.1:51202/topics/{topic_id}?user_id=xinyuan' # List all discussion topics curl 'http://127.0.0.1:51202/topics?user_id=xinyuan' 6. Real-time Stream # SSE real-time update stream (discussion mode) curl 'http://127.0.0.1:51202/topics/{topic_id}/stream?user_id=xinyuan' Storage Locations: Workflows (YAML): data/user_files/{user}/oasis/yaml/{file}.yaml (canvas layouts are converted from YAML in real-time, no longer stored as separate layout JSON) User custom experts: data/oasis_user_experts/{user}.json Discussion records: data/oasis_topics/{user}/{topic_id}.json Note: These endpoints share the same backend implementation as MCP tools list_oasis_experts, add_oasis_expert, update_oasis_expert, delete_oasis_expert, list_oasis_sessions, set_oasis_workflow, list_oasis_workflows, yaml_to_layout, post_to_oasis, check_oasis_discussion, cancel_oasis_discussion, list_oasis_topics, ensuring consistent behavior.
Below is an actual running configuration example (sensitive info redacted): bash selfskill/scripts/run.sh configure --init bash selfskill/scripts/run.sh configure --batch \ LLM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx4c74 \ LLM_BASE_URL=https://deepseek.com \ LLM_MODEL=deepseek-chat \ LLM_VISION_SUPPORT=true \ TTS_MODEL=gemini-2.5-flash-preview-tts \ TTS_VOICE=charon \ PORT_AGENT=51200 \ PORT_SCHEDULER=51201 \ PORT_OASIS=51202 \ PORT_FRONTEND=51209 \ PORT_BARK=58010 \ OPENCLAW_API_URL=http://127.0.0.1:18789/v1/chat/completions \ OPENAI_STANDARD_MODE=false bash selfskill/scripts/run.sh add-user system <your-password> Output after configure --show: PORT_SCHEDULER=51201 PORT_AGENT=51200 PORT_FRONTEND=51209 PORT_OASIS=51202 OASIS_BASE_URL=http://127.0.0.1:51202 PORT_BARK=58010 INTERNAL_TOKEN=f1aa****57e7 # Auto-generated, do not leak LLM_API_KEY=sk-7****4c74 LLM_BASE_URL=https://deepseek.com LLM_MODEL=deepseek-chat LLM_VISION_SUPPORT=true TTS_MODEL=gemini-2.5-flash-preview-tts TTS_VOICE=charon OPENAI_STANDARD_MODE=false Note: INTERNAL_TOKEN is auto-generated on first startup; PUBLIC_DOMAIN / BARK_PUBLIC_URL are auto-written by the tunnel; no manual configuration needed.
cd /home/avalon/TeamClaw # First-time configuration bash selfskill/scripts/run.sh setup bash selfskill/scripts/run.sh configure --init bash selfskill/scripts/run.sh configure --batch LLM_API_KEY=sk-xxx LLM_BASE_URL=https://api.deepseek.com LLM_MODEL=deepseek-chat bash selfskill/scripts/run.sh add-user system MyPass123 # Start bash selfskill/scripts/run.sh start # Call API curl -X POST http://127.0.0.1:51200/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer system:MyPass123" \ -d '{"model":"mini-timebot","messages":[{"role":"user","content":"Hello"}],"stream":false,"session_id":"default"}' # Stop bash selfskill/scripts/run.sh stop
All skill scripts are in selfskill/scripts/, not affecting original project functionality Process management via PID files, start supports idempotent calls Do not leak INTERNAL_TOKEN Log path: logs/launcher.log Be sure to tell users how to open the visual interface and how to log in to the account for discussions The OpenClaw session file path can be inferred from the example path and current skill path. If you are an OpenClaw agent, be sure to complete the full OpenClaw-related configuration
selfskill/scripts/ run.sh **** selfskill/scripts/ run.sh # start/stop/status/setup/add-user/configure adduser.py # configure.py # .env
# bash selfskill/scripts/run.sh setup # bash selfskill/scripts/run.sh configure --init # LLM bash selfskill/scripts/run.sh configure --batch \ LLM_API_KEY=sk-your-key \ LLM_BASE_URL=https://api.deepseek.com \ LLM_MODEL=deepseek-chat # bash selfskill/scripts/run.sh add-user system MySecurePass123
bash selfskill/scripts/run.sh start # bash selfskill/scripts/run.sh status # bash selfskill/scripts/run.sh stop #
# bash selfskill/scripts/run.sh configure --show # bash selfskill/scripts/run.sh configure PORT_AGENT 51200 # bash selfskill/scripts/run.sh configure --batch TTS_MODEL=gemini-2.5-flash-preview-tts TTS_VOICE=charon
Authorization: Bearer <user_id>:<password>
Authorization: Bearer <INTERNAL_TOKEN>:<user_id> INTERNAL_TOKEN configure --show-raw
Base URL: http://127.0.0.1:51200
POST /v1/chat/completions Authorization: Bearer <token> {"model":"mini-timebot","messages":[{"role":"user","content":""}],"stream":true,"session_id":"my-session"}
📖 专注 OASIS 使用的独立指引文档(尤其是 OpenClaw agent 集成): OASIS_GUIDE.md "" ** vs "/""/("> - ** vs detach
"" discussion=false OASIS ////
detach=true topic_id/ check_oasis_discussion(topic_id) detach=false post_to_oasis /
** = + ** discussion=true detach=true " / / / " " SOP / / " " / / / " /
+ ()discussion=true, detach=truetopic_id//+discussion=true, detach=false/+discussion=false, detach=truetopic_id/+discussion=false, detach=false//
OASIS **** schedule_yaml name #Name1Direct LLMtag#temp#NExpertAgentLLM LLM + tag /N2Oasis Sessiontag#oasis#idSessionExpert (oasis)OASIS bot sessiontag system promptBot id ID session3Regular AgentTitle#session_idSessionExpert (regular)agent session #default``Coder#my-projectsession system prompt agent bot session4External APItag#ext#idExternalExpertOpenAI APIDeepSeekGPT-4Ollama TeamClaw agent YAML headers
tag#temp#N ExpertAgent (, LLM) tag#oasis#<id> SessionExpert (oasis, bot) Title#session_id SessionExpert (agent session) tag#ext#<id> ExternalExpert (APIopenclaw agent) session #new ** session**ID UUID creative#oasis#abc#new #new ID UUID #my-session#new **Oasis session ** Oasis session session_id #oasis# creative#oasis#ab12cd34 Agent checkpoint DBdata/agent_memory.db tag
version: 1 plan: # Type 1: Direct LLM - expert: "creative#temp#1" - expert: "critical#temp#2" # Type 2: Oasis session - expert: "data#oasis#analysis01" - expert: "synthesis#oasis#new#new" # session # Type 3: Regular agent sessionbot - expert: "#default" - expert: "Coder#my-project" # Type 4: External APIDeepSeek, GPT-4 # 注意:api_key 自动从 OPENCLAW_API_KEY 环境变量读取;YAML 中使用 "****" 掩码(切勿写入明文密钥) - expert: "deepseek#ext#ds1" # Type 4: OpenClaw External API Agent # api_key 从 OPENCLAW_API_KEY 环境变量自动读取,YAML 中使用 "****" 掩码 - expert: "coder#ext#oc1" api_url: "http://127.0.0.1:23001/v1/chat/completions" api_key: "****" # 掩码 — 运行时自动从 OPENCLAW_API_KEY 环境变量读取真实密钥 model: "agent:main:test1" # agent:<agent_name>:<session>session # - parallel: - expert: "creative#temp#1" instruction: "" - expert: "critical#temp#2" instruction: "" # + - all_experts: true - manual: author: "" content: ""
当工作流存在 fan-in(一个节点有多个前驱)或 fan-out(一个节点有多个后继)时,使用带 id 和 depends_on 字段的 DAG 模式。引擎会最大化并行——每个节点在所有依赖完成后立即启动,无需等待无关节点。 DAG YAML 示例: version: 1 repeat: false plan: - id: research expert: "creative#temp#1" # 根节点 — 立即启动 - id: analysis expert: "critical#temp#1" # 根节点 — 与 research 并行运行 - id: synthesis expert: "synthesis#temp#1" depends_on: [research, analysis] # Fan-in:等待两者都完成 - id: review expert: "data#temp#1" depends_on: [synthesis] # synthesis 完成后执行 DAG 规则: 每个步骤必须有唯一的 id 字段。 depends_on 是该步骤启动前必须完成的步骤 id 列表。根节点不需要此字段。 图必须无环(禁止循环依赖)。 没有依赖关系的步骤自动并行执行。 可视化画布自动检测 fan-in/fan-out 并生成 DAG 格式。 manual 步骤同样支持 id/depends_on。
OASIS Server 51202** Agent ** curl OASIS MCP Agent / workflow OASIS workflow OASIS bash selfskill/scripts/run.sh start user_id Authorization header **API ** GET/experts?user_id=xxxPOST/experts/user/PUT/DELETE/experts/user/{tag}oasis sessionsGET/sessions/oasis?user_id=xxxworkflowPOST/workflowsworkflowsGET/workflows?user_id=xxxYAML LayoutPOST/layouts/from-yaml/POST/topicsGET/topics/{topic_id}?user_id=xxxGET/topics/{topic_id}/conclusion?user_id=xxx&timeout=300SSEGET/topics/{topic_id}/stream?user_id=xxxDELETE/topics/{topic_id}?user_id=xxxGET/topics?user_id=xxx MCP
POST http://127.0.0.1:51202/topics {"question":"","user_id":"system","max_rounds":3,"discussion":true,"schedule_file":"...","schedule_yaml":"...","callback_url":"http://127.0.0.1:51200/system_trigger","callback_session_id":"my-session"} schedule_yamlyamlyaml/XXXXX/TeamClaw/data/user_files/username
OASIS 51202 MCP curl user_id 1. # + curl 'http://127.0.0.1:51202/experts?user_id=xinyuan' # curl -X POST 'http://127.0.0.1:51202/experts/user' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","name":"","tag":"pm","persona":"","temperature":0.7}' # curl -X PUT 'http://127.0.0.1:51202/experts/user/pm' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","persona":""}' # curl -X DELETE 'http://127.0.0.1:51202/experts/user/pm?user_id=xinyuan' 2. # OASIS #oasis# session curl 'http://127.0.0.1:51202/sessions/oasis?user_id=xinyuan' 3. Workflow # workflows curl 'http://127.0.0.1:51202/workflows?user_id=xinyuan' # workflow layout curl -X POST 'http://127.0.0.1:51202/workflows' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","name":"trio_discussion","schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","description":"","save_layout":true}' 4. Layout # YAML layout curl -X POST 'http://127.0.0.1:51202/layouts/from-yaml' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","yaml_source":"version:1\nplan:\n - expert: \"creative#temp#1\"","layout_name":"trio_layout"}' 5. / # curl -X POST 'http://127.0.0.1:51202/topics' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","question":"","max_rounds":3,"schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","discussion":true}' # topic_id curl -X POST 'http://127.0.0.1:51202/topics' \ -H 'Content-Type: application/json' \ -d '{"user_id":"xinyuan","question":"","max_rounds":3,"schedule_yaml":"version:1\nplan:\n - expert: \"creative#temp#1\"","discussion":true,"callback_url":"http://127.0.0.1:51200/system_trigger","callback_session_id":"my-session"}' # curl 'http://127.0.0.1:51202/topics/{topic_id}?user_id=xinyuan' # curl 'http://127.0.0.1:51202/topics/{topic_id}/conclusion?user_id=xinyuan&timeout=300' # curl -X DELETE 'http://127.0.0.1:51202/topics/{topic_id}?user_id=xinyuan' # curl 'http://127.0.0.1:51202/topics?user_id=xinyuan' 6. # SSE curl 'http://127.0.0.1:51202/topics/{topic_id}/stream?user_id=xinyuan' Workflows (YAML): data/user_files/{user}/oasis/yaml/{file}.yaml YAML layout JSON : data/oasis_user_experts/{user}.json : data/oasis_topics/{user}/{topic_id}.json **** MCP list_oasis_experts``add_oasis_expert``update_oasis_expert``delete_oasis_expert``list_oasis_sessions``set_oasis_workflow``list_oasis_workflows``yaml_to_layout``post_to_oasis``check_oasis_discussion``cancel_oasis_discussion``list_oasis_topics
Before starting TeamClaw for the first time, the following environment variables must be configured. Without them the service will not function correctly.
⚠️ LLM API ≠ OpenClaw API — They are two completely separate sets of credentials! LLM_API_KEY / LLM_BASE_URL / LLM_MODEL → Your LLM provider (DeepSeek, OpenAI, Google, etc.). Used for the built-in Agent's conversations and OASIS experts. OPENCLAW_API_URL / OPENCLAW_API_KEY → Your local OpenClaw service endpoint. Used only for orchestrating OpenClaw agents on the visual Canvas. Do NOT mix them up. They point to different services, use different keys, and serve different purposes. VariableDescriptionExampleLLM_API_KEYYour LLM provider's API key. This is mandatory.sk-xxxxxxxxxxxxxxxxLLM_BASE_URLBase URL of your LLM provider's API endpoint.https://api.deepseek.comLLM_MODELThe model name to use for conversations.deepseek-chat / gpt-4o / gemini-2.5-flash bash selfskill/scripts/run.sh configure --batch \ LLM_API_KEY=sk-your-key \ LLM_BASE_URL=https://api.deepseek.com \ LLM_MODEL=deepseek-chat
⚠️ Reminder: OpenClaw API is NOT the same as LLM API above! The OPENCLAW_* variables below point to your locally running OpenClaw service, not to an external LLM provider. They have completely different URLs, keys, and purposes. These variables are required if you intend to use the OASIS visual Canvas to orchestrate OpenClaw agents: VariableDescriptionExampleOPENCLAW_SESSIONS_FILEAbsolute path to the OpenClaw sessions.json file. Used to discover existing OpenClaw agent sessions and make them available for drag-and-drop orchestration on the visual Canvas. The frontend orchestration panel will NOT load OpenClaw sessions if this is not set./projects/.moltbot/agents/main/sessions/sessions.jsonOPENCLAW_API_URLThe OpenClaw backend API endpoint. This changes with the gateway port. You MUST first enable OpenClaw's OpenAI-compatible API interface before configuring this. Include the full path with /v1/chat/completions.http://127.0.0.1:18789/v1/chat/completionsOPENCLAW_API_KEYThe API key for accessing OpenClaw via its OpenAI-compatible endpoint. Required if your OpenClaw instance has authentication enabled.your-openclaw-key Important: OPENCLAW_API_URL changes whenever the OpenClaw gateway port changes. Always verify the port is correct and that the OpenClaw OpenAI-compatible interface is enabled before starting TeamClaw. bash selfskill/scripts/run.sh configure --batch \ OPENCLAW_SESSIONS_FILE=/projects/.moltbot/agents/main/sessions/sessions.json \ OPENCLAW_API_URL=http://127.0.0.1:18789/v1/chat/completions \ OPENCLAW_API_KEY=your-openclaw-key-if-needed
To expose the Web UI to the public internet for remote visual workflow programming (e.g., from a mobile phone): The tunnel.py script will automatically write PUBLIC_DOMAIN and BARK_PUBLIC_URL into .env when a Cloudflare Tunnel is established. No manual configuration is needed — just run the tunnel script and the frontend becomes accessible via HTTPS on the public domain. Non-blocking start: tunnel.py blocks the terminal by default (main thread joins tunnel threads). To start it without blocking the agent or terminal, run it in the background: nohup python scripts/tunnel.py > logs/tunnel.log 2>&1 & sleep 30 # Wait for tunnels to be established and PUBLIC_DOMAIN written to .env
首次启动 TeamClaw 之前,以下环境变量必须配置完毕,否则服务无法正常运行。
⚠️ LLM API ≠ OpenClaw API —— 这是两组完全不同的配置! LLM_API_KEY / LLM_BASE_URL / LLM_MODEL → 你的 LLM 服务商(DeepSeek、OpenAI、Google 等)。用于内置 Agent 对话和 OASIS 专家调用。 OPENCLAW_API_URL / OPENCLAW_API_KEY → 你的 本地 OpenClaw 服务 端点。仅用于在可视化画布上编排 OpenClaw Agent。 切勿混淆! 它们指向不同的服务,使用不同的密钥,用途完全不同。 变量说明示例LLM_API_KEYLLM 服务商的 API 密钥,必填项。sk-xxxxxxxxxxxxxxxxLLM_BASE_URLLLM 服务商的 API 基础地址。https://api.deepseek.comLLM_MODEL使用的模型名称。deepseek-chat / gpt-4o / gemini-2.5-flash bash selfskill/scripts/run.sh configure --batch \ LLM_API_KEY=sk-your-key \ LLM_BASE_URL=https://api.deepseek.com \ LLM_MODEL=deepseek-chat
⚠️ 再次提醒:OpenClaw API 和上面的 LLM API 不是同一个东西! 下面的 OPENCLAW_* 变量指向你 本地运行的 OpenClaw 服务,而非外部 LLM 服务商。它们的 URL、密钥和用途完全不同。 如果你需要使用 OASIS 可视化画布来编排 OpenClaw Agent,以下变量必须配置: 变量说明示例OPENCLAW_SESSIONS_FILEOpenClaw sessions.json 文件的绝对路径。用于获取已有的 OpenClaw Agent session 号,使其可以在可视化画布中被拖拽使用。未配置此项时前端编排面板将无法加载 OpenClaw sessions。/projects/.moltbot/agents/main/sessions/sessions.jsonOPENCLAW_API_URLOpenClaw 后端 API 地址。该地址随 gateway 端口变化而变化。必须先开启 OpenClaw 的 OpenAI 兼容接口,填写包含 /v1/chat/completions 的完整路径。http://127.0.0.1:18789/v1/chat/completionsOPENCLAW_API_KEY通过 OpenAI 兼容接口访问 OpenClaw 时使用的 API Key。如果你的 OpenClaw 实例启用了鉴权,则此项必填。your-openclaw-key 重要提醒:OPENCLAW_API_URL 会随着 OpenClaw gateway 端口的改变而改变,启动前请务必确认端口正确,且 OpenClaw 的 OpenAI 兼容接口已开启。 bash selfskill/scripts/run.sh configure --batch \ OPENCLAW_SESSIONS_FILE=/projects/.moltbot/agents/main/sessions/sessions.json \ OPENCLAW_API_URL=http://127.0.0.1:18789/v1/chat/completions \ OPENCLAW_API_KEY=your-openclaw-key-if-needed
如需将前端 Web UI 通过公网 HTTPS 安全暴露,以便在手机或其他远程设备上进行可视化多 Agent 工作流编排: 运行 tunnel.py 脚本后,Cloudflare Tunnel 会自动建立,并将 PUBLIC_DOMAIN 和 BARK_PUBLIC_URL 写入 .env。 无需手动配置,启动隧道后即可通过 HTTPS 公网域名访问前端。 非阻塞启动:tunnel.py 默认会阻塞终端(主线程 join 等待隧道线程)。如需避免阻塞 Agent 或终端,请后台启动: nohup python scripts/tunnel.py > logs/tunnel.log 2>&1 & sleep 30 # 等待隧道建立完成,PUBLIC_DOMAIN 写入 .env
Data access, storage, extraction, analysis, reporting, and insight generation.
Largest current source with strong distribution and engagement signals.