Skip to main content

Building Plugins

Building a plugin means writing a Node.js package that connects to the Codebolt server via WebSocket and registers capabilities using the @codebolt/plugin-sdk. This page is a brief orientation — the full developer documentation lives in Build on Codebolt.

What you can build

Plugin typeWhat it doesGuide
LLM ProviderAdds a custom AI provider to the model selectorCustom AI Providers →
Chat GatewayConnects an external messaging platform to agentsChat Gateway →
ExecutionProxies code execution to a remote environmentProxy Execution Gateway →
UI PanelAdds a custom panel inside the Codebolt desktop appDynamic Panel Plugins →
GenericAny other application extensionPlugins Overview →

Quick start

# 1. Create a plugin folder
mkdir my-plugin && cd my-plugin
npm init -y
npm install @codebolt/plugin-sdk typescript

# 2. Add the codebolt.plugin field to package.json
# (see Build on Codebolt → Plugins for the full manifest reference)

# 3. Write src/index.ts
import plugin from '@codebolt/plugin-sdk';

plugin.onStart(async (ctx) => {
console.log('Plugin started:', ctx.pluginId);
// register capabilities here
});

plugin.onStop(async () => {
// clean up
});

# 4. Build and install locally for testing
npx tsc
cp -r . ~/.codebolt/plugins/my-plugin

# 5. In Codebolt: Plugins panel → Reload → Start

Developer documentation

Everything you need to build and publish a plugin:

Publishing to the marketplace

When your plugin is ready:

codebolt plugin publish --path ./my-plugin

After publishing, it appears in the Plugin Marketplace and can be installed by others. See the Packaging and Publishing guide for the full checklist.