Skip to content

Installation

Install Astranize from its source code on macOS or Windows, open the desktop app, and set up the CLI for scripts and your agent's CLI.

8 min read5 pages in Getting started

Astranize runs from a checkout of its source code. You install the dependencies once and start the desktop app with one command, which also builds everything the app needs. It takes a few minutes, and nothing is installed system-wide. The CLI comes in the same checkout, for when you want to drive Astranize from scripts.

You need Node, pnpm, git and a Rust toolchain to install and open the app. The other tools are only needed once agents start working: the CLI of the agent you run for the agent steps (today, claude, which is Claude Code), and Playwright only if you turn on the optional video add-on.

Tool Why Notes
Node.js 22 or newer Runs the engine, the CLI and the daemon. Node 20 fails. With nvm: nvm use 22.
pnpm 10 Installs the monorepo. The repo pins pnpm@10.30.2 in packageManager.
git Every task gets a git worktree and a branch per repo. On Windows, Git for Windows also gives you Git Bash, the default shell for commands.
A Rust toolchain Builds the Tauri desktop app. Plus the usual Tauri system prerequisites.
The CLI of the agent you run, logged in. Today, claude (Claude Code) The only runner that ships today. Every agent step runs claude -p. A Codex runner is next. Needed only for real runs. Install and log in to Claude Code as usual.
Playwright in the app repo Only for the optional video add-on. The video step runs npx playwright test in the repo named by video.playwright_repo. That repo needs @playwright/test (or playwright) installed and a Chromium browser downloaded, for example with npx playwright install chromium.

Astranize runs on macOS and Windows. Linux is not supported yet.

  1. Go to your checkout of the Astranize repository and switch to Node 22. These docs assume it lives in ~/code/astranize.

    Terminal window
    cd ~/code/astranize
    nvm use 22
  2. Install the dependencies.

    Terminal window
    pnpm install
  3. Start the desktop app. pnpm dev builds the engine, then builds and opens the app in development mode. The first run compiles the Rust side, so it takes a while.

    Terminal window
    pnpm dev

The first time, there is no workspace yet, so the app opens on the New workspace wizard, titled “Welcome to Astranize”. It creates your first workspace in six steps, with no YAML; Your first workspace walks through them. Once a workspace exists, the app opens on its Tasks board. Tour of the app shows what each screen looks like once tasks are running.

Run only one copy of the app at a time. Extra runs leave target/debug/Astranize processes that fight each other. Closing the app does not stop running tasks: they keep going in the background and show up again when you open it.

Once you have several workspaces, switch between them with the workspace menu at the top left of the app. To open the app straight on one, set ASTRANIZE_WORKSPACE:

Terminal window
ASTRANIZE_WORKSPACE=notes pnpm dev

These environment variables change what the app opens:

Variable Default Effect
ASTRANIZE_WORKSPACE default The workspace the app opens. Lowercase letters, digits and dashes.
ASTRANIZE_HOME ~/.astranize The data folder. The app only reads files inside it.
ASTRANIZE_NODE node The Node binary the app uses to run the CLI. Set it when the app can’t see your nvm Node.

The app is all you need for everyday work. The CLI is for scripts and automation: creating tasks from another tool, following events in a terminal, or running Astranize on a machine you reach over SSH. It is the same program the app drives, so whatever you do in one shows up in the other.

  1. Build the engine. pnpm dev already did this; build again whenever you pull new changes and want to use the CLI without the app.

    Terminal window
    pnpm turbo build --filter @astranize/engine
  2. Run your first command. There is no global binary yet, so you call the CLI’s entry point with Node.

    Terminal window
    node packages/engine/bin/astranize.mjs settings --workspace default
    {"type":"settings","language":"en"}

    If you see that line, the CLI works.

  3. Add an alias, so you can type astranize like the rest of these docs do. Put it in your shell profile to keep it.

    Terminal window
    alias astranize="node ~/code/astranize/packages/engine/bin/astranize.mjs"

A few things about the CLI are worth knowing from the start. It has no --help. Every command prints one JSON object per line, and an error comes out as {"type":"error","message":"..."} with exit code 1. Almost every command needs --workspace <name>, even ones that are not about a workspace, like settings. The CLI reference lists every command.

Before you point Astranize at real code, you can try the CLI in a throwaway data folder. Nothing in your real data is touched, and no agent is called.

  1. Point the CLI at a temporary folder for this terminal session.

    Terminal window
    export ASTRANIZE_HOME=$(mktemp -d)
  2. Create a workspace. workspace create needs no repos and calls no agent.

    Terminal window
    astranize workspace create check
    {"type":"workspace_created","workspace":"check","path":"/tmp/.../workspaces/check"}
  3. Check that the agent CLI is on your PATH and logged in, since the agent steps call it. Today that is claude.

    Terminal window
    claude --version
  4. Stop the background daemon, in case a command started it. If none is running you see not_running.

    Terminal window
    astranize daemon stop
    {"type":"daemon","status":"not_running"}
  5. Go back to your real data folder, so the next pages don’t write into the temporary one.

    Terminal window
    unset ASTRANIZE_HOME

Everything Astranize keeps is in one folder, ~/.astranize by default. Set ASTRANIZE_HOME to use another one, for example a sandbox while you try things out:

Terminal window
export ASTRANIZE_HOME=~/astranize-sandbox

Each data folder has its own daemon, queue, settings and Vault, so two folders never share anything. After a first task it looks like this:

  • Directory~/.astranize/
    • daemon.json the running daemon’s port, token and pid (mode 0600)
    • daemon-processes.json
    • queue.json
    • settings.json language and worktrees_root
    • settings.yaml memory floor, cap, video slot, pause
    • limits.json
    • vault encrypted secrets
    • Directorytmp/ short-lived secret files
      • …
    • Directoryworkspaces/
      • Directorynotes/
        • config.yaml
        • workflow.yaml
        • Directoryprompts/
          • …
        • Directorytasks/
          • …
        • Directoryruns/
          • …
        • Directoryworktrees/
          • …

Some files appear only once you use the feature that writes them. Files and directories describes each one.

  • Commands in config.yaml (gates, setup, services) run with sh -c.
  • The Vault key is stored in the macOS Keychain unless you choose a master password.
  • autostart registers a LaunchAgent. Nothing is registered until you run it.

Astranize used to be called orchestrator. If you used it under that name, your data moves over by itself:

  • On the first run with the default home, ~/.orchestrator is moved to ~/.astranize in one rename, and git worktree repair runs for the moved worktrees.
  • If both folders exist and ~/.astranize is not empty, ~/.astranize wins, nothing is deleted, and you get this warning once: ~/.orchestrator was left behind: Astranize now uses ~/.astranize and nothing was deleted.
  • An ASTRANIZE_HOME that points somewhere else is never moved.
  • ORCHESTRATOR_HOME still works, with the warning ORCHESTRATOR_HOME is deprecated, use ASTRANIZE_HOME instead.
  • Tasks created before the rename keep their orq/... branches. New tasks use astra/....
  • config.yaml is never rewritten. The CLI warns when it cites a path that no longer exists, and camelCase keys still load with a deprecation warning.

migrate-home prints the data folder in use, after any move:

Terminal window
astranize migrate-home --workspace default
{"type":"home","home":"~/.astranize"}