Getting Started
Build and install your first Omniscio plugin in under five minutes.
Prerequisites
Install the CLI
Install the Omniscio Plugin CLI globally:
npm install -g @omniscio/plugin-cliVerify the installation:
omniscio-plugin --version
# 3.6.0Scaffold a New Plugin
Run omniscio-plugin create with a kebab-case name:
omniscio-plugin create my-pluginThe CLI walks you through an interactive prompt:
? Display name: My Plugin
? Description: An Omniscio plugin
? Author: Your Name
? Category: other
? Icon — a path to your logo in the package (assets/icon.svg), or a Lucide name for a generic glyph: assets/icon.svg
Scaffolding my-plugin with template: basic...
Installing dependencies...
added 2 packages in 3s
Plugin scaffolded at ./my-plugin/
Next steps:
cd my-plugin
npm run build
npm run devTemplates
Choose a template with the -t flag:
| Template | What you get |
|---|---|
basic (default) | UI only (src/ui/) |
with-backend | UI + backend (src/backend/) with storage permission |
full | UI + backend + cron job + CLI endpoint with storage, cron, and cli permissions |
webview | A flat plain-JavaScript page (ui/index.html + ui/plugin.js) — no TypeScript and no build step; edit and reload |
widget | A sidebar plugin in plain JavaScript, no build step: a tile widget filled from ui/plugin.js, plus a panel page that switches the tile between a list and a number (chrome and chrome.widget permissions) |
# Scaffold with a backend
omniscio-plugin create my-tool -t with-backend
# Scaffold with everything
omniscio-plugin create my-suite -t fullThe webview and widget templates are plain JavaScript with no build step. For widget shapes, tones, icons and permissions, see Build a Widget.
You can also skip the interactive prompts entirely:
omniscio-plugin create my-plugin \
-t basic \
--display-name "My Plugin" \
--description "Does something useful" \
--author "Your Name" \
--category development \
--icon wrenchExplore the Generated Files
After scaffolding, your plugin directory looks like this:
my-plugin/
manifest.json # Plugin metadata, settings, permissions
package.json # npm dependencies and scripts
tsconfig.json # TypeScript configuration
.gitignore # Ignores node_modules/, dist/, *.amcplugin
src/
ui/
index.html # Plugin UI entry point
plugin.ts # TypeScript for the UITIP
See Project Structure for a detailed breakdown of every file.
Build
Compile TypeScript, copy non-TS assets (HTML, CSS, images) into dist/, and bundle the panel script:
cd my-plugin
npm run buildExpected output:
✓ Manifest validated
ℹ Compiling TypeScript and bundling panel scripts...
✓ Bundled dist/ui/plugin.js
✓ Build completenpm run build runs omniscio-plugin build, which does four things:
- Validates
manifest.jsonagainst the SDK schema - Runs
tscto compile TypeScript intodist/ - Copies non-TypeScript files from
src/ui/intodist/ui/(HTML, CSS, images) - Bundles each script a page loads into one self-contained file, so the page can load it as a plain script (details)
Validate
Run validation checks without producing build output. Useful for CI pipelines:
npx -p @omniscio/plugin-cli omniscio-plugin validateExpected output:
✓ Manifest schema
✓ SDK version declared (2.0.0)
✓ UI entry point exists (dist/ui/index.html)
✓ TypeScript compilation
✓ All checks passedRun it after npm run build. Before a build there is no dist/, so validate checks your src/ files instead and prints a ⚠ ... is not built yet warning for each entry point.
WARNING
The validate command also scans compiled output for banned imports (electron, better-sqlite3, worker_threads, child_process — the last two in both their bare and node:-prefixed spellings) and fails on a hit. build runs the same scan but only warns, so you catch it earlier, and publish runs it again and refuses to upload — the same rule at all three points. Marketplace plugin backends run under Node's --permission and cannot access these modules directly.
child_process will not work, even though it compiles
child_process is the module authors most often reach for, usually to shell out to a CLI. A marketplace plugin backend runs under Node's --permission, which denies spawning a child process, so the import compiles, the plugin installs — and then every call fails at runtime.
Use HTTPS to talk to external services instead; the sandbox allows outbound network requests. If you genuinely need a host capability the plugin API does not expose, ask for it rather than shelling out.
Package
Bundle your plugin into a .amcplugin archive:
npx -p @omniscio/plugin-cli omniscio-plugin packageExpected output:
Packaged: my-plugin-1.0.0.amcplugin (0.01 MB)If dist/ does not exist, the package command builds automatically before packaging.
The archive contains:
manifest.jsondist/(compiled output)assets/(if present)
WARNING
The marketplace enforces a 50 MB package size limit. The CLI warns you if your archive exceeds this.
Install in Omniscio
Omniscio has no "Install from file" control. A .amcplugin file is the upload format for the Marketplace -- it is not something the app opens locally. There are two real roads in:
Road 1: local development
From your plugin directory:
omniscio-plugin installExpected output:
ℹ Building plugin...
✓ Installed my-plugin → <Omniscio data folder>/profiles/<your-account>/plugins/my-plugin
✓ Hot-reloaded in Omniscioinstall validates your manifest, builds the plugin, copies it into the plugins folder of the running Omniscio, and hot-reloads the app -- no restart. It asks Omniscio where that folder is, so it follows per-account profiles and any custom data folder.
| Flag | What it does |
|---|---|
-w, --watch | Re-install and hot-reload on every source change |
--no-build | Install the files as they are, without building first |
--no-reload | Copy the files only; leave the running Omniscio alone |
When Omniscio cannot be asked (it is not running, or the CLI cannot find its control token), the files still go somewhere and the command tells you where -- start Omniscio and run omniscio-plugin install again so they land in the folder it loads from. A restart alone will not move them.
Your plugin is then running inside Omniscio. Open it from the sidebar to see your UI.
Loading a built folder by hand
Turn on Settings > Plugins > Advanced plugin settings > Developer Mode, then use Load unpacked plugin to point Omniscio at your built plugin folder. That is the same local load path, done through the app instead of the CLI.
Road 2: the Marketplace
The Marketplace is the road for everyone who is not developing the plugin. Publish it (see Publishing), and once the submission is approved anyone can install it from Settings > Plugins > Browse Marketplace with one click on Install -- no files to pick.
The Marketplace also uninstalls plugins and checks for new versions.
Next Steps
- Project Structure -- understand every file in your plugin
- Manifest -- configure settings, permissions, storage, cron, and CLI endpoints
- Permissions -- learn what each permission grants
- Dev Shell -- develop with hot-reload outside Omniscio
- Publishing -- submit your plugin to the Omniscio Marketplace