# Plugins, Usage Billing & Authoring — Octopus ADE

> Canonical HTML: https://octoterm.si/docs/guides/plugins (ZH) · https://octoterm.si/en/docs/guides/plugins (EN)
> Docs Index: https://octoterm.si/docs/llms.txt

## TL;DR

Octopus executes plugins inside the sandboxed **Jaunt JavaScript engine (Plugin Engine v2.0.0)** with declarative `plugin.json` manifests and explicit zero-trust permissions. Capabilities include pre-launch MCP injection (`launchContributors`), hosted JS MCP tools (`mcpTools`), `@context` providers, status bar & sidebar widgets, zero-permission declarative themes, and built-in 92-day local usage billing (`octopus.agent-usage`).

## Jaunt Engine v2.0.0 Capabilities

- **Launch Contributors (`launchContributors`)**: Inject MCP servers, env vars, or flags before an agent starts without manually editing per-CLI JSON files.
- **Hosted JS MCP Tools (`mcpTools`)**: Expose lightweight local JavaScript tools directly to Claude Code, Codex, OpenCode, and other MCP-capable agents.
- **Context Providers (`contextProviders`)**: Surface `@notes`, `@prompt`, `@todo`, and custom project context inside the prompt composer.
- **UI & Zero-Permission Themes**: Contribute `statusBar`, `sidebar`, `project`, or `context` panels; visual themes (`themes-classic`, `theme-orbital-cyan`, `theme-apple-glass`) are 100% declarative with zero permissions and no background scripts.

## Built-In Multi-Agent Usage Billing (`octopus.agent-usage`)

- Runs 100% locally on your machine with **92 days** of token and cost history.
- Aggregates Claude Code, Codex CLI, Antigravity CLI, GitHub Copilot, Grok, Cursor, and OpenCode.
- Exports shareable **HTML usage receipts** and standard **CSV** reports.

## Official Plugin Catalog (`AIDotNet/Octopus-Plugins`)

25 audited official plugins installable via https://octoterm.si/en/plugins or `octopus://plugin/install`:
- **Context & productivity**: `prompt-snippets`, `quick-notes`, `project-todo`, `daily-standup`
- **Database & infra MCP**: `sqlite-explorer`, `postgres-inspector`, `env-inspector`, `docker-overview`, `port-watcher`
- **Git & code insights**: `git-insights`, `branch-pr-helper`, `code-metrics`, `deps-checker`, `changelog-gen`
- **Zero-permission themes**: `themes-classic` (Catppuccin, Tokyo Night, Dracula, Nord, Gruvbox), `theme-orbital-cyan`, `theme-apple-glass`

## Minimal `plugin.json` & `.octoplugin` Packaging

```json
{
  "id": "acme.release-helper",
  "name": "Release Helper",
  "version": "1.0.0",
  "engineVersion": ">=2.0.0",
  "description": "Injects release checklist context and exposes a status widget.",
  "main": "main.js",
  "permissions": ["project.read", "context.provide", "ui.statusBar"],
  "contributes": {
    "contextProviders": [
      { "id": "release", "trigger": "@release", "title": "Release Checklist" }
    ],
    "statusBar": { "id": "release-badge", "alignment": "right" }
  }
}
```

Package and validate via `./pack.sh plugins/acme.release-helper` to produce a signed `.octoplugin` archive with SHA-256 verification. You can also install the official multi-agent plugin authoring Skill from https://octoterm.si/en/plugins so Claude Code, Codex, or Cursor scaffolds plugins for you.
