项目文件夹

文件
wehub-resource-sync 426e9eeabd
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
ci / test (push) Has been cancelled
ci / lint-and-format (push) Has been cancelled
ci / build (push) Has been cancelled
ci / dev-startup (push) Has been cancelled
gitleaks / gitleaks (push) Has been cancelled
Markdown Links / Relative Markdown Links (push) Has been cancelled
Quality (Extended) / Homepage Build (PR smoke) (push) Has been cancelled
Quality (Extended) / Comment-only diff guard (push) Has been cancelled
Quality (Extended) / Format + Type Safety Ratchet (push) Has been cancelled
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Has been cancelled
Quality (Extended) / Develop Gate (lint) (push) Has been cancelled
Chat shell gestures / Chat shell gesture + parity e2e (push) Has been cancelled
Cloud Gateway Discord / Test (push) Has been cancelled
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Has been cancelled
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Has been cancelled
Build Agent Image / build-and-push (push) Has been cancelled
Dev Smoke / bun run dev onboarding chat (push) Has been cancelled
Dev Smoke / Vite HMR dependency-level smoke (push) Has been cancelled
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Has been cancelled
Publish @elizaos/example-code / check_npm (push) Has been cancelled
Publish @elizaos/example-code / publish_npm (push) Has been cancelled
Publish @elizaos/plugin-elizacloud / verify_version (push) Has been cancelled
Publish @elizaos/plugin-elizacloud / publish_npm (push) Has been cancelled
Sandbox Live Smoke / Sandbox live smoke (push) Has been cancelled
Snap Build & Test / Build Snap (amd64) (push) Has been cancelled
Snap Build & Test / Build Snap (arm64) (push) Has been cancelled
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Has been cancelled
Cloud Gateway Webhook / Test (push) Has been cancelled
Cloud Tests / lint-and-types (push) Has been cancelled
Cloud Tests / unit-tests (push) Has been cancelled
Cloud Tests / integration-tests (push) Has been cancelled
Cloud Tests / e2e-tests (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Apps Worker (Product 2) / Determine environment (push) Has been cancelled
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Has been cancelled
Deploy Eliza Provisioning Worker / Determine environment (push) Has been cancelled
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Has been cancelled
Dev Smoke / Classify changed paths (push) Has been cancelled
supply-chain / sbom (push) Has been cancelled
supply-chain / vulnerability-scan (push) Has been cancelled
Build, Push & Deploy to Phala Cloud / build-and-push (push) Has been cancelled
Test Packaging / Validate Packaging Configs (push) Has been cancelled
Test Packaging / Build & Test PyPI Package (push) Has been cancelled
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Has been cancelled
Test Packaging / Pack & Test JS Tarballs (push) Has been cancelled
UI Fixture E2E / ui-fixture-e2e (push) Has been cancelled
UI Fixture E2E / fixture-e2e (push) Has been cancelled
UI Story Gate / story-gate (push) Has been cancelled
vault-ci / test (macos-latest) (push) Has been cancelled
vault-ci / test (ubuntu-latest) (push) Has been cancelled
vault-ci / test (windows-latest) (push) Has been cancelled
vault-ci / app-core wiring tests (push) Has been cancelled
verify-patches / verify patches/CHECKSUMS.sha256 (push) Has been cancelled
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Has been cancelled
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Has been cancelled
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Has been cancelled
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Has been cancelled
Voice Benchmark Smoke / voice bench smoke summary (push) Has been cancelled
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Has been cancelled
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Has been cancelled
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Has been cancelled
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Has been cancelled
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:43:05 +08:00

7.9 KiB

title, sidebarTitle, description
title sidebarTitle description
Publish a Plugin Publish How to package, version, and publish a Eliza plugin to the npm registry and submit it to the community registry.

This guide covers the full publishing workflow for a Eliza plugin — from packaging to npm publication and community registry submission.

Naming Conventions

Choose a package name that follows the established convention:

Scope Pattern Example
Official elizaOS @elizaos/plugin-{name} @elizaos/plugin-openai
Community (scoped) @yourorg/plugin-{name} @acme/plugin-analytics
Community (unscoped) elizaos-plugin-{name} elizaos-plugin-weather

The runtime recognizes all three patterns for auto-discovery.

package.json Requirements

Your plugin's package.json must include these fields:

{
  "name": "@elizaos/plugin-my-feature",
  "version": "1.0.0",
  "description": "One-line description of what this plugin does",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": ["dist", "elizaos.plugin.json"],
  "keywords": ["elizaos", "eliza", "plugin"],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/yourorg/plugin-my-feature"
  },
  "peerDependencies": {
    "@elizaos/core": ">=2.0.0-alpha"
  },
  "devDependencies": {
    "@elizaos/core": "alpha",
    "typescript": "^5.0.0"
  }
}

Key points:

  • Declare @elizaos/core as a peerDependency — not a direct dependency — to avoid version conflicts.
  • Include elizaos.plugin.json in files so the manifest is published alongside the code.
  • Use "type": "module" for ESM output.

Build Configuration

Use TypeScript targeting ESM:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "outDir": "dist",
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "strict": true,
    "skipLibCheck": true
  },
  "include": ["src"],
  "exclude": ["node_modules", "dist", "**/*.test.ts"]
}

Versioning

Follow Semantic Versioning:

Change Bump
New action, provider, or feature (backward compatible) Minor (1.0.01.1.0)
Bug fixes only Patch (1.0.01.0.1)
Breaking API change Major (1.0.02.0.0)

For plugins targeting the elizaOS next release line, use prerelease versions:

npm version prerelease --preid=next
# 1.0.0 → 1.0.1-next.0

Publishing to npm

1. Authenticate

npm login

2. Build

bun run build

Verify the dist/ directory contains the compiled output before publishing.

3. Dry Run

Always preview what will be published:

npm publish --dry-run --access public

Check that the output includes only dist/, elizaos.plugin.json, package.json, and README.md.

4. Publish

npm publish --access public

For prerelease versions targeting the elizaOS next release line:

npm publish --access public --tag next

5. Verify

npm info @yourorg/plugin-my-feature

Plugin Manifest

Include an elizaos.plugin.json at the package root for rich UI integration in the Eliza admin panel:

{
  "id": "my-feature",
  "name": "My Feature Plugin",
  "description": "Does something useful",
  "version": "1.0.0",
  "kind": "skill",

  "requiredSecrets": ["MY_FEATURE_API_KEY"],
  "optionalSecrets": ["MY_FEATURE_DEBUG"],

  "configSchema": {
    "type": "object",
    "properties": {
      "apiKey": { "type": "string" },
      "endpoint": { "type": "string", "format": "uri" }
    },
    "required": ["apiKey"]
  },

  "uiHints": {
    "apiKey": {
      "label": "API Key",
      "type": "password",
      "sensitive": true
    }
  }
}

Best Practices

Documentation:

  • Include a README.md with installation instructions, required environment variables, and usage examples.
  • Document every action with a description of when the LLM will invoke it.
  • List all required and optional env vars in a table.

Security:

  • Never log API keys or secrets — use runtime.logger carefully.
  • Validate and sanitize all parameters in action handlers.
  • Use peerDependencies for @elizaos/core to prevent duplicate installations.

Compatibility:

  • Test against the current next release of @elizaos/core.
  • Declare your peerDependencies version range conservatively: "@elizaos/core": ">=2.0.0-alpha".
  • Export a Plugin type-compatible default export — do not use default exports for other purposes.

Quality:

  • Include unit tests with at least 80% coverage. (Note: this is the recommended bar for standalone published plugins. The monorepo enforces a 25% lines/functions/statements, 15% branches floor from scripts/coverage-policy.mjs.)
  • Run tsc --noEmit in CI to catch type errors.
  • Test the published package with npm pack before publishing.

Multi-Language Plugins

Plugins can include implementations in multiple languages:

my-plugin/
├── typescript/     # Primary TypeScript implementation
│   ├── src/
│   ├── package.json
│   └── tsconfig.json
├── python/         # Optional Python SDK bindings
│   ├── src/
│   └── pyproject.toml
├── rust/           # Optional Rust native module
│   ├── src/
│   └── Cargo.toml
└── elizaos.plugin.json

The TypeScript implementation is always required. Python and Rust implementations are optional and used by their respective SDKs. The elizaos.plugin.json manifest at the root describes the plugin for all languages.

Community Registry

The public plugin registry is served at plugins.elizacloud.ai. The runtime discovers community plugins by fetching https://plugins.elizacloud.ai/generated-registry.json (falling back to index.json), and recognizes any npm package whose keywords include elizaos as a plugin.

The community registry source of truth lives in the monorepo at packages/registry. It replaced the archived, read-only elizaos-plugins/registry repository the old docs pointed at — see elizaOS/eliza#8173.

After publishing to npm (the @elizaos/* scope is reserved — use your own scope or an unscoped elizaos-plugin-* name) and making your GitHub repository public, generate the entry metadata:

elizaos plugins submit . --dry-run

Add the printed entries/third-party/<package>.json file under packages/registry/entries/third-party/, then validate, regenerate, and open a pull request:

bun run --cwd packages/registry validate
bun run --cwd packages/registry generate

The full walkthrough — with a worked example (packages/examples/plugin-echo) — is in the registry package README.

Before requesting a listing, make sure your package:

  1. Is published to npm (the @elizaos/* scope is reserved — use your own scope)
  2. Includes the elizaos keyword in package.json (this is what the runtime uses to auto-recognize it as a plugin)
  3. Ships a valid elizaos.plugin.json manifest
  4. Has a public GitHub repository
  5. Includes a README with setup instructions and required environment variables

Community plugins are reviewed for security, functionality, and documentation quality before listing. npm keyword discovery works without a registry entry; the registry adds metadata and curation. See the Plugin Registry Guide for details.