profClaw’s plugin system lets you add new capabilities without forking the core. Plugins can provide AI tools (for function calling), search providers, skills, and chat channel integrations.Documentation Index
Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Plugin Categories
| Category | What it adds |
|---|---|
tool | New tools available to the AI during execution |
search | A new web or knowledge search backend |
integration | External service connection (ticket systems, APIs) |
model | A custom AI model provider |
Architecture
src/plugins/registry.ts) holds factories keyed by plugin ID. Configuration is stored in the database and loaded on startup. Plugins run in an optional sandbox (src/plugins/sandbox.ts) for untrusted code.
Plugin Metadata
Every plugin declares metadata that drives the settings UI and ClawHub listing:Plugin Lifecycle
Register
The plugin factory is registered with
pluginRegistry.register(id, factory) on server startup.Configure
The user provides credentials and settings via the settings UI. The UI is auto-generated from the plugin’s
PluginSettingsSchema.Load
The
onLoad(config) lifecycle hook is called with the saved configuration. Use this to validate credentials and initialize connections.Execute
Tools or search functions are called at runtime by the execution engine. Results are returned to the AI model.
Settings Schema
Plugins declare their settings schema for automatic UI generation. The schema drives both the settings form and validation:type: 'password' are encrypted at rest and never exposed in logs.
Plugin Sandbox
By default, plugins from ClawHub run in a Node.js sandbox with restricted access:- No direct filesystem access outside the plugin’s data directory
- Network requests go through the SsrfGuard
- CPU and memory limits enforced
- Static code analysis on install
ClawHub
ClawHub is profClaw’s plugin and skill marketplace. Browse and install from the settings UI at Settings > Plugins > Browse ClawHub, or via CLI:Writing a Plugin
A minimal tool plugin:Related
Skills Overview
Add AI behavior with plain Markdown - no code required.
Custom Tools
Add tools directly without packaging a full plugin.
Publishing to ClawHub
Publish your plugin for the community.
Plugin SDK
Full TypeScript SDK reference for plugin development.