Working with kits

Extensions and scripts

Install extensions that add commands and panels to kit documents, and run a workspace .mjs script on the open document without network access.

Updated

By Kition Docs

Verified against Kition Desktop 0.1.1 (0532c350) on 2026-12-02

Extensions add commands, and sometimes side panels, to kit documents. Scripts are single .mjs files in your workspace that you run once on the document in front. Both work through the document's object model, so they change it the same way the kit's own commands do.

Every extension and script runs in a sandbox. An extension gets only the permissions it declares, and a script "cannot reach the network". They work on documents of every kit except HTML and Layout.

Install an extension

Use the switch on an entry to turn the extension off and on, and Remove to uninstall it. Kition keeps installed extensions in its own storage, not in the workspace.

  1. Put the extension in your workspace: its folder (with `extension.json`), or a `.zip` of it.
  2. Open Settings › **Extensions**.
  3. Under **Install from the workspace**, enter the workspace path of the folder, its `extension.json` or the `.zip` (for example `extensions/title-case`), and click **Install**.
  4. Check the entry under **Installed**: its version, the kits it is for, its **Commands** and its **Permissions**.
  5. Open a document of one of those kits and press Cmd/Ctrl+K (or Cmd/Ctrl+. inside the kit) to find the extension's commands and its "Show panel: …" items.

Permissions

What an extension may ask for
Shown asWhat it allows
Read the documentRead the open document through its object model
Change the documentMake changes to the open document
Run kit commandsRun the kit's own commands
Connect to {site}Reach that one web address; no other

Heads up

Install extensions only from people you trust, and read their permissions first. Change the document lets an extension edit any part of the document it runs on.

Run a script

The script's default export receives ctx; ctx.document.run gives it the object model. This script adds "Reviewed: " to the first paragraph of a Doc document and returns the new text:

  1. Save a `.mjs` file in your workspace, for example `scripts/review.mjs`.
  2. Open the kit document you want it to work on.
  3. Press Cmd/Ctrl+K and choose **Run script…**.
  4. Enter the **Script path in the workspace** and click **Run**. Kition reports "Ran {name}" or what failed.
js
export default async function (ctx) {
  return ctx.document.run(async (context) => {
    const body = context.root.body.load()
    await context.sync()
    const first = body.at(0)
    first.text.insert(0, 'Reviewed: ')
    first.load(['text'])
    await context.sync()
    return { kit: ctx.document.kitId, text: first.text.toString() }
  })
}

Version and sources

This guide describes Kition Desktop as of source 0532c350, checked on 2026-12-02. Connected actions also depend on the configured model provider or service. If your installed version is older, some controls may differ.

Related pages

Ready when you are.

Kition is the open pro suite for AI: 16 professional kits and an agent in one free desktop app, for macOS, Windows and Linux.