Creating, building, and testing elizaOS plugins
bun
as the package manager, which is the preferred tool for elizaOS development. Bun provides faster installation times and built-in TypeScript support.elizaos create
elizaos create
and selecting “Quick Plugin”, you’ll get:
@elizaos/core
tsconfig.json
:
tsup.config.ts
:
src/index.ts
:
package.json
as a workspace dependency:bun install
in the root directory
package.json
:bun link
, remember to rebuild your plugin (bun run build
) after making changes for them to be reflected in your project.test-utils.ts
file with reusable mocks:
package.json
:
.vscode/launch.json
:
@elizaos/core
is installed and TypeScript is configured correctly.
tsconfig.json
has proper module resolution settings for Bun.