⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
openclaw-smart-agent
Use when orchestrating multiple OpenClaw sub-agents on one machine, especially when the user wants to create agents from role descriptions, publish tasks by required skills, inspect agent health and load, or route work through the Smart Agent runtime.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
OpenClaw Smart Agent
OpenClaw Smart Agent is a GitHub-publishable, skill-first bundle for single-machine multi-agent orchestration in OpenClaw. It combines:
- a Python runtime support layer for identity enhancement, registration, routing, heartbeat-backed health snapshots, and task recovery
- an OpenClaw plugin that exposes the runtime as agent tools
- a workspace skill that teaches the host agent when and how to use those tools
- an optional OpenClaw
llm-taskfallback that can synthesize a profile when no local identity template matches
See OpenClaw integration guide for the local setup path, verification flow, and plugin installation options. See template guide for adding or modifying identity templates. See 中文手册:未命中模板且不使用 OpenClaw LLM 的解决方案 for a template-only path when you want deterministic identity matching without model-based fallback.
What v1 includes
- Zero-configuration identity enhancement from YAML templates
- Optional
openclaw_llmfallback for unmatched identities through OpenClaw Gatewayllm-task - SQLite-backed agent registry and task persistence
- Smart scoring router using skills, load, and priority weighting
- Heartbeat-backed health snapshots for timeout, CPU or memory pressure, and repeated errors
- Recovery flow that requeues work when an agent becomes unhealthy
- REST API plus CLI for local operation
What v1 does not include
- Cross-machine distributed scheduling
- Built-in LLM inference
- Full process supervisor or container orchestration
Architecture
flowchart LR
OA["OpenClaw Host"] --> PL["Plugin Tools"]
PL --> API["FastAPI Runtime"]
API --> ID["Identity Enhancer"]
API --> RG["Agent Registry"]
API --> RT["Task Router"]
API --> HM["Health Monitor"]
HM --> RC["Recovery Manager"]
RG --> DB["SQLite State Store"]
RT --> DB
RC --> DB
Repository layout
src/openclaw_smart_agent/: Python runtime packageplugin/: OpenClaw plugin package and TypeScript entrypointskills/openclaw-smart-agent/: workspace skill bundleconfig/config.example.yaml: sample runtime configscripts/install.sh: bootstrap script for source installs
Install from GitHub
Runtime only
Use this when you want the Python runtime and CLI:
python -m pip install "git+https://github.com/xinlingzhifei/openclaw-smart-agent.git"
openclaw-smart-agent init-config --output config/config.yaml
openclaw-smart-agent serve --config config/config.yaml
Full bundle from a cloned repository
Use this when you also want the workspace skill and plugin package that live in the repository:
git clone https://github.com/xinlingzhifei/openclaw-smart-agent.git
cd openclaw-smart-agent
./scripts/install.sh
The install script copies the workspace skill into ${OPENCLAW_WORKSPACE:-~/.openclaw/workspace}/skills/openclaw-smart-agent.
After you install the plugin and restart OpenClaw Gateway, the plugin will auto-start the runtime by default. Manual openclaw-smart-agent serve --config config/config.yaml is still useful for local debugging.
For the full skill-to-plugin-to-runtime verification path, including smart_agent_heartbeat, see docs/openclaw-integration.md.
You can also run python scripts/verify_runtime.py after starting the runtime to exercise the minimal API flow.
OpenClaw integration
-
Publish the plugin package from
plugin/to npm or ClawHub, or install it from the localplugin/directory during development. -
Install that plugin in OpenClaw.
-
Restart OpenClaw so it picks up the workspace skill from
skills/openclaw-smart-agent/. -
The plugin will probe
http://127.0.0.1:8787and auto-startopenclaw-smart-agent servewhen the runtime is not already running.
The plugin talks to the runtime through http://127.0.0.1:8787 by default. Override it with OPENCLAW_SMART_AGENT_BASE_URL.
Note: if you run the Smart Agent runtime on a different host or port, set OPENCLAW_SMART_AGENT_BASE_URL in the environment that starts OpenClaw so the plugin can reach the runtime.
Optional plugin config:
autoStartRuntime: disable this if you want to manage the runtime yourselfruntimeConfigPath: point the auto-started runtime at a specific config file
OpenClaw LLM identity fallback
Template matching stays first. If no YAML template matches, you can optionally ask OpenClaw itself to generate the profile through the official llm-task tool.
- Enable and allowlist
llm-taskin OpenClaw. - Turn on
identity.fallback_strategy: openclaw_llminconfig/config.yaml. - Point the runtime at your OpenClaw Gateway URL and bearer token.
Note: defaultAuthProfileId: "main" is only a template value. If your real OpenClaw auth profile id is different, replace it in both the OpenClaw llm-task config and the Smart Agent runtime config.
See docs/openclaw-integration.md for the required OpenClaw config and an example runtime config block.
API quick start
POST /api/v1/agents/createPOST /api/v1/agents/heartbeatGET /api/v1/agents/statusPOST /api/v1/tasks/publish
POST /api/v1/agents/create uses local templates first and can fall back to openclaw_llm when configured.
Example:
curl -X POST http://127.0.0.1:8787/api/v1/agents/create \
-H "content-type: application/json" \
-d '{"identity":"Python开发"}'
Development
python -m pip install -e ".[dev]"
python -m pytest tests -q
npm --prefix plugin install --no-audit --no-fund
npm --prefix plugin run check
Compatibility notes
- Verified in this repository against Python 3.14 and Node 24.
- The current OpenClaw plugin entry follows the official
openclaw.plugin.jsonplusopenclaw.extensionspackage metadata model. - The PRD mentioned
skill.json, but current OpenClaw documentation usesSKILL.mdfor workspace skills andopenclaw.plugin.jsonfor plugins, so this repository follows the current upstream format.
// HOW IT'S BUILT
KEY FILES