Skip to main content

Plugins

A plugin is the deepest way to fit Taji to your workflow: a manifest and the code behind it that add a backend, panes and chart layers, or indicators of your own, served on the same wire as Taji's.

Everything Taji does beyond its core is a plugin: every data source, brokerage, messaging channel and pane, the chart included. A plugin declares what it adds in one file, taji-plugin.toml, and the kernel serves each addition on the same wire your window and your agent already use.

  • A backend. A plugin adds verbs your agent calls as tools, nodes it reads, data sources and data products of its own (Your first plugin, Add a data source).
  • Views. It adds panes to Taji's window and layers drawn on the chart from its own products (Write a pane, Draw a chart layer).
  • Indicators of its own. It ships script indicators that you draw on a chart like any other (Your first plugin).
  • Published by you. You pack a plugin into a registry you sign, and Taji installs it by its consent digest, then updates or removes it (Publish a plugin). There is no hosted registry, and a release kernel holds no registry key: installing from a registry needs a debug kernel and your own signed registry.

How it works​

  1. Declare. You list what the plugin adds in taji-plugin.toml: verbs, nodes, sources, products, indicators, panes and layers (the manifest).
  2. Serve. A program answers what the manifest declares: a process in any language that speaks taji-plugin/1, or a Rust crate compiled into the kernel (how one runs).
  3. Use. The kernel reads every plugin into one registry at boot, and the wire, your agent's tools and its skill all come from that registry, so a plugin's verb is callable from the window and from your agent the moment it loads.

This page then tells you which kind of plugin you need and what a process plugin can and cannot do.

What is a plugin?​

A plugin is a directory holding a manifest, taji-plugin.toml, and the code that serves what the manifest declares: routes your agent can call (verbs), values it can read (nodes), data sources, its own data products, script indicators, panes and chart layers. The manifest reference lists every table.

The registry is what GET /read/plugins serves. The kernel never names a plugin: it knows only the seam every plugin is built on, taji_plugin (0003).

What a plugin adds is its own API, not Taji's. A vendor's data, though, fills a platform product, such as bars or quotes, that a second provider could fill too, so no vendor's shape reaches your window or your agent (0004).

Which kind do I need?​

Pick the row that matches what you want Taji to do. Each kind is a set of manifest tables; one plugin can be more than one kind, as a feature that also draws a layer.

You wantKindRunsDeclaresStart with
Your agent to call your code and read its stateverb and nodea process[[kernel.verbs]], [[kernel.nodes]]Your first plugin
Bars, quotes or a product of your own from a vendor or a filesourcea process, in Python or Rust[[sources]], [[products]]Add a data source
A view of your own in Taji's windowpanea framed page beside its process (a window-only plugin runs no process, so TAJI_PLUGINS refuses it: it loads only through a registry install)[[ui.panes]]Write a pane
A product computed from Taji's data, with a script and a chart layerfeaturea process; taji plugin new --feature scaffolds one in Rust[grants] reads, [[products]], [[kernel.indicators]]Build a feature plugin
One of your products drawn on the chartlayerthe window, from a feature's rows[[ui.layers]]Draw a chart layer
A script of your own that ships with a plugin and reads data.productindicatorthe kernel compiles the script[[kernel.indicators]] with category, description and needsThe manifest, Inputs: data.product
Alerts and fills sent to a messaging app, and your replies heardchannelcompiled into the kernela Channel armWrite a channel
A data source or brokerage built into Taji, with ordersprovidercompiled into the kernel[[sources]], [[link]], a venue armWrite a compiled-in provider

Once a process plugin works, Publish a plugin packs it into a registry you sign so Taji installs it.

How does a plugin run beside the kernel?​

A plugin runs in one of two tiers. Tier 1 is compiled in: a Rust crate composed into a kernel binary with taji::Kernel::new().add(P::default).run(), which builds inside Taji's tree only (plugins/hello is the smallest). Tier 2 is a process: a program in any language that speaks taji-plugin/1, one JSON object a line over its stdin and stdout (the process protocol). Tier 2 is the tier you can write outside the tree, for some kinds (below).

Read it from the left. Your window and your agent reach the kernel over the wire, and the kernel's registry answers every plugin's routes. A compiled-in plugin runs inside the kernel's process. A process plugin runs as its own program in the OS sandbox and talks to the kernel over stdio alone; its only network is its own proxy, which reaches the hosts its manifest grants. A pane is a page the window draws in a sandboxed frame, which holds no token and reaches the kernel only through the window.

The kernel starts a process plugin at its first call, under its sandbox. A call unanswered in call_timeout_s (30 s by default) answers 504 timeout and the process keeps running. If the process exits, every call in flight answers 502 plugin_exited, and the next call restarts it after 1, 2, 4, then 8 s. The fifth exit in 10 minutes turns it off until the next boot, so one broken plugin never takes the kernel down with it.

What does a process plugin look like at work?​

plugins/echo is the smallest process plugin, written in Rust on taji-sdk. Its manifest declares one verb, echo/say, which takes {"text"}, and one node, echo, which reads the last text it was told. Staged in TAJI_PLUGINS, it loads beside the kernel's compiled-in plugins. Telling it hello with POST /verb/echo/say answered:

{
"said": "hello"
}

Then GET /read/echo read its node:

{
"text": "hello"
}

And GET /describe/plugins counted the registry:

{
"line": "23 plugins, 23 enabled, 1 verbs"
}

Captured 2026-12-03 on a keyless headless kernel, with plugins/echo staged in TAJI_PLUGINS.

Follow the call through the outputs:

  • Say. The kernel matched echo/say to echo's row in the registry, started its process in the sandbox and sent it the call over stdio. The process answered {"said": "hello"}, and the kernel served that answer as the verb's.
  • Read. Having answered, the process sent the kernel a set of its node. The kernel holds the value, so GET /read/echo read hello without asking the process again.
  • Count. The registry holds 23 plugins: the 22 compiled into this build and echo. Echo's is the only plugin verb, and every one of them is enabled.

What can a process plugin not do, and why?​

A process plugin is code you did not write running on your trading machine, so the kernel admits it with less than a compiled-in plugin gets. It cannot:

  • Hold a key, a token or any secret value. One that signs in declares [sign_in] of kind key or oauth and exactly one source; its process holds markers that its relay swaps for your key toward the declared hosts alone (0005).
  • Reach the network except through CONNECT on its own proxy to a host in [grants] net.hosts, or through its relay. It cannot reach the wire, localhost or a port Taji listens on.
  • Place or read orders, or read an account: its [grants] reads names data products only, and venues are compiled in.
  • Draw in a browser, or in Taji's window outside its frame, except a [[ui.layers]] layer, which the window draws from the Shapes a stock renderer or your packed builder returns (Draw a chart layer).
  • Declare [[kernel.fields]], a skill other than ["SKILL.md"], a route under {desk}, a node with a bound path, or a native indicator: its [[kernel.indicators]] rows ship scripts.
  • Serve a core product other than index_daily (history), bars (history and live), quotes and depth (now and live), chains (history), trades (live) and earnings (history, equity).
  • Declare a plan, a cost, limits or a rank. A new source lands last; you reorder sources with POST /verb/link/prefer.
  • Take a first-party provider's id, or a source id other than its plugin's id or <id>-<word>.
  • Run on a kernel outside its manifest's taji range, or unconfined on a release kernel: only a debug build under TAJI_UNSANDBOXED=1 skips the sandbox. Before any process starts, the kernel runs its own binary under a plugin's sandbox as a canary, and starts none if the sandbox lets the canary through.

Which kinds can you build outside a Taji checkout?​

Taji publishes taji-sdk on crates.io and no other SDK, and taji-open, the crate that builds the taji binary (taji plugin new, check and dev), is not published: you build taji once from a checkout. Past that:

KindOutside a checkoutWhat needs one
A process in any language over the protocolYes: a manifest and a program
A Rust feature backendYes, on taji-sdk; its layers draw with a stock renderercheck's draw step, which says SKIP
A Python pluginNothe Python SDK is not published, and the runtime is the checkout's .python
A pane, or a custom layer builderNoui/pack.ts and bun; @taji/plugin is not published; check's pane step says SKIP
A provider or a channelNoit is compiled into the kernel

Which source answers a read?​

A read that names no provider falls past every source that is unlinked, off (data.<id>=false), down (the fifth exit), failing or missing the symbol. When none serves it, the answer is 404 not_listed or 501 not_served. A read pinned with provider=<id> never falls. On an Arrow answer, the metadata's provider names the source of each item.

What do you build against?​

Outside Taji's tree you hold this guide, schema/taji.json and an SDK, for the kinds above. schema/taji.json is the contract, version 0.7.0 (taji_plugin::API): the manifest and every message are its $defs, the only surface Taji promises, versioned by the compatibility rules. The SDKs carry no promise while that version is 0.x.

SDKServesFrom
Rust, taji-sdkverbs, nodes and products; reads the hub through Cx::get and Cx::streamcrates.io; source in packages/taji-rs
Python, tajiverbs, nodes and data sourcesthis repository, packages/taji-py/src/taji/__init__.py
Window, @taji/plugina pane's frame and its port to the windowthis repository, packages/plugin (a plugin's window half)
Compiled in, taji-pluginevery kind, inside the kernelthis repository, engine/crates/taji-plugin

Taji publishes none of the others to PyPI, npm or crates.io, and a package of those names there is not Taji's. Either process SDK refuses to start when what it registers differs from the manifest. taji plugin new <id> --feature scaffolds a Rust feature plugin, and --pane a window-only one that draws a Chart.

What is not built yet?​

  • The author loop is boot discovery, taji plugin new, taji plugin check (fixtures, no kernel), taji plugin dev (a throwaway kernel playing the fixtures live) and a local registry. A change to the manifest or the program is not reloaded: stop plugin dev and run it again. The window half is the exception: bun run ui/pack.ts <dir> --watch repacks the pane's <dir>/ui/index.js and each custom layer builder on every save, and with TAJI_PLUGINS=<dir>/.. and taji ui, reopening the pane loads the new bundle. There is no hosted registry, and a release kernel installs from none.
  • Rows cross the process protocol as JSON, bars as decimal strings, not as Arrow, which the wire's get answers.

What plugins ship with Taji?​

To change or debug a vendor plugin, read its plugins/<id>/ARCHITECTURE.md: how the vendor works and how Taji is built on it, as TradeStation's.

Brokerages and data: Alpaca, Cboe, Databento, SEC EDGAR, FRED, Interactive Brokers, Massive, Robinhood Agentic, Robinhood Web, Schwab, SSGA, TradeStation, Tradovate, Yahoo Finance.

Channels (each carries every alert and every fill, exit, rejection, approval and relink, to every linked channel, Webhook included): Discord, iMessage, Slack, Webhook, WhatsApp.

Voice: Gemini, OpenAI.

Panes: Book, Calendar, Chart, Ladder, Options, Reference, Stock Screener, Watchlist.

Indicators: Indicators.

Features: GEX, Order flow, Dark pool, Sector heatmap. None is compiled into taji-open or carried by the packaged app, and no registry serves them: you build one from a source checkout and stage it in a directory TAJI_PLUGINS names (the GEX recipe). Sector heatmap has no backend, so a kernel refuses it under TAJI_PLUGINS; its page says how it installs.

Remote access: Tailscale.

The examples, fixtures and shared library the guides and gates use have no page: plugins/hello, plugins/echo, plugins/pyecho, plugins/outsider, plugins/keyed, plugins/probe, plugins/pyfeed, plugins/gexfeed, plugins/samplefeed, plugins/pyvendor and plugins/robinhood-reads (NO_PAGE in engine/crates/taji/tests/docs.rs).

What proves these claims?​

Each claim on this page is held by a gate in engine/crates/taji/scripts/ or a test:

  • process_gate.sh: verbs, nodes, MCP describe, restart, a refused range or claim, an indicator, plugins/probe and plugins/echo.
  • python_gate.sh: the Python runtime and plugins/pyecho; with GATE_ONLINE=1, plugins/pyvendor.
  • outsider_gate.sh: index_daily, earnings, a product of the plugin's own, quotes, the store across a restart, plugins/pyfeed, plugins/keyed and the fall-through.
  • plugin_install_gate.sh: the install lifecycle. frame_gate.sh: framed panes. plugin_gate.sh: plugins/hello.
  • cargo test -p taji-open --test signs_in and cargo test -p taji-host --test relay: sign-in and the relay.

See also​