ZTC Quickstart
Install the beta desktop app or terminal client, sign in, review your first plan, and keep work in a named session.
Zerg Client (ZTC) is an AI agent for working in an existing project. It reads code, makes a plan, edits files, runs commands, and checks results. ZTC is currently in beta.
1. Install
Pick one route:
- Desktop app only: download ztc.app. No Node.js needed.
- Desktop app and the
ztccommand: use the curl installer. No Node.js needed. - Terminal client only: install with npm or bun. Needs Node.js 20.19+ or 22.12+.
All three share profiles and sessions in ~/.ztc. The steps after this one run
the ztc command in a shell, so pick one of the last two routes to follow the
whole Quickstart.
The desktop app and the interactive terminal need an Apple Silicon Mac
(darwin-arm64). Headless runs (ztc --headless) also work on Linux and
Windows. This beta has no desktop app or interactive terminal for Intel Macs,
Linux, or Windows.
Desktop app
Download ztc.app for macOS (Apple Silicon). The latest build is always on zergai.com/ztc. Open the disk image, move ztc.app to Applications, and open it. It starts ZTC in your home folder.
The app is signed and notarized. It bundles its own Node runtime, so you do not need Node.js. Desktop builds ship on the preview channel. There is no stable desktop release yet.
The app runs the same ZTC agent as the terminal client, so commands you type
inside ZTC, such as /auth login, /plan and /sessions, work there too. The
download does not add a ztc shell command. For the app and the command
together, use the curl installer instead of the download, so you end up with
one copy of ztc.app.
Desktop app and the ztc command
On an Apple Silicon Mac, the curl installer sets up the desktop app and a ztc
command together, with no Node.js. To read the script before you run it, open
zergai.com/install/ztc.sh. Then run:
curl -fsSL https://zergai.com/install/ztc.sh | sh -s -- --preview
It installs the current preview build: ~/Applications/ztc.app and a ztc
command in ~/.local/bin that runs on the app's bundled runtime. If it asks,
add ~/.local/bin to your PATH. If ztc.app or ztc already exists there, the
installer stops before downloading anything. Remove the old copy first.
Terminal client
npm and bun install the terminal client only. They do not install the desktop
app. On an Apple Silicon Mac, ztc --desktop --cwd /path/to/project opens the
desktop surface from the terminal client.
If you installed the legacy zerg-ztc package, remove it first
(npm uninstall -g zerg-ztc). It provides the same ztc and zerg commands.
With Node.js 20.19+ or 22.12+, install with npm:
npm install -g @zergai/ztc@0.26.0-beta.1
ztc --version
Or install the same release with bun. Node.js still runs ZTC, so the same Node.js versions apply:
bun install -g @zergai/ztc@0.26.0-beta.1
These commands pin the beta shown on the ZTC page.
@zergai/ztc provides the ztc and zerg commands. Keep only one ZTC install
on your PATH, counting a curl install, because these command names overlap.
ztc --version prints ztc v followed by the installed version. If it does not
show the version you installed, run which ztc to see which executable your
shell found. If that is not the one you just installed, or the legacy zerg-ztc
package is still present, remove the old one and install again. The release
number can differ from the version in ZTC's source code.
If you installed with npm and want an app icon, this optional command creates a separate ZTC Desktop.app launcher, which opens the desktop surface in your home folder:
node "$(npm root -g)/@zergai/ztc/scripts/install-macos-app.mjs"
The launcher uses /Applications when writable, otherwise ~/Applications.
Set ZTC_DESKTOP_APP_DIR=/path to choose another directory.
Update
For an npm install of the terminal client, run ztc update. It installs the
newest release on your channel into the same place, and the next launch uses it.
For a bun install, run the bun command above with the new version.
The desktop app updates itself. It checks for signed updates when it starts and
every 6 hours, downloads and verifies a new release in the background, and
installs it when you quit ZTC. To check now, open Updates in the title bar.
A curl install updates the same way, its ztc command included. A copy at
0.5.0-beta.1 or older needs one manual update: open Updates, choose
Download and verify update, then Install and restart ZTC. Your settings
and sessions in ~/.ztc stay.
2. Choose one authentication route
Run ztc in your project directory:
cd /path/to/project
ztc
Until you log in with ZergAI or choose local API keys, ZTC opens a
Connect a model prompt at launch with two choices:
Log in with ZergAI (recommended) or Use your local API keys. Run
/connect inside ZTC to choose again later.
Log in with ZergAI: choose it in the Connect a model prompt, run
/auth login inside ZTC, or run ztc auth login in your shell. Complete the
login at zergrouter.com. All three entry points share credentials. Provider
keys you add in Zerg Router stay there, not on your machine. Select a routed
model with /model zergrouter <provider> [model].
Model usage follows your Router account's terms.
The browser flow uses your personal Zerg account. On Router's billing page, review payment status and your monthly spending cap before starting a task. Signing in and checking account status do not themselves send an inference request. If payment is pending or the cap is reached, resolve that in Router before starting the agent.
Use your local API keys: choose it in the Connect a model prompt, pick
a provider and paste its key, or name an environment variable that holds it.
/config key <provider> with no key opens a hidden prompt for the same, so the
key never shows on screen or in your input history. Then select it with
/model <provider> [model]. For example, use the anthropic or openai
provider ID with a key from that provider. Provider usage is billed under your
provider account.
Your Claude subscription: run your own Claude Code in a ZTC pane with
/claude, signed in with Claude Code's own login (/claude @work opens it on a
sign-in profile of ZTC's; /subs lists them). ZTC's own agent can't use a
Claude subscription: Anthropic's terms reserve subscription sign-in for Claude
Code itself, so give ZTC's agent a model with ZergAI or an API key above. If you
used the retired claude_code provider, ZTC moves you once and says where.
Authentication does not change ZTC's software license.
3. Review your first plan
Run /plan inside ZTC to enter plan mode, or start with ztc --plan. Then ask
for a small, concrete task:
Inspect this project. Explain its entry points and test command, then propose a small change and the checks that would prove it works.
Plan mode supports read-only exploration. Review the proposed changes and
validation, then run /execute when ready for ZTC to perform the work. Inspect
the resulting diff and actual test output. /permissions shows the current
permission profile and /help lists commands.
4. Keep work in a named session
Use a descriptive name for work that will span multiple runs:
cd /path/to/project
ztc --name project-next-step
Use /sessions inside ZTC to find and resume saved work. Keep the project path
consistent when reopening a session. A named session preserves conversation
context; verify any external files, running commands, or remote state again
before relying on an earlier result.
5. Run Claude Code and Codex beside ZTC
ZTC can open your own Claude Code or Codex in a pane next to its agents. Each pane runs the CLI you installed, signed in with your own account through that CLI's own sign-in; ZTC doesn't read or store those credentials.
- Run
/claudeor/codexinside ZTC to open one in the current directory. Text after the command is its first prompt, for example/claude fix the failing test. - Press
Ctrl+B cto pick a new pane: bash, ZTC, Claude Code or Codex. - In the desktop app, click + in the tab strip and choose New ZTC Pane, New Claude Code Pane, New Codex Pane or New Shell Pane.
These panes come with ZTC's workspace tools, so Claude Code and Codex can list, open, read and close panes, type into a pane, and message other agents. ZTC agents can message them by name too; the message arrives typed into the pane with the sender's name.
To keep a separate sign-in for ZTC, open the pane on a profile:
/claude @work or /codex @work. The CLI asks you to sign in the first time
and keeps that sign-in in ZTC's profile, so the sign-in it uses in other
terminals doesn't change. /subs lists your profiles and sets the one new
panes use.
With MotSi installed and its remote view on, the panes ZTC opens also appear in Zerg Router's Command Central under their names, so you can watch them live from the browser.
Models
Run /model inside ZTC to see the current provider and model, and /model list
to list the models that provider offers. Available models depend on your
authentication route and provider access. Check the selected model and its
pricing before starting work.
What it costs
ZTC is free to evaluate. The License section below describes the other permitted uses and when you need a signed commercial license. Model usage is separate from the software license and follows the account behind your authentication route: your Zerg Router account's terms or your provider's billing for an API key. Claude Code and Codex panes use your own plan with that CLI's provider.
Uninstall
If you signed in with Zerg Router, end the Router session first. Run
ztc auth logout in your shell, or /auth logout inside ZTC if you only have
the desktop app. Then remove what you installed.
For the terminal client from npm:
npm uninstall -g @zergai/ztc
This removes the package and its ztc and zerg commands. If you used bun,
run bun remove -g @zergai/ztc instead.
For the desktop app, quit it and move ztc.app to the Trash. A downloaded
copy is wherever you moved it, usually Applications. A curl install is in
~/Applications; also delete its ~/.local/bin/ztc command.
ZTC keeps its local data outside the package, in ~/.ztc by default:
config.json (settings and any saved API keys), Router sign-in credentials, and
saved sessions. Delete that directory yourself if you no longer need it. If you
created the optional ZTC Desktop.app launcher, delete it from
/Applications, ~/Applications, or the directory you set in
ZTC_DESKTOP_APP_DIR.
Get help
- Bugs and questions: support@zergai.com
- Commercial licensing and design partnerships: licensing@zergai.com
License
ZTC is source-available, not open source, under the Zerg Source Available
License 1.0. The package includes LICENSE.md, COMMERCIAL-LICENSING.md,
NOTICE, and third-party notices. Read the terms shipped with your selected
release. They permit purpose-limited evaluation and specified personal,
educational, research, and nonprofit use. Free company use is limited to
purpose-bound evaluation; ongoing commercial development, operations, customer
work, and other Commercial Use require a separate signed commercial license.
Contact licensing@zergai.com for commercial terms. Authentication and model usage charges are separate from software licensing.