@opencsg/agentichub-plugin
v0.1.7
Published
OpenClaw plugin for integrating AgenticHub instances - call external agent instances via API
Maintainers
Readme
AgenticHub Plugin for OpenClaw
OpenClaw plugin for integrating AgenticHub instances. It allows you to call external agent instances via API directly from OpenClaw, enabling you to seamlessly use custom Flow Agents and Code Agents deployed on AgenticHub.
Features
- 🤖 Multiple Agent Types - Support for Flow Agents, Code Agents, and Super Assistant.
- � Interactive Chat Commands - Control the plugin directly via
/agentichubor/ahcommands. - 🔄 Dynamic Switching - Switch between different agent environments and instances on the fly.
- � Token Management - Easily configure and update your AgenticHub API token via chat.
- 📋 Agent Discovery - List and search available agents within AgenticHub.
Quick start
Prerequisites
- Node.js >= 22.0.0
- OpenClaw >= 2026.0.0
- AgenticHub API Token
Installation
# 1. Install the plugin
openclaw plugins install @opencsg/agentichub-plugin
# 2. Enable it
openclaw plugins enable agentichub-pluginUpdate
openclaw plugins update agentichub-pluginUninstall
openclaw plugins disable agentichub-plugin
openclaw plugins uninstall agentichub-pluginChat Commands Usage
The primary way to interact with the plugin is through built-in OpenClaw chat commands: /agentichub or the shorthand /ah.
Help & Overview
Run the command without arguments or with the help flag to see available options:
/ah
# or
/ah -h1. Token Configuration (Required)
Before running queries, you must set an API token.
- STG Environment Token URL: https://opencsg-stg.com/settings/access-token
- PROD Environment Token URL: https://opencsg.com/settings/access-token
Update your token in the chat:
/ah -token <your_token>Note: This updates the token and securely validates it against the current environment.
2. List Agents
List available agents. You can append a search term to filter:
/ah -list
/ah -list python3. Select an Agent
Switch to a specific Agent ID. Future queries will automatically route to this agent:
/ah -agent 1234. Running Queries
Execute a prompt against the configured agent:
/ah What is the time complexity of QuickSort?Alternatively, use the query flag explicitly:
/ah -query Explain this code snippet.Chaining commands: You can select an agent and query it in a single command:
/ah -agent 123 -query Generate a react component.5. Switch to Super Assistant
Switch to the built-in Super Assistant mode:
/ah -super
/ah -super Hello, how can you help me?6. View Current Status
Check current configuration, selected agent, environment, and user info:
/ah -st
# or
/ah -status7. Miscellaneous Flags
-verbose: Show detailed debug logs and tool calls in your terminal output.-reset: Reset all modified configurations back to defaults.-vor-version: Show the plugin version.
Tool Integration
Additionally, the plugin registers an agentichub_instance tool for the OpenClaw Agent, allowing internal OpenClaw systems to invoke AgenticHub programmatically during reasoning.
agentichub_instance Parameters
| Param | Type | Required | Description |
|-------|------|----------|-------------|
| query | string | ✅ | Task description sent to AgenticHub |
| type | string | ❌ | Execution type: flow (default), code, or super |
| flowId | string | ❌ | Target Agent Flow ID |
| agentName | string | ❌ | Custom agent name for code type |
| sessionId | string | ❌ | For maintaining conversation state seamlessly |
| history | array | ❌ | Array of { role: string, content: string } objects |
Development
# Watch mode
pnpm run dev
# Typechecking
pnpm run typecheck
# Build plugin
pnpm run build