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

# Connect your agent

You register Taji's MCP bridge with your agent, watch one short session turn into wire requests, and learn what the agent may do without you. You need Taji [installed](https://docs.taji.is/guide/app.md) or [built](https://docs.taji.is/guide/install.md), an MCP client such as Claude Code, and the agent signed in to its vendor ([why](https://github.com/TajiAI/Taji/blob/main/docs/decisions/0002-taji-embeds-no-model.md)).

## Connect over MCP

Your agent reaches Taji through the bridge, a stdio MCP server. It reads the [wire](https://docs.taji.is/reference/glossary.md#wire) with the state dir's agent token; with no `TAJI_WIRE`, its first request boots Taji headless and detached, outliving the session.

**From the installed app.** Run Taji once to lay its skill in `~/.taji`. For Claude Code:

1. Register the bundled `taji-mcp`.

   ```sh tab={"label":"macOS"}
   # macOS
   claude mcp add -s user taji -e TAJI_WIRE=7780 -- /Applications/Taji.app/Contents/Resources/bin/taji-mcp
   ```

   ```powershell tab={"label":"Windows"}
   # Windows
   claude mcp add -s user taji -e TAJI_WIRE=7780 -- "$env:LOCALAPPDATA\Programs\Taji\resources\bin\taji-mcp.exe"
   ```

2. Install the skill:

   ```sh tab={"label":"macOS"}
   # macOS
   /Applications/Taji.app/Contents/Resources/bin/taji-register skills ~/.taji/skills/taji --agent claude-code
   ```

   ```powershell tab={"label":"Windows"}
   # Windows
   & "$env:LOCALAPPDATA\Programs\Taji\resources\bin\taji-register.exe" skills "$env:USERPROFILE\.taji\skills\taji" --agent claude-code
   ```

**From a source checkout**, with Bun, at the repository root:

1. Register the bridge, `agent/src/mcp/stdio.ts`. On Windows, the kernel is `taji.exe`.

   ```sh tab={"label":"macOS and Linux"}
   # macOS and Linux
   claude mcp add -s user taji -e TAJI_WIRE=7780 -e TAJI_BIN=$PWD/target/debug/taji -- bun run $PWD/agent/src/mcp/stdio.ts
   ```

   ```powershell tab={"label":"Windows"}
   # Windows
   claude mcp add -s user taji -e TAJI_WIRE=7780 -e TAJI_BIN=$PWD\target\debug\taji.exe -- bun run $PWD\agent\src\mcp\stdio.ts
   ```

   Against `FRESH=1 make dev`, give `-e TAJI_WIRE=7790 -e TAJI_STATE_DIR=$PWD/target/fresh/state` instead: with nothing on 7780, the bridge's first request boots a headless Taji on your own state.

2. Install the skill:

   ```sh
   bun run agent/src/register.ts skills $PWD/agent/skills/taji --agent claude-code
   ```

`-e TAJI_STATE_DIR=<dir>` reads the token from another state dir. `-s user` registers Taji for every project, where `taji-register remove` finds it. A new session has nine tools (`describe`, `read`, `call`, `commit`, `stage`, `order`, `wait`, `link_choose`, `ui_open`: [the wire reference](https://docs.taji.is/reference/wire.md#the-mcp-tools)) and follows [`SKILL.md`](https://docs.taji.is/skill.md).

**Another client** (Claude Desktop, Codex, Cursor, Grok, OpenCode) keeps its own config file, which the app's `bin/taji-register` writes: `taji-register list` prints each agent found, `TAJI_WIRE=7780 taji-register mcp <taji-mcp> --agent <id>` registers the bridge (`claude-desktop`, `codex`) and `taji-register skills ~/.taji/skills/taji --agent <id>` the skill. Without `--agent`, each goes to every agent found. A source checkout gives the client the same `command`, `args` and `env`. Restart the client. Where your organization manages MCP servers, the client may ignore Taji's entry: ask its administrator.

## Watch a session reach the wire

Each tool call is one request to the wire, a route and a JSON body, so anything your agent does you can send yourself. The session below reads a chart, adds an RSI to chart 1 and stages a `taji_sim` order. `calls.json` lists the wire requests its tool calls make; `{desk}` stands for the desk's id, which the agent reads off `read/desks`.

```json file="examples/agent/calls.json" title="calls.json"
[
  {"name": "view", "method": "GET", "route": "/read/desk/{desk}/chart/1/view"},
  {"name": "indicator", "method": "POST", "route": "/verb/desk/{desk}/chart/add_indicator", "body": {"pane_id": 1, "definition": "rsi", "params": {}}},
  {"name": "quote", "method": "GET", "route": "/get/quotes?symbols=equity%3ASPY"},
  {"name": "stage", "method": "POST", "route": "/verb/trading/taji_sim/draft/stage", "body": {"symbol": "equity:SPY", "side": "buy", "qty": 10, "price": 135, "spot": 142.3, "order_type": "limit"}, "shot": true}
]
```

![Chart 1 with an RSI below the candles, a staged 10-share buy limit on the price scale, and the order ticket open](https://raw.githubusercontent.com/TajiAI/Taji/main/docs/guide/examples/agent/shot.png)

Each tool call below becomes the request beside it. The bridge adds the leading `/`, URL-encodes a `query` and sends every request with the agent token.

1. **`read {route: "read/desk/<id>/chart/1/view"}`** is `GET /read/desk/{desk}/chart/1/view`. The answer says what the chart shows: its symbol, timeframe, style and settings.
2. **`describe {route: "verb/desk/<id>/chart/add_indicator"}`** is `GET /read/routes`, the catalog of every route. The bridge keeps the catalog and answers from the one row: its summary, scopes, effect, the tool that sends it, its body's schema and its refusals. The catalog is too large to show, so `calls.json` does not make this request; `read`, `call`, `commit`, `stage` and `order` each check their route against it before they send.
3. **`call {route: "verb/desk/<id>/chart/add_indicator", body: {pane_id: 1, definition: "rsi", params: {}}}`** is `POST /verb/desk/{desk}/chart/add_indicator` with that body. `call` sends a route whose effect is `write`. The answer names the binding's `node`, and the empty `params` leave the indicator's defaults, the `RSI 14` in the picture.
4. **`read {route: "get/quotes", query: {symbols: "equity:SPY"}}`** is `GET /get/quotes?symbols=equity%3ASPY`, the price the agent stages against.
5. **`stage {route: "verb/trading/taji_sim/draft/stage", body: {symbol: "equity:SPY", side: "buy", qty: 10, price: 135, spot: 142.3, order_type: "limit"}}`** is `POST /verb/trading/taji_sim/draft/stage` with that body. `stage` sends a trading route no venue hears, so nothing is placed and nothing waits for you. The answer's `rev` is the draft's version, which placing it needs.

The answer to the view read:

```json file="examples/agent/view.json"
{
  "adjust_dividends": false,
  "axis": "right",
  "bar_count": 0,
  "box": null,
  "box_method": null,
  "box_size": null,
  "compare": [],
  "instrument": {
    "class": "equity",
    "facts": {
      "min_qty": "1",
      "multiplier": "1",
      "qty_step": "1",
      "ticks": [
        {
          "from": "0",
          "increment": "0.0001"
        },
        {
          "from": "1",
          "increment": "0.01"
        }
      ]
    },
    "item": "equity:SPY",
    "price_format": "decimal",
    "trades_as": {
      "Equity": {
        "symbol": "SPY"
      }
    }
  },
  "invert": false,
  "legs": false,
  "link": null,
  "panes": [],
  "pin": null,
  "price_range": null,
  "profile": false,
  "ratio": null,
  "scale": "linear",
  "session": null,
  "settings": {
    "alert_active_only": true,
    "alert_color": "#dbdbdb",
    "alert_hide_toasts": true,
    "alert_lines": true,
    "alert_sound": true,
    "alert_volume": 50,
    "area_line": "#2962ff",
    "auto_ladder": [
      "1m",
      "5m",
      "15m",
      "1h",
      "4h",
      "D",
      "W",
      "M"
    ],
    "auto_max_px": 30.0,
    "auto_min_px": 1.5,
    "auto_timeframe": true,
    "background": "#0f0f0f",
    "background_top": "#1f1f1f",
    "background_type": "solid",
    "bar_change": true,
    "bar_down": "#ff6a9c",
    "bar_up": "#34e8c6",
    "baseline_bottom": "#ff6a9c",
    "baseline_level": 50,
    "baseline_top": "#34e8c6",
    "bid_ask_line": false,
    "bid_ask_value": false,
    "body": true,
    "body_down": "#ff6a9c",
    "body_up": "#34e8c6",
    "border": true,
    "border_down": "#ff6a9c",
    "border_up": "#34e8c6",
    "box_percent": null,
    "brick_down": "#ff6a9c",
    "brick_up": "#34e8c6",
    "column_down": "#ff6a9c",
    "column_prev_close": true,
    "column_up": "#34e8c6",
    "countdown": true,
    "crosshair_color": "#8c8c8c",
    "crosshair_style": "dashed",
    "day_change": false,
    "day_of_week": true,
    "events_dividends": true,
    "events_earnings": true,
    "events_earnings_breaks": false,
    "events_filings": false,
    "events_insiders": false,
    "events_news": true,
    "events_splits": true,
    "executions": true,
    "ext_line": true,
    "ext_value": true,
    "grid_h": true,
    "grid_h_color": "#3c3c3c",
    "grid_h_style": "dotted",
    "grid_v": true,
    "grid_v_color": "#3c3c3c",
    "grid_v_style": "dotted",
    "high_low_color": "#2962ff",
    "high_low_line": false,
    "high_low_value": false,
    "hlc_bars": false,
    "hlc_close": "#2962ff",
    "hlc_high": "#00bcd4",
    "hlc_low": "#e91e63",
    "indicator_inputs": true,
    "indicator_labels": false,
    "indicator_titles": true,
    "indicator_value_labels": true,
    "indicator_values": true,
    "last_line": true,
    "last_value": true,
    "line_break_lines": 3,
    "line_color": "#2962ff",
    "logo": true,
    "nav_buttons": "hover",
    "no_overlap": true,
    "ohlc": true,
    "orders": true,
    "plus_button": true,
    "pnf_one_step_back": false,
    "pnf_reversal": 3,
    "precision": null,
    "prev_close_colors": false,
    "prev_close_line": false,
    "prev_close_value": false,
    "scale_modes": "hover",
    "scale_price_only": false,
    "scale_text": "#b8b8b8",
    "separator_color": "#2e2e2e",
    "session_breaks": false,
    "symbol_label": false,
    "title": true,
    "title_source": "description",
    "volume": false,
    "wick": true,
    "wick_down": "#ff6a9c",
    "wick_up": "#34e8c6"
  },
  "style": "candles",
  "symbol": "equity:SPY",
  "timeframe": "D",
  "visible_range": null,
  "window": null
}
```

The answer to adding the RSI:

```json file="examples/agent/indicator.json"
{
  "node": "desk/01a2426c-1498-7325-ab36-7bac945122e5/chart/indicators/01a2426c-170c-73ac-8367-9deedbb7e559",
  "seq": 1796410708898373
}
```

The quote:

```json file="examples/agent/quote.json"
[
  {
    "symbol": "SPY",
    "ts": "2026-12-04T18:58:29.984664+00:00",
    "ts_init": 1796410709984664000,
    "provider": "samplefeed",
    "delayed": false,
    "halted": null,
    "session": null,
    "bid": 142.3,
    "ask": 142.32,
    "last": 142.31,
    "bid_size": null,
    "ask_size": null,
    "book_ts": null,
    "last_ts": null,
    "last_exchange": null,
    "last_conditions": [],
    "prev_close": 142.62,
    "change": -0.31,
    "change_pct": -0.2174,
    "session_close": null,
    "session_change": null,
    "session_change_pct": null,
    "market_session": "regular",
    "next_session": "post",
    "next_at": "2026-12-04T21:00:00+00:00"
  }
]
```

The answer to staging:

```json file="examples/agent/stage.json"
{
  "node": "trading/taji_sim/draft",
  "rev": "01a2426c-1b61-76e1-907e-f45e7694ea73"
}
```

*Captured 2026-12-04 on a headless kernel reading a made-up daily series and quote for SPY.*

To send the draft, the agent calls `order {route: "verb/trading/taji_sim/draft/place", body: {rev: "<the stage's rev>"}}`. While the account's Agent approvals is on, the kernel parks that place as an approval and waits for you in Taji's window ([Bound your agent](#bound-your-agent)).

## Use the conversation

1. Click the agent's orb at the canvas's foot or press `⌘K` (`Ctrl+K` on Windows and Linux) to slide up the composer (a click elsewhere hides it). Enter starts the desk's chat; **New conversation** in the left bar starts another and lists the desk's chats.
2. Pick an agent in the composer: Claude Code (`claude`), Codex (`codex`), Antigravity (`agy`), Grok (`grok`), Cursor (`cursor-agent`) or Muse (`muse`). One missing from `PATH` is disabled, with its reason. Pickers beside the field set mode and model.
3. Start with `/` for commands: window ones (`/open`, `/split`, `/layout`, `/symbol`, `/alert`) and plugins' (`/screen`) need no agent. A pane head's **Ask** orb puts that pane in your draft.
4. Or [talk](https://docs.taji.is/ai/voice.md): link [OpenAI](https://docs.taji.is/catalog/openai.md) or [Gemini](https://docs.taji.is/catalog/gemini.md) in Connections › Voice, then press Voice or `⌘⇧V` and speak.

The conversation floats; **Place as pane** puts it in the canvas, **Pop out** in a window. `✕` hides it, its turn running on. Approval cards dock under its head while it shows, else at the canvas's top centre.

Each chat starts in an empty directory, without your settings, MCP servers or plugins. Claude Code's and Codex's adapters install from lockfiles Taji ships, scripts off, needing Node 22+, `npm` and the network once per version.

The agent chip beside the book chip shows a chat's state (Working, Needs approval, Waiting on you, Stopped or Failed); its popover has Open chat, Show chat, Stop and, during a guided link, Take over. A chat opens in Auto, where the client asks nothing and only Taji's own holds apply ([below](#bound-your-agent)). In a mode that asks (Claude Code's Manual, Codex's Read-only) you allow each call, `commit` and `order` included.


## Talk to it

Speak to the agent instead of typing: [Talk to your agent](https://docs.taji.is/ai/voice.md).


## Bound your agent

- **It can** read data and the desk, drive the window (desks, layouts, panes, charts, indicators, alerts, watchlists, notes and most settings), and stage, place and cancel orders. Removing a drawing an alert rides disarms that alert.
- **It waits for you.** An order-sending verb, or a cancel or disarm stripping an exit over held shares, waits for your approval while its account's Agent approvals is on, as a live account's is until you turn it off ([Trade](https://docs.taji.is/guide/trading.md)). These always wait: `link/prefer`, `link/vault/{ttl,lock}`, `link/{venue,data}/{link,unlink}`, `link/venue/{oauth,redirect,start,cancel,redetect}`, `link/account/alias`, `agent/{detect,connect,disconnect}`, an account's `approve`, and a `ui/settings/set` of `taji.trading` (One-click trading), `taji.plugins.registry` (where plugins install from), `taji.keys`, `update_url` or `report_url`.
- **It cannot**, by its MCP tools (the agent token; this list binds them), seal, unlock or erase the vault, start a conversation, search your chats, set the data budget, install, enable, disable or uninstall a plugin, or switch an account's approvals. Given a shell, it runs as you and can read `wire-token` ([Security](https://docs.taji.is/architecture/security.md)), reaching what only the local token holds, the vault and plugin installs included; only your hand in Taji's window approves its acts or turns approvals off.
- **It never sees a key you hold.** You type keys into the link sheet, no read returns one, and a link it sends carrying a key is refused, save one it generated on the provider's page in a guided link and hands the sheet with `flow/secret` for you to link ([0005](https://github.com/TajiAI/Taji/blob/main/docs/decisions/0005-no-key-reaches-a-client.md)).

`commit` and `order` carry MCP's `destructiveHint`; `stage` (draft, route, preview) does not: no venue hears it. Taji's own hold is the approval card.


## Your phone

Message the agent from a chat app, or open the whole window on your phone: [Reach your agent from your phone](https://docs.taji.is/ai/phone.md).


## If it fails

- **A conversation's start is refused in the vendor's words** (say, a sign-in). Do as told, then press Try again, or Pick another agent.
- **An agent is disabled.** Its reason, the missing command or Node 22, is `why` in `GET /read/agent/adapters`.
- **429 `rate_limited`.** The agent spent its 600 reads or 120 writes a minute; it waits out `rest_after`.

## Next

- [Place and cancel orders](https://docs.taji.is/guide/trading.md): the ticket, and whether your agent's orders wait for you.
- [The wire](https://docs.taji.is/reference/wire.md): every route, scope and refusal the tools reach.
- [The Taji skill](https://docs.taji.is/skill.md): how your agent drives Taji.
- [Security](https://docs.taji.is/architecture/security.md): the tokens, the vault and what an agent with a shell can reach.
