Implementation:AIScientists Dev WorldSeed worldseed channel plugin
| Knowledge Sources | |
|---|---|
| Domains | Plugin, Gateway |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
Concrete OpenClaw channel plugin that connects to a WorldSeed server via WebSocket as a gateway, serving all agents through a single connection, provided by the WorldSeed library.
Description
The worldseedPlugin is a `ChannelPlugin<WorldSeedAccount>` that registers the "worldseed" channel with OpenClaw. It resolves account config from `channels.worldseed.accounts` or the legacy `plugins.entries.worldseed.config` path, with environment variable fallbacks (`WORLDSEED_URL`, `WORLDSEED_TOKEN`). Session keys use the format `agent:{agentId}:worldseed:{runId}` (not `hook:*`) to avoid security prompt wrapping. The plugin loads `SKILL.md` as the agent prompt, provides `worldseed_act` tool hints, creates agent tools via `createWorldSeedTools`, and delegates the gateway to `createWorldSeedGateway`. The `outbound` adapter is a no-op `sendText` since delivery happens through the gateway WebSocket.
Usage
Import this plugin from the OpenClaw plugin entry point (`index.ts`). It is activated by the `channels.worldseed` config section in `openclaw.json`, which the WorldSeed server writes via `_update_openclaw_config`.
Code Reference
Source Location
- Repository: WorldSeed
- File: openclaw-plugin/src/channel.ts
Signature
export type WorldSeedAccount = {
accountId: string;
serverUrl: string;
gatewayToken: string;
};
export const worldseedPlugin: ChannelPlugin<WorldSeedAccount> = {
id: "worldseed",
meta,
capabilities,
config,
outbound,
agentPrompt,
agentTools,
gateway: createWorldSeedGateway(),
};
Import
import { worldseedPlugin } from "./channel.js";
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| cfg | OpenClawConfig | Yes | OpenClaw configuration object |
| accountId | undefined | No | Account identifier (default: "default") |
Outputs
| Name | Type | Description |
|---|---|---|
| worldseedPlugin | ChannelPlugin | Plugin with meta, config resolver, agent tools, gateway |
Usage Examples
// Plugin registration in index.ts
import { worldseedPlugin } from "./channel.js";
export default {
channels: [worldseedPlugin],
};