Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AIScientists Dev WorldSeed worldseed channel plugin

From Leeroopedia
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],
};

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment