Overview
A Timon plugin is an ESM npm package with two independent, optional halves: host code executed by the daemon and a browser bundle loaded by the client. Host extensions use a restricted PluginContext; UI extensions register components in slots through ClientContext.
The same registration model supports widgets, pages, behaviours, themes and layouts. A bundle installs several separate plugin identities. Start with Your first plugin, then read the manifest, slots and permissions.
Providers are plugins too: Write a provider explains declarative packs, profiles with credential refresh, and provider definitions for a CLI, an ACP agent or a remote service. A compatible endpoint used only on your own installation needs no plugin; use Add a provider in Settings.
The public contract
Import TypeScript contracts from @timon-ai/sdk. A provider author also imports code from @timon-ai/sdk/provider and tests it with @timon-ai/sdk/testing (Write a provider). The package in this source tree is currently private; no public npm availability is assumed. Obtain the SDK and example packages with your developer distribution.
apiVersion is the minimum contract a plugin requires. A daemon accepts versions up to its implemented contract and rejects a newer requirement. The current source exports contract 20. API 3 added business events, workflows, transports and connections; API 4 added live updates from the host half to the browser half; API 6 lets a provider's discoverModels report thinking levels per model (providers) and adds AnchoredPopover to the UI kit. API 7 lets a provider plugin drive an agent with no local process (a remote dialect). API 11 gives provider authors the SDK's conformance bench, and a plugin declaring it has its dialect checked at registration. API 12 adds ctx.provider: the runtime a provider is written with, supplied by Timon so that a fix reaches every plugin, the services that need a privilege only Timon holds, and registration of a whole ProviderDefinition. API 13 lets a plugin add a control or a drawer to the built-in browser (useBrowserChrome, browser:control) and replace the model selector through the model.picker slot (cookbook). API 14 adds kind: dictation: a speech-to-text engine in the dictation.engine slot, with its dictation manifest block and the sensitive dictation:engine permission. API 15 lets a plugin replace the folder browser of Settings, projects and agents, and the plugin-archive and CLI-binary file pickers, through the directory.picker slot (useDirectoryBrowser, cookbook). It also lets ctx.agents give an agent its skills, MCP servers and team on create / update, and adds ctx.agents.teams to list and create teams of bots (agents). It also gives a plugin its own SQLite database, ctx.sql, migrated from its manifest (database and migrations). API 16 lets a provider plugin add its own sections to its provider's page in Settings, through the settings.provider.section slot (useProviderPage, ProviderSection, providers). It also lets a plugin replace a provider's row in the providers list and the first-run step through the providers.row slot (useProviderRow, ProviderRow). API 17 lets a plugin show cards at the bottom left of the interface, or paint every card its own way, through ctx.notices and the notices and notices.card slots (useNotices, useNotice, questions and notifications), and replace the update window through the updates.dialog slot (useUpdateDialog, slots); the updates.banner slot is deprecated. API 18 gives a provider plugin a private folder per profile it launches, kept across that profile's missions (ctx.provider.scratch.profile, providers). API 19 adds ctx.forge: a plugin reads the issues, pull requests and checks of a project's GitHub repository and proposes a comment a person publishes, without holding gh or the project's account (The GitHub repository of a project). It also lets a widget join the Git stack with the stack's project (useGitStackProject, GitStackProjectPicker), open a TO DO idea (useTodoOpener), and add a row to a project's window through the project.settings slot (useProjectSettings); a stacked widget gets a short tab name, a count and a dot on its tab, and its header actions in the widget's menu (tabTitle, liveCount, useWidgetCount, useWidgetAttention, useWidgetMenu, useWidgetInFront, Widget). It also adds the kanban.todo.landing slot, the pull request badge of a TO DO idea read from useTodoItem().landing (slots), with landing on the ideas ctx.kanban.todos returns and as a filter of its list. It also lets a plugin replace a Kanban job's window and the Publish on GitHub window through the kanban.job.dialog and forge.publish.dialog slots (useJobDialog, usePublishDialog). It also lets a plugin redraw the card that offers to open a folder the mission fence refused, through the chat.fence slot (useFenceGrant, slots). It also lets a mascot pack draw a whole head itself, gives ctx.agents an agent's reporting line (reportsTo, agents), lets ctx.kanban.list take several statuses at once and ctx.mcpServers.put take back a get result. API 20 names React 19's own APIs in the shared react module (use, useActionState, useOptimistic, useTransition, useDeferredValue, startTransition, forwardRef, useImperativeHandle, Children, isValidElement, Manifest). It also adds the optional terminal field of the ctx.system.doctor() report (administration). It also lets a provider declare the native build behind an npm launcher (declares.binary.npmNative, providers). It also adds ctx.caller(), which tells a route handler whether a person, an agent's mission or a service made the request (permissions). It also adds ctx.fetchPublicImage: an image from any public host without an allowlist entry, under the sensitive http:public-images permission (Permissions). It also adds onAccountChange to the UI kit, which tells a browser half that another account signed in on the page, so it empties what it read for the previous one (UI kit). It also lets a plugin that redraws the chat.fence card offer Allow for the project (allowProject of useFenceGrant(), with the card's project, scope and requeued, slots). It also lets a plugin redraw an agent's extra folders on the agent's page and in a project's settings, through the agent.folders slot (useAgentFolders, cookbook). It also lets a plugin redraw a pull request's detail window, opened from the Pull requests widget, through the kanban.pull.dialog slot (usePullRequestDialog, cookbook). It also lets a provider manifest list up to 16 sign-in folders in provider.credentialDirs instead of 4 (providers). The calls added by contracts 8 to 10 are on the page of the feature they belong to, with their permissions in Permissions. ctx.can() supports optional capabilities after admission; it cannot make an unknown manifest permission valid on an older daemon.
PluginContext is an API façade, not a JavaScript sandbox. A host plugin runs in the daemon process with the OS account's privileges. Install only code you trust; permissions and signatures do not turn hostile Node code into isolated code.
The app window's Content-Security-Policy runs only the scripts loaded from the app's own origin and the inline scripts Timon writes itself, each marked with a nonce that changes on every page load. Your browser bundle loads that way, as a module. A <script> element your code adds with inline content, or markup you inject that contains one, is blocked by the browser: load code with import() from your package instead. A conversation document is the exception: its HTML runs its own inline scripts, in a sandbox.
Package identity
The npm package name and timon.id are separate. Use your own npm scope. The current manifest validator accepts IDs matching [a-z0-9-]{3,40}, such as acme-weather; it does not accept a scoped ID containing /. Bundled product IDs use their own catalogue convention. Use the manifest ID for configuration, plugin commands and bundle membership.
Always encode IDs used as URL segments with encodeURIComponent; do not make routing depend on the present character restrictions.
Continue with the example cookbook for verified source excerpts from all supplied packages. Before sending a plugin to anyone else, read Ship to someone else: no absolute path or personal data, everything in the package, and the check to run first.
The SDK API reference is generated from the public TypeScript entry points: @timon-ai/sdk, @timon-ai/sdk/provider and @timon-ai/sdk/testing. Implementation comments and private source links are deliberately excluded; use these guides for behavioural explanations.