@capsule-run/elizaos-plugin
v0.1.5
Published
Capsule code execution plugin for ElizaOS - Run Python and JavaScript code securely
Downloads
577
Maintainers
Readme
Capsule ElizaOS Plugin
Execute Python and JavaScript code securely in your ElizaOS agents using local WASM sandboxes.
Installation
bun install @capsule-run/elizaos-pluginUsage
Add the plugin to your ElizaOS agent configuration:
import { capsulePlugin } from '@capsule-run/elizaos-plugin';
const agent = {
name: "assistant",
plugins: [capsulePlugin],
// ... other agent config
};Available Actions
EXECUTE_CODE
Executes Python or JavaScript code in a secure Capsule sandbox.
Aliases: RUN_CODE, EVAL_CODE, CODE_EXEC, RUN_PYTHON, RUN_JAVASCRIPT
Example Interactions:
User: Calculate the fibonacci of 10
Agent: *generates and safely executes Python code*
Result: 55How It Works
The plugin uses Capsule to execute code in secure sandboxes. It uses a pre-built adapter with the default sandboxes included to make it simple to use.
Learn more about Capsule.
