A comprehensive runtime system for AI agents that manages tool lifecycles, permissions, and context optimization.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-runtime
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-runtime using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Agent Runtime is a sophisticated system designed to orchestrate the lifecycle of intelligent agents. It provides a robust framework for integrating tool registries, enforcing permission policies, and intercepting tool execution via hooks. By leveraging this tool within the ecosystem of Openclaw Skills, developers can build specialized sub-agents tailored for tasks like code exploration, strategic planning, or automated verification, all while maintaining strict control over token usage and context compression.
To integrate this into your environment, ensure the core runtime script is accessible within your project structure. Using Openclaw Skills allows for seamless script management.
# Navigate to your project directory
cd your-project-path
# Ensure the runtime script is located in the scripts folder
ls ./scripts/agent-runtime.mjs
Initialize the runtime in your JavaScript environment:
import { AgentRuntime } from './scripts/agent-runtime.mjs';
const agent = new AgentRuntime({
agentType: 'explore',
maxTokens: 100000
});
The Agent Runtime organizes data through a structured pipeline to ensure consistency across Openclaw Skills implementations:
| Component | Responsibility | Data Type |
|---|---|---|
| ToolRegistry | Tool registration, search, and routing | Object Map |
| PermissionPolicy | Permission level control and security | Policy Config |
| HookRunner | Intercepting PreToolUse and PostToolUse | Middleware |
| SessionCompactor | Context and history compression | String/Buffer |
| UsageTracker | Token and usage statistics tracking | JSON Analytics |
Loading
An automated content curation tool that extracts the latest high-value posts from Jike topics and transforms them into structured Markdown digests.

A comprehensive token monitoring and budget management system designed to track AI agent consumption and operational costs.

A sophisticated tool discovery and registration system featuring token-based routing, granular permissions, and sub-agent whitelisting.

A powerful tool interception framework to inject custom logic before and after AI tool execution.

A command-line tool for managing MyAnimeList watchlists and receiving automated notifications through Openclaw Skills.

A diagnostic utility for verifying the publishing lifecycle and CLI functionality of AI agent skills.








































