yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
Jetson Orin NX Developer Kit📖
01.Get started
  • 01.Learning route
  • 02.Quick start
  • 03.System Update Notes
  • 04.Disabling automatic updates and troubleshooting issues
02.Jetson basic course
  • 01.Jetson board introduction
  • 02.Write Jetson original system
  • 03.Installing Jetson environment
  • 04.Backup SSD system
  • 05.Restore initial image system
  • 06.Upgrade to SUPER version (Optional)
  • 07.Write SUPER boot (Must read)
  • 08.SSD expansion
  • 09.Jetpack old system upgraded to Yahboom SUPER factory system
  • 10.Write the system onto your own SSD
03.Basic setting course
  • 01.Basic knowledge
  • 02.Network configuration
  • 03.SSH remote login
  • 04.VNC remote control
  • 05.RDP remote control
  • 06.Remote file transfer
  • 07.Jtop tool
  • 08.Exchange space expansion
  • 09.Use VSCode
  • 10.Use VMware
  • 11.Modify screen resolution
04.GPIO control course
  • 01.GPIO description
  • 02.GPIO library installation
  • 03.GPIO reading
  • 04.GPIO output
  • 05.Serial communication
  • 06.I2C communication
05.Vision basic course
  • 01.CSI camera preview
  • 02.USB camera preview
  • 03.Use Jupyter Lab
  • 04.Use JetCam
06.OpenCV basic course
  • 01.Image reading
  • 02.Image saving
  • 03.Image modification
  • 04.Image scaling
  • 05.Image cropping
  • 06.Image translation
  • 07.Image mirroring
  • 08.Image grayscale conversion
  • 09.Image binarization
  • 10.Image edge detection
  • 11.Add line segments
  • 12.Add rectangles
  • 13.Add circular shape
  • 14.Add ellipses
  • 15.Add polygons
  • 16.Add Text
  • 17.Preview USB camera image
  • 18.Preview CSI camera image
07.Vision advanced course
01.Environment construction
  • 01.TensorFlow
  • 02.PyTorch
  • 03.Torchvision
02.DeepStream development
  • 01.DeepStream environment
  • 02.License plate detection and recognition
  • 03.Parallel multi-model inference
  • 04.Object embedding vector generation
  • 05.Pose recognition
  • 06.NV optical flow anomaly detection
  • 07.Single-view 3D tracking
  • 08.Multi-view 3D tracking
03.NVIDIA TAO toolkit application
  • 01.Traffic scene object detection
  • 02.Person object detection
  • 03.Vehicle brand classification
  • 04.Vehicle model classification
  • 05.License plate detection and recognition
  • 06.Person semantic segmentation
  • 07.Optical character detection and recognition
  • 08.Retail product detection and recognition
  • 09.Person feature extraction and matching (ReID)
  • 10.Person action and pose classification
  • 11.Transformer-based person detection
  • 12.3D human skeleton detection
  • 13.LiDAR 3D point cloud detection
04.YOLO11 development
  • 01.YOLO environment construction
  • 02.CLI use
  • 03.Object detection
  • 04.Instance segmentation
  • 05.Pose estimation
  • 06.Image classification
  • 07.Oriented object detection
  • 08.Model conversion
  • 09.Dataset annotation
  • 10.Model training conversion
  • 11.Model prediction
05.YOLO26 development
  • 01.YOLO environment construction
  • 02.CLI use
  • 03.Object detection
  • 04.Instance segmentation
  • 05.Pose estimation
  • 06.Image classification
  • 07.Oriented object detection
  • 08.Model conversion
  • 09.Dataset annotation
  • 10.Model training conversion
  • 11.Model prediction
06.Mediapipe development
  • 01.Mediapipe environment
  • 02.Hand detection
  • 03.Face detection
  • 04.Face effects
  • 05.3D object recognition
  • 06.Virtual brush
  • 07.Gesture recognition
  • 08.Finger control
  • 09.Posture estimation
  • 10.Face mask
  • 11.Overall detection
  • 12.Background removal(Human)
07.QR code recognition
  • QR code recognition
08.Docker basic course
  • 01.Docker introduction
  • 02.Docker installation
  • 03.Docker command
  • 04.Docker usage
  • 05.Docker interaction
09.ROS2-Jazzy
01.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Jazzy
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
02.ROS2 vision course
  • 01.Camera preview (USB)
  • 02.Camera preview (CSI)
  • 03.Camera calibration (USB)
  • 04.Camera calibration (CSI)
  • 05.AR vision (USB)
  • 06.AR vision (CSI)
10.Large model basic course
01.Offline large model
  • 01.AI large model environment deployment
  • 02.Install large model dialogue platform
  • 03.Meta AI - Llama model
  • 04.Alibaba Cloud - Qwen model
  • 05.Microsoft - Phi-4-mini model
  • 06.DeepSeek - DeepSeek model
  • 07.Alibaba Cloud - Qwen-VL visual multimodal large model
  • 08.Google - Gemma visual multimodal large model
  • 09.Llava visual multimodal large model
  • 10.MiniCPM-V visual multimodal large model
  • 11.High-quality vision-language grounding (LocateAnything)
02.Online large model
  • 01.Tongyi Qianwen large model
  • 02.OpenRouter large model API aggregation platform
11.Large model application practice
01.Voice interaction application
  • 0.Voice interaction hardware connection (Must read)
  • 1.Speech to text (ASR)
  • 2.Text to speech (TTS)
  • 3.AI large model voice interaction
  • 4.AI large model voice assistant
02.Multimodal large model application (Online_Offline large model + Text_Voice interaction)
  • 01.Multimodal visual understand application
  • 02.Multimodal text image application
  • 03.Multimodal video analysis application
  • 04.Multi module visual position application
  • 05.Multimodal table scanning application
  • 06.Multimodal autonomous agent application
12.NVIDIA Isaac ROS course
  • 01.Build Isaac ROS environment
  • 02.Deep segmentation
  • 03.DNN stereoscopic depth
  • 04.Free space segmentation
  • 05.Image distortion processing
  • 06.Image segmentation
  • 07.3D scene reconstruction and mapping
  • 08.Object detection
  • 09.3D attitude estimation
  • 10.Visual SLAM
13.OpenClaw deployment and basic usage
01.OpenClaw deployment and introduction
  • 01.Directly use the pre-configured environment (Recommended)
  • 02.OpenClaw Deployment
  • 03.OpenClaw WhatsApp Plugin Application
  • 04.OpenClaw WebChat Interaction
  • 05.OpenClaw TUI Interaction
  • 06.OpenClaw Tools Introduction
  • 07.OpenClawGate Gateway User Manual
  • 08.OpenClawHub Introduction (Skill Installation)
  • 09.OpenClaw Features Overview
02.OpenClaw basic application
  • 01.OpenClaw Application - File Management
  • 02.OpenClaw Application - Camera
  • 03.OpenClaw Application - Browser Control
  • 04.OpenClaw Application - Script Execution
  • 05.OpenClaw Application - AI Programming (Peripheral & GPIO Control)
  • 06.OpenClaw Application - Dedicated AI Assistant
  • 07.OpenClaw Web Search Capability Configuration
03.NVIDIA official Agent Skills application
  • 01.AI-assisted development with VS Code or Cursor
  • 02.Jetson device skills
  • 03.Jetson BSP custom agent skills
14.OpenClaw advanced development
01.Preparation Before Use
  • 01. Peripheral Hardware Configuration
  • 02. OpenClaw API-KEY Configuration
  • 03. OpenClaw Model Switching
  • 04. OpenClaw Prompts
  • 05. AI Voice Interaction Configuration
  • 06. Three Dialogue Configuration Tests
02.OpenClaw AI Programming Peripheral Control
  • 1. Servo Control
  • 2. RGB Strip
  • 3. OLED Display
  • 4. Temperature and Humidity Sensor
  • 5. Camera Application
  • 6. AI Script Peripheral Control
03.OpenClaw Peripheral Integration Applications
  • 1. Plant Care Assistant
  • 2. AI Calorie Estimation
  • 3.AI Rock Paper Scissors Game
  • 4.AI Pet
  • 5.AI Weather Station
  • 6.Temperature Humidity Dashboard
  • 7.Scheduled Tasks
Download
  • System_File
  • VMFile_BootFile
  • Code
  • 3D Model File
  • DataSheet
  • Manual
Download ZIP

Welcome to Jetson Orin NX Developer Kit repository

当製品の日本語版マニュアル資料は、こちらからご取得ください。

09.OpenClaw Features Overview

Plugins

Quick Start

A plugin is just a small code module that extends OpenClaw with additional capabilities (the commands, the tools and the Gateway RPCs). Most of the time, you use a plugin when you want a capability that is not built into the core of OpenClaw (or when you want to keep the optional capabilities out of the main installation). The quick path:

  1. Look at what is loaded:

openclaw plugins list
  1. Install an official plugin (for example: Voice Call):

xxxxxxxxxx
openclaw plugins install @openclaw/voice-call
  1. Restart the Gateway and then configure it under plugins.entries.<id>.config.

 

The Available Plugins (official)

  • Since 2026.1.15 Microsoft Teams is only offered as a plugin; if you use Teams, install @openclaw/msteams.

  • Memory (Core) — the bundled memory search plugin (enabled by default through plugins.slots.memory)

  • Memory (LanceDB) — the bundled long term memory plugin (the automatic recall/capture; set plugins.slots.memory = "memory-lancedb")

  • Voice Call — @openclaw/voice-call

  • Zalo Personal — @openclaw/zalouser

  • Matrix — @openclaw/matrix

  • Nostr — @openclaw/nostr

  • Zalo — @openclaw/zalo

  • Microsoft Teams — @openclaw/msteams

  • Google Antigravity OAuth (the provider authentication) — bundled as google-antigravity-auth (disabled by default)

  • Gemini CLI OAuth (the provider authentication) — bundled as google-gemini-cli-auth (disabled by default)

  • Qwen OAuth (the provider authentication) — bundled as qwen-portal-auth (disabled by default)

  • Copilot Proxy (the provider authentication) — the local VS Code Copilot Proxy bridge; it is different from the built in github-copilot device login (bundled, disabled by default)

The OpenClaw plugins are TypeScript modules that are loaded at runtime through jiti. The configuration validation does not execute the plugin code; it uses the plugin manifest and the JSON Schema. Refer to the plugin manifest. A plugin can register:

  • The Gateway RPC methods

  • The Gateway HTTP handlers

  • The agent tools

  • The CLI commands

  • The background services

  • The optional configuration validation

  • The Skills (by listing a skills directory in the plugin manifest)

  • The auto reply commands (executed without calling the AI agent)

The plugins run in the same process as the Gateway, so treat them as trusted code. The guide for writing the tools: the plugin agent tools.

The Runtime Helper

A plugin can access the selected core helper tools through api.runtime. For the telephony TTS:

xxxxxxxxxx
const result = await api.runtime.tts.textToSpeechTelephony({
  text: "Hello from OpenClaw",
  cfg: api.config,
});

The points to note:

  • It uses the core messages.tts configuration (OpenAI or ElevenLabs).

  • It returns a PCM audio buffer + the sample rate. The plugin has to resample/encode it for the provider.

  • The Edge TTS does not support the telephony.

The Discovery and the Priority

OpenClaw scans in the following order:

  1. The configuration paths

  • plugins.load.paths (a file or a directory)

  1. The workspace extensions

  • <workspace>/.openclaw/extensions/*.ts

  • <workspace>/.openclaw/extensions/*/index.ts

  1. The global extensions

  • ~/.openclaw/extensions/*.ts

  • ~/.openclaw/extensions/*/index.ts

  1. The bundled extensions (published together with OpenClaw, disabled by default)

  • <openclaw>/extensions/*

The bundled plugins have to be enabled explicitly through plugins.entries.<id>.enabled or openclaw plugins enable <id>. The installed plugins are enabled by default, but they can be disabled in the same way. Every plugin has to contain an openclaw.plugin.json file in its root directory. If the path points to a file, the root of the plugin is the directory of the file and it has to contain the manifest. If several plugins resolve to the same id, the first match in the order above wins and the copy with the lower priority is ignored.

The Package Collections

A plugin directory can contain a package.json with openclaw.extensions:

xxxxxxxxxx
{
  "name": "my-pack",
  "openclaw": {
    "extensions": ["./src/safety.ts", "./src/tools.ts"]
  }
}

Each entry becomes a plugin. If the package lists several extensions, the plugin id becomes name/<fileBase>. If your plugin imports the npm dependencies, install them in that directory so that node_modules is available (npm install / pnpm install).

The Channel Catalogue Metadata

A channel plugin can broadcast the onboarding metadata through openclaw.channel and the installation hints through openclaw.install. This keeps the core catalogue free of data. An example:

xxxxxxxxxx
{
  "name": "@openclaw/nextcloud-talk",
  "openclaw": {
    "extensions": ["./index.ts"],
    "channel": {
      "id": "nextcloud-talk",
      "label": "Nextcloud Talk",
      "selectionLabel": "Nextcloud Talk (self-hosted)",
      "docsPath": "/channels/nextcloud-talk",
      "docsLabel": "nextcloud-talk",
      "blurb": "Self-hosted chat via Nextcloud Talk webhook bots.",
      "order": 65,
      "aliases": ["nc-talk", "nc"]
    },
    "install": {
      "npmSpec": "@openclaw/nextcloud-talk",
      "localPath": "extensions/nextcloud-talk",
      "defaultChoice": "npm"
    }
  }
}

OpenClaw can also merge the external channel catalogues (for example the exports of the MPM registry). Put the JSON file in one of the following places:

  • ~/.openclaw/mpm/plugins.json

  • ~/.openclaw/mpm/catalog.json

  • ~/.openclaw/plugins/catalog.json

Or point OPENCLAW_PLUGIN_CATALOG_PATHS (or OPENCLAW_MPM_CATALOG_PATHS) to one or more JSON files (comma/semicolon/PATH separated). Each file should contain { "entries": [ { "name": "@scope/pkg", "openclaw": { "channel": {...}, "install": {...} } } ] }.

The Plugin IDs

The default plugin ids:

  • The package collections: the name of the package.json

  • The standalone files: the base name of the file (~/.../voice-call.ts → voice-call)

If a plugin exports an id, OpenClaw uses it, but it issues a warning when it does not match the configured id.

The Configuration

xxxxxxxxxx
{
  plugins: {
    enabled: true,
    allow: ["voice-call"],
    deny: ["untrusted-plugin"],
    load: { paths: ["~/Projects/oss/voice-call-extension"] },
    entries: {
      "voice-call": { enabled: true, config: { provider: "twilio" } },
    },
  },
}

The fields:

  • enabled: the master switch (the default: true)

  • allow: the allow list (optional)

  • deny: the deny list (optional; deny has the priority)

  • load.paths: the additional plugin files/directories

  • entries.<id>: the switch + the configuration of each plugin

A configuration change requires a restart of the Gateway. The validation rules are strict:

  • An unknown plugin id in entries, allow, deny or slots is an error.

  • An unknown channels.<id> key is an error, unless the plugin manifest declares the channel id.

  • The plugin configuration is validated with the JSON Schema that is embedded in openclaw.plugin.json (configSchema).

  • If a plugin is disabled, its configuration is kept and a warning is issued.

The Plugin Slots (the exclusive categories)

Some of the plugin categories are exclusive (only one is active at a time). Use plugins.slots to select the plugin that owns the slot:

xxxxxxxxxx
{
  plugins: {
    slots: {
      memory: "memory-core", // or "none" to disable the memory plugins
    },
  },
}

If several plugins declare kind: "memory", only the selected one is loaded. The others are disabled with a diagnostic message.

The Control Interface (the schema + the labels)

The control interface uses config.schema (the JSON Schema + uiHints) to render better forms. OpenClaw enhances the uiHints at runtime according to the plugins that it discovers:

  • It adds the per plugin labels for plugins.entries.<id> / .enabled / .config

  • It merges the optional configuration field hints that the plugin provides at the following places: plugins.entries.<id>.config.<field>

If you want the configuration fields of your plugin to show nice labels/placeholders (and to mark the secrets as sensitive), provide the uiHints and the JSON Schema in the plugin manifest. An example:

xxxxxxxxxx
{
  "id": "my-plugin",
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "apiKey": { "type": "string" },
      "region": { "type": "string" }
    }
  },
  "uiHints": {
    "apiKey": { "label": "API Key", "sensitive": true },
    "region": { "label": "Region", "placeholder": "us-east-1" }
  }
}

The CLI

xxxxxxxxxx
openclaw plugins list
openclaw plugins info <id>
openclaw plugins install <path>                 # copy a local file/dir into ~/.openclaw/extensions/<id>
openclaw plugins install ./extensions/voice-call # a relative path is ok
openclaw plugins install ./plugin.tgz           # install from a local tarball
openclaw plugins install ./plugin.zip           # install from a local zip
openclaw plugins install -l ./extensions/voice-call # link (no copy) for dev
openclaw plugins install @openclaw/voice-call # install from npm
openclaw plugins update <id>
openclaw plugins update --all
openclaw plugins enable <id>
openclaw plugins disable <id>
openclaw plugins doctor

plugins update only applies to the npm installations that are tracked under plugins.installs. A plugin can also register its own top level command (for example: openclaw voicecall).

The Plugin API (an overview)

A plugin exports one of the following:

  • A function: (api) => { ... }

  • An object: { id, name, configSchema, register(api) { ... } }

The Plugin Hooks

A plugin can ship the hooks and register them at runtime. This lets a plugin bundle the event driven automation without installing the hook packages separately.

An Example

​x
import { registerPluginHooksFromDir } from "openclaw/plugin-sdk";

export default function register(api) {
  registerPluginHooksFromDir(api, "./hooks");
}

The points to note:

  • The hook directory follows the normal hook structure (HOOK.md + handler.ts).

  • The hook eligibility rules still apply (the operating system/binary/environment/configuration requirements).

  • The plugin managed hooks appear as plugin:<id> in openclaw hooks list.

  • You cannot enable/disable the plugin managed hooks through openclaw hooks; you enable/disable the plugin instead.

The Provider Plugins (the model authentication)

A plugin can register a model provider authentication flow, so that the user can run the OAuth or the API key setup inside OpenClaw (without an external script). The provider is registered through api.registerProvider(...). Each provider exposes one or more authentication methods (OAuth, the API key, the device code and so on). These methods drive:

  • openclaw models auth login --provider <id> [--method <id>]

An example:

xxxxxxxxxx
api.registerProvider({
  id: "acme",
  label: "AcmeAI",
  auth: [
    {
      id: "oauth",
      label: "OAuth",
      kind: "oauth",
      run: async (ctx) => {
        // Run the OAuth flow and return the auth profiles.
        return {
          profiles: [
            {
              profileId: "acme:default",
              credential: {
                type: "oauth",
                provider: "acme",
                access: "...",
                refresh: "...",
                expires: Date.now() + 3600 * 1000,
              },
            },
          ],
          defaultModel: "acme/opus-1",
        };
      },
    },
  ],
});

The points to note:

  • The run receives a ProviderAuthContext with the prompter, the runtime, the openUrl and the oauth.createVpsAwareHandlers helpers.

  • Return a configPatch when the default model or the provider configuration has to be added.

  • Return a defaultModel so that --set-default can update the default of the agent.

Registering a Message Channel

A plugin can register a channel plugin, which behaves similarly to the built in channels (WhatsApp, Telegram and so on). The channel configuration is under channels.<id> and it is validated by your channel plugin code.

xxxxxxxxxx
const myChannel = {
  id: "acmechat",
  meta: {
    id: "acmechat",
    label: "AcmeChat",
    selectionLabel: "AcmeChat (API)",
    docsPath: "/channels/acmechat",
    blurb: "demo channel plugin.",
    aliases: ["acme"],
  },
  capabilities: { chatTypes: ["direct"] },
  config: {
    listAccountIds: (cfg) => Object.keys(cfg.channels?.acmechat?.accounts ?? {}),
    resolveAccount: (cfg, accountId) =>
      cfg.channels?.acmechat?.accounts?.[accountId ?? "default"] ?? {
        accountId,
      },
  },
  outbound: {
    deliveryMode: "direct",
    sendText: async () => ({ ok: true }),
  },
};

export default function (api) {
  api.registerChannel({ plugin: myChannel });
}

The points to note:

  • Put the configuration under channels.<id> (and not under plugins.entries).

  • meta.label is the label that is used in the CLI/UI list.

  • meta.aliases adds the alternative ids that are used for the normalisation and for the CLI input.

  • meta.preferOver lists the channel ids to skip the automatic enabling of when both of them are configured.

  • meta.detailLabel and meta.systemImage let the UI show a richer channel label/icon.

Writing a New Message Channel (a step by step guide)

Use this when you want a new chat interface (a "message channel") rather than a model provider. The model provider documentation is under /providers/*.

  1. Choose the id + the structure of the configuration

  • All the channel configurations are under channels.<id>.

  • For a multi account setup, prefer channels.<id>.accounts.<accountId>.

  1. Define the channel metadata

  • meta.label, meta.selectionLabel, meta.docsPath, meta.blurb control the CLI/UI list.

  • meta.docsPath should point to a documentation page such as /channels/<id>.

  • meta.preferOver lets the plugin replace another channel (it is preferred by the automatic enabling).

  • meta.detailLabel and meta.systemImage are used by the UI for the detailed text/icon.

  1. Implement the required adapters

  • config.listAccountIds + config.resolveAccount

  • capabilities (the chat types, the media, the threads and so on)

  • outbound.deliveryMode + outbound.sendText (for the basic sending)

  1. Add the optional adapters as needed

  • setup (the wizard), security (the DM policy), status (the health/diagnostics)

  • gateway (the start/stop/login), mentions, threading, streaming

  • actions (the message actions), commands (the native command behaviour)

  1. Register the channel in the plugin

  • api.registerChannel({ plugin })

An example of the minimal configuration:

xxxxxxxxxx
{
  channels: {
    acmechat: {
      accounts: {
        default: { token: "ACME_TOKEN", enabled: true },
      },
    },
  },
}

A minimal channel plugin (the outbound only):

xxxxxxxxxx
const plugin = {
  id: "acmechat",
  meta: {
    id: "acmechat",
    label: "AcmeChat",
    selectionLabel: "AcmeChat (API)",
    docsPath: "/channels/acmechat",
    blurb: "AcmeChat messaging channel.",
    aliases: ["acme"],
  },
  capabilities: { chatTypes: ["direct"] },
  config: {
    listAccountIds: (cfg) => Object.keys(cfg.channels?.acmechat?.accounts ?? {}),
    resolveAccount: (cfg, accountId) =>
      cfg.channels?.acmechat?.accounts?.[accountId ?? "default"] ?? {
        accountId,
      },
  },
  outbound: {
    deliveryMode: "direct",
    sendText: async ({ text }) => {
      // deliver `text` to your channel here
      return { ok: true };
    },
  },
};

export default function (api) {
  api.registerChannel({ plugin });
}

Load the plugin (the extensions directory or plugins.load.paths), restart the Gateway and then configure channels.<id> in the configuration.

The Agent Tools

Refer to the dedicated guide: the plugin agent tools.

Registering a Gateway RPC Method

xxxxxxxxxx
export default function (api) {
  api.registerGatewayMethod("myplugin.status", ({ respond }) => {
    respond(true, { ok: true });
  });
}

Registering a CLI Command

xxxxxxxxxx
export default function (api) {
  api.registerCli(
    ({ program }) => {
      program.command("mycmd").action(() => {
        console.log("Hello");
      });
    },
    { commands: ["mycmd"] },
  );
}

Registering an Auto Reply Command

A plugin can register a custom slash command that is executed without calling the AI agent. This is useful for the toggle commands, the status checks or the quick actions that do not need any LLM processing.

xxxxxxxxxx
export default function (api) {
  api.registerCommand({
    name: "mystatus",
    description: "Show plugin status",
    handler: (ctx) => ({
      text: `Plugin is running! Channel: ${ctx.channel}`,
    }),
  });
}

The context of the command handler:

  • senderId: the ID of the sender (if available)

  • channel: the channel the command was sent from

  • isAuthorizedSender: whether the sender is an authorised user

  • args: the arguments that are passed after the command (if acceptsArgs: true)

  • commandBody: the full text of the command

  • config: the current OpenClaw configuration

The options of the command:

  • name: the name of the command (without the leading /)

  • description: the help text that is shown in the command list

  • acceptsArgs: whether the command accepts the arguments (the default: false). If it is false and the arguments are provided, the command does not match and the message is passed to the other handlers

  • requireAuth: whether an authorised sender is required (the default: true)

  • handler: the function that returns { text: string } (it can be asynchronous)

An example with the authorisation and the arguments:

xxxxxxxxxx
api.registerCommand({
  name: "setmode",
  description: "Set plugin mode",
  acceptsArgs: true,
  requireAuth: true,
  handler: async (ctx) => {
    const mode = ctx.args?.trim() || "default";
    await saveMode(mode);
    return { text: `Mode set to: ${mode}` };
  },
});

The points to note:

  • The plugin commands are handled before the built in commands and the AI agent

  • The commands are registered globally and they apply to all the channels

  • The name of the command is not case sensitive (/MyStatus matches /mystatus)

  • The name of the command has to start with a letter and it may only contain the letters, the digits, the hyphens and the underscores

  • The reserved command names (such as help, status, reset and so on) cannot be overridden by a plugin

  • A duplicate command registration across the plugins fails with a diagnostic error

Registering a Background Service

xxxxxxxxxx
export default function (api) {
  api.registerService({
    id: "my-service",
    start: () => api.logger.info("ready"),
    stop: () => api.logger.info("bye"),
  });
}

The Naming Conventions

  • The Gateway methods: pluginId.action (for example: voicecall.status)

  • The tools: snake_case (for example: voice_call)

  • The CLI commands: kebab or camel, but avoid a conflict with the core commands

Skills

A plugin can ship the Skills in the repository (skills/<name>/SKILL.md). Enable it with plugins.entries.<id>.enabled (or another configuration gate) and make sure that it exists in your workspace/hosted Skills location.

The Distribution (npm)

The recommended packaging:

  • The main package: openclaw (this repository)

  • The plugins: the separate npm packages under @openclaw/* (for example: @openclaw/voice-call)

The publishing contract:

  • The package.json of the plugin has to contain openclaw.extensions with one or more entry files.

  • The entry files can be .js or .ts (jiti loads the TS at runtime).

  • openclaw plugins install <npm-spec> uses npm pack, extracts it into ~/.openclaw/extensions/<id>/ and enables it in the configuration.

  • The stability of the configuration key: a scoped package is normalised to an unscoped id of plugins.entries.*.

The Example Plugin: Voice Call

This repository contains a voice call plugin (Twilio or the log fallback):

  • The source: extensions/voice-call

  • The Skills: skills/voice-call

  • The CLI: openclaw voicecall start|status

  • The tool: voice_call

  • The RPC: voicecall.start, voicecall.status

  • The configuration (twilio): provider: "twilio" + twilio.accountSid/authToken/from (the optional statusCallbackUrl and twimlUrl)

  • The configuration (dev): provider: "log" (no network)

Refer to Voice Call and to extensions/voice-call/README.md for the setup and the usage.

The Security Notes

The plugins run in the same process as the Gateway. Treat them as trusted code:

  • Only install the plugins that you trust.

  • Prefer the plugins.allow allow list.

  • Restart the Gateway after a change.

Testing a Plugin

A plugin can (and should) ship the tests:

  • The plugins in the repository can keep the Vitest tests under src/** (for example: src/plugins/voice-call.plugin.test.ts).

  • A separately published plugin should run its own CI (lint/build/test) and verify that openclaw.extensions points at the built entry point (dist/index.js).

 

For more about the plugins, refer to: Plugins - OpenClaw

OpenClawHub Introduction (Skill Installation)
OpenClaw Application - File Management

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文