Build and run Taji from source
You finish with Taji's kernel built from this checkout, running windowed or headless. You need macOS 26 or later on Apple Silicon, Linux (builds on Debian 13, where the sandbox suite passes; CI runs the workspace tests on Ubuntu 24.04, but no installed build has been walked there), or Windows 11 24H2, build 26100.9278 or later (x64); a network, since the build downloads dependencies and keyless data sources read the internet; and disk and time: a cold build takes minutes and target/ passes 10 GB. To use the app instead, install it. Run every command at the repository root, in Git Bash on Windows.
Prerequisites
On Windows, do Windows first.
-
Install your platform's build tools, then
rustup,miseanduv.rustupandmisefetch the pinned toolchain in step 3;uvlays Taji's Python in Build. Each installer's script asks you to follow its on-screen instructions.- macOS
- Linux
- Windows
# macOS: the Command Line Tools, since `make dev` compiles the Touch ID helper with `xcrun swiftc`xcode-select --installcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shcurl -fsSL https://mise.run | shcurl -LsSf https://astral.sh/uv/install.sh | sh# Linux (Debian, Ubuntu)sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential bubblewrap slirp4netns iptables iproute2 ca-certificates curl git python3 xz-utils unzipcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shcurl -fsSL https://mise.run | shcurl -LsSf https://astral.sh/uv/install.sh | sh# Windows, in PowerShellwinget install Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"winget install LLVM.LLVMwinget install --id Git.Git -ewinget install Rustlang.Rustupwinget install jdx.misewinget install ezwinports.makewinget install astral-sh.uvOpen a new terminal (Git Bash on Windows) so the new tools are on
PATH. mise must be 2026.11.15 or later, which readsmise.lock's format; on Windowswinget upgrade jdx.misemoves an older one. -
Clone the repository and enter it.
- macOS and Linux
- Windows
# macOS and Linuxgit clone https://github.com/TajiAI/Taji.gitcd Taji# Windows, in Git Bashgit config --global core.longpaths truegit clone https://github.com/TajiAI/Taji.gitcd Taji -
Install the toolchain
.mise.tomlpins (Rust, Node, Go for the Tailscale sidecar, Bun and pnpm). Without mise, install Rust, Go 1.27, Node 22.13 or later, pnpm 12 and Bun 1.4 yourself.- macOS
- Linux
- Windows
# macOS (zsh)eval "$(~/.local/bin/mise activate zsh)"mise trustmise install# Linux (bash)eval "$(~/.local/bin/mise activate bash)"mise trustmise install# Windows (Git Bash)eval "$(mise activate bash)"mise trustmise install
Build
-
Set up the checkout:
make setupIt adds Rust's
wasm32-unknown-unknowntarget, runspnpm install --frozen-lockfile, unpacks Electron, installs the headless browser the gate scripts drive, and lays Taji's Python, Yahoo's and EDGAR's runtime, in.python. It ends with the interpreter.python/python(python.exeon Windows) in place. -
Build the page, the window, the kernel and the sidecars the kernel spawns from its own directory, in this order: the kernel embeds the page, and a debug kernel spawns
window/.- macOS
- Linux
- Windows
# macOSpnpm --filter @taji/ui buildpnpm --filter @taji/window buildcargo build --locked -p taji-openmake sidecar whatsapp unlock# Linuxpnpm --filter @taji/ui buildpnpm --filter @taji/window buildcargo build --locked -p taji-openmake sidecar whatsapp# Windows (Git Bash): libcxx.sh points the C++ build at V8's libc++source engine/crates/taji/scripts/libcxx.shpnpm --filter @taji/ui buildpnpm --filter @taji/window buildcargo build --locked -p taji-openmake sidecar whatsappCargo ends with
Finished. The kernel istarget/debug/taji, withtaji-tailscaleandtaji-whatsappbeside it (.exeon Windows), andtaji-unlockon macOS, the Touch ID helper.
Run
-
With the window.
make devruns the builds above, then opens Taji's window.make devFRESH=1 make devstarts empty, with state, store and home undertarget/freshon port 7790, and never attaches to a kernel on 7780. -
Headless, the wire the only client.
TAJI_WIRE=0takes a free port, which the kernel writes towire-portin its state dir, after its token:export TAJI_STATE_DIR=$(mktemp -d) TAJI_STORE_DIR=$(mktemp -d) TAJI_HOME=$(mktemp -d) TAJI_WIRE=0TAJI_HEADLESS=1 target/debug/taji &until [ -s "$TAJI_STATE_DIR/wire-token" ]; do sleep 1; donecurl -H "x-taji-token: $(cat "$TAJI_STATE_DIR/wire-token")" "http://127.0.0.1:$(cat "$TAJI_STATE_DIR/wire-port")/read/desks"The kernel listens on
127.0.0.1only. Each launch writes new tokens to the state dir, and every request carrieswire-tokenasx-taji-token(the wire). One kernel runs per state dir and store. The answer lists the desks of the empty state, one active:
[
{
"active": true,
"created_at": 1796331819,
"id": "01a23db8-4fff-7583-ae2b-b12000a08625",
"last_active": 1796331819,
"name": null,
"notes": 0
}
]
Captured 2026-12-03 on a keyless headless kernel.
- Stop it, with the same variables set:
target/debug/taji quitprintstaji quit: stopped Taji on 127.0.0.1:<port>.
Upgrade
Stop Taji (below), git pull and build again; the state dir is kept.
Before 1.0 an upgrade can change the store's layout: the next start rebuilds an older store from pulls.db, and refuses one a newer Taji wrote (run that Taji, or delete the store dir's taji.duckdb to rebuild it). Never make reset for this: it deletes the state, store and home. What a version may change: Compatibility.
Stop and reset
- Stop one Taji:
target/debug/taji quit. It readsTAJI_WIRE(default 7780) and the state dir's token.POST /verb/ui/quitdoes the same. Holding exits, it refuses, naming them;taji quit --yesstops them too. - Stop every running Taji:
make down. - Start over:
make resetlists the state, store and home it would delete and stops there. With Taji stopped,YES=1 make resetdeletes them and removes Taji's MCP server and skill from every agent it finds.
Unless TAJI_STATE_DIR, TAJI_STORE_DIR and TAJI_HOME name them, they are:
| State | Store | Home | |
|---|---|---|---|
| macOS | ~/Library/Application Support/Taji | ~/.local/share/taji/store | ~/.taji |
| Linux | ~/.local/share/taji | ~/.local/share/taji/store | ~/.taji |
| Windows | %LOCALAPPDATA%\Taji | %LOCALAPPDATA%\Taji\store | %USERPROFILE%\.taji |
On Linux an absolute $XDG_DATA_HOME replaces ~/.local/share.
Windows
- Update Windows to 24H2 build 26100.9278 or later (
winvershows it). Process plugins and the Python sources (Yahoo, EDGAR) need a sandbox that KB5120998 rolls out gradually, so a machine at that build may lack it; once built, Yahoo's and EDGAR'sGET /read/pluginsrows readingenabled: trueandreason: nullshow it, where a machine without it readsno sandbox: …. - The Visual Studio workload
Microsoft.VisualStudio.Workload.VCTools(the MSVC x64 tools and a Windows 11 SDK) comes with the Build Tools command above. LLVM 21 or later needsC:\Program Files\LLVM\binonPATH. rustup's default host isx86_64-pc-windows-msvc.
You do not need NASM, CMake or Developer Mode. Build and run as above. The kernel is taji.exe in target/debug/, with taji-tailscale.exe and taji-whatsapp.exe beside it.
Linux
- Process plugins and the Python sources (Yahoo, EDGAR) run only in the sandbox. Security holds the sandbox suite's results.
- On Ubuntu 24.04, allow unprivileged user namespaces for unprofiled programs:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0. - On Debian, add
/usr/sbinto yourPATH:iptableslives there. - The vault opens by backup password alone.
- Closing the window leaves Taji running. GNOME shows its tray item only with the AppIndicator extension; without it,
taji uireopens Taji andtaji quitstops it. - To run plugins you wrote unconfined, use a debug build with
TAJI_UNSANDBOXED=1.
If it fails
another Taji owns <dir>, exit 0. A kernel holds that state dir or store. Runtarget/debug/taji quitormake down, or give the second its ownTAJI_STATE_DIRandTAJI_STORE_DIR.no sandbox: …on every process plugin and Python source (Linux). Bubblewrap, unprivileged user namespaces,slirp4netns,iptablesoripis missing or off, the message naming which. Nothing runs unconfined: fix the cause under Linux.no sandbox: needs Windows' process isolation, …: run Windows Updateon every process plugin and Python source; the chart shows it for Yahoo's bars (Windows). The build is below the floor or KB5120998's rollout has not reached it; nothing runs unconfined.- The linker is killed or the build runs out of memory. Set
CARGO_BUILD_JOBS=2(Linking with GNU ld is memory-hungry; this fits a 16 GB machine).
Next
- Quickstart: a first order on the simulated broker.
- Connect your agent: register Taji's MCP bridge from this checkout.
- Configuration: every variable, setting and file.