> Every Taji docs page as Markdown: https://docs.taji.is/llms.txt

# 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](https://docs.taji.is/plugins/first-plugin.md), [Add a data source](https://docs.taji.is/plugins/source.md)).
- **Views.** It adds panes to Taji's window and layers drawn on the chart from its own products ([Write a pane](https://docs.taji.is/plugins/pane.md), [Draw a chart layer](https://docs.taji.is/plugins/layer.md)).
- **Indicators of its own.** It ships script indicators that you draw on a chart like any other ([Your first plugin](https://docs.taji.is/plugins/first-plugin.md)).
- **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](https://docs.taji.is/plugins/publish.md)). 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](https://docs.taji.is/plugins/manifest.md)).
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](#how-does-a-plugin-run-beside-the-kernel)).
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](https://docs.taji.is/plugins/manifest.md) 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](https://github.com/TajiAI/Taji/blob/main/docs/decisions/0003-plugin-on-sdk-alone.md)).

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](https://github.com/TajiAI/Taji/blob/main/docs/decisions/0004-capabilities-through-the-hub.md)).

## 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 want | Kind | Runs | Declares | Start with |
|---|---|---|---|---|
| Your agent to call your code and read its state | verb and node | a process | `[[kernel.verbs]]`, `[[kernel.nodes]]` | [Your first plugin](https://docs.taji.is/plugins/first-plugin.md) |
| Bars, quotes or a product of your own from a vendor or a file | source | a process, in Python or Rust | `[[sources]]`, `[[products]]` | [Add a data source](https://docs.taji.is/plugins/source.md) |
| A view of your own in Taji's window | pane | a 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](https://docs.taji.is/plugins/pane.md) |
| A product computed from Taji's data, with a script and a chart layer | feature | a process; `taji plugin new --feature` scaffolds one in Rust | `[grants] reads`, `[[products]]`, `[[kernel.indicators]]` | [Build a feature plugin](https://docs.taji.is/plugins/feature.md) |
| One of your products drawn on the chart | layer | the window, from a feature's rows | `[[ui.layers]]` | [Draw a chart layer](https://docs.taji.is/plugins/layer.md) |
| A script of your own that ships with a plugin and reads `data.product` | indicator | the kernel compiles the script | `[[kernel.indicators]]` with `category`, `description` and `needs` | [The manifest](https://docs.taji.is/plugins/manifest.md#kernelindicators), [Inputs: `data.product`](https://docs.taji.is/indicators/inputs.md) |
| Alerts and fills sent to a messaging app, and your replies heard | channel | compiled into the kernel | a `Channel` arm | [Write a channel](https://docs.taji.is/plugins/channel.md) |
| A data source or brokerage built into Taji, with orders | provider | compiled into the kernel | `[[sources]]`, `[[link]]`, a venue arm | [Write a compiled-in provider](https://docs.taji.is/plugins/provider.md) |

Once a process plugin works, [Publish a plugin](https://docs.taji.is/plugins/publish.md) 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](https://docs.taji.is/plugins/protocol.md)). Tier 2 is the tier you can write outside the tree, for some kinds ([below](#which-kinds-can-you-build-outside-a-taji-checkout)).

```mermaid
flowchart LR
  clients["Window and agent"] -->|"wire"| kernel["Kernel registry"]
  kernel --> tier1["Compiled-in plugins"]
  kernel -->|"stdio"| proc["Process plugin"]
  proc --- sandbox["OS sandbox"]
  proc -->|"CONNECT"| proxy["Its own proxy"]
  proxy --> hosts["Granted hosts"]
  kernel -->|"framed page"| pane["Pane in the window"]
```

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:

```json file="examples/overview/say.json"
{
  "said": "hello"
}
```

Then `GET /read/echo` read its node:

```json file="examples/overview/node.json"
{
  "text": "hello"
}
```

And `GET /describe/plugins` counted the registry:

```json file="examples/overview/plugins.json"
{
  "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](https://github.com/TajiAI/Taji/blob/main/docs/decisions/0005-no-key-reaches-a-client.md)).
- 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](https://docs.taji.is/plugins/layer.md)).
- 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:

| Kind | Outside a checkout | What needs one |
|---|---|---|
| A process in any language over [the protocol](https://docs.taji.is/plugins/protocol.md) | Yes: a manifest and a program | |
| A Rust feature backend | Yes, on `taji-sdk`; its layers draw with a stock renderer | `check`'s `draw` step, which says `SKIP` |
| A Python plugin | No | the Python SDK is not published, and the runtime is the checkout's `.python` |
| A pane, or a custom layer builder | No | `ui/pack.ts` and `bun`; `@taji/plugin` is not published; `check`'s `pane` step says `SKIP` |
| A provider or a channel | No | it 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](#which-kinds-can-you-build-outside-a-taji-checkout). `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](https://docs.taji.is/reference/compatibility.md). The SDKs carry no promise while that version is `0.x`.

| SDK | Serves | From |
|---|---|---|
| Rust, `taji-sdk` | verbs, nodes and products; reads the hub through `Cx::get` and `Cx::stream` | crates.io; source in `packages/taji-rs` |
| Python, `taji` | verbs, nodes and data sources | this repository, `packages/taji-py/src/taji/__init__.py` |
| Window, `@taji/plugin` | a pane's frame and its port to the window | this repository, `packages/plugin` ([a plugin's window half](https://docs.taji.is/plugins/window.md)) |
| Compiled in, `taji-plugin` | every kind, inside the kernel | this 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](https://docs.taji.is/catalog/tradestation/architecture.md).

**Brokerages and data**: [Alpaca](https://docs.taji.is/catalog/alpaca.md), [Cboe](https://docs.taji.is/catalog/cboe-daily.md), [Databento](https://docs.taji.is/catalog/databento.md), [SEC EDGAR](https://docs.taji.is/catalog/edgar.md), [FRED](https://docs.taji.is/catalog/fred.md), [Interactive Brokers](https://docs.taji.is/catalog/ibkr.md), [Massive](https://docs.taji.is/catalog/massive.md), [Robinhood Agentic](https://docs.taji.is/catalog/robinhood-agentic.md), [Robinhood Web](https://docs.taji.is/catalog/robinhood-web.md), [Schwab](https://docs.taji.is/catalog/schwab.md), [SSGA](https://docs.taji.is/catalog/ssga.md), [TradeStation](https://docs.taji.is/catalog/tradestation.md), [Tradovate](https://docs.taji.is/catalog/tradovate.md), [Yahoo Finance](https://docs.taji.is/catalog/yahoo.md).

**Channels** (each carries every alert and every fill, exit, rejection, approval and relink, to every linked channel, Webhook included): [Discord](https://docs.taji.is/catalog/discord.md), [iMessage](https://docs.taji.is/catalog/imessage.md), [Slack](https://docs.taji.is/catalog/slack.md), [Webhook](https://docs.taji.is/catalog/webhook.md), [WhatsApp](https://docs.taji.is/catalog/whatsapp.md).

**Voice**: [Gemini](https://docs.taji.is/catalog/gemini.md), [OpenAI](https://docs.taji.is/catalog/openai.md).

**Panes**: [Book](https://docs.taji.is/catalog/book.md), [Calendar](https://docs.taji.is/catalog/calendar.md), [Chart](https://docs.taji.is/catalog/chart.md), [Ladder](https://docs.taji.is/catalog/ladder.md), [Options](https://docs.taji.is/catalog/options.md), [Reference](https://docs.taji.is/catalog/reference.md), [Stock Screener](https://docs.taji.is/catalog/screener.md), [Watchlist](https://docs.taji.is/catalog/watchlist.md).

**Indicators**: [Indicators](https://docs.taji.is/catalog/indicators.md).

**Features**: [GEX](https://docs.taji.is/catalog/taji-gex.md), [Order flow](https://docs.taji.is/catalog/taji-orderflow.md), [Dark pool](https://docs.taji.is/catalog/taji-darkpool.md), [Sector heatmap](https://docs.taji.is/catalog/taji-sectors.md). 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](https://docs.taji.is/cookbook/gex-profile.md)). Sector heatmap has no backend, so a kernel refuses it under `TAJI_PLUGINS`; its page says how it installs.

**Remote access**: [Tailscale](https://docs.taji.is/catalog/tailscale.md).

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

- [Your first plugin](https://docs.taji.is/plugins/first-plugin.md): a Python plugin of your own with a verb, a node and an indicator drawn on a chart.
- [The manifest](https://docs.taji.is/plugins/manifest.md), [the process protocol](https://docs.taji.is/plugins/protocol.md) and [a plugin's window half](https://docs.taji.is/plugins/window.md): the contract, table by table.
- [The plugin platform](https://docs.taji.is/architecture/plugins.md): the registry, the tiers and install, from the inside.
- [Security](https://docs.taji.is/architecture/security.md): what the sandbox, the proxy and the relay hold back.
