Setup guide for AI agents

Set up the ZeuZ SDK with your coding agent

Create, run and manage tests in a Test Studio workspace from your application repository.

Open your application repository in your coding agent and paste the prompt. The agent installs or upgrades the ZeuZ Python SDK, spends a few minutes on your main features, and offers to build the first test. Add a feature to the prompt if you already have one in mind. Once that test passes, the agent offers to map the whole application.

Read the guide

ZeuZ SDK setup guide

Use https://qa.zeuz.ai as the ZeuZ server. Run the following commands from the application repository.

1. Install the SDK

If the SDK is already installed, use that environment's Python and run python -I -m zeuz status --check; when it reports a newer SDK, upgrade it as step 5 says before going on. Otherwise run the installer for this machine in a terminal. It needs no administrator rights.

curl -fsSL https://qa.zeuz.ai/zeuz-sdk/install.sh | sh -s -- --workspace SELECTED_UUID
& ([scriptblock]::Create((irm https://qa.zeuz.ai/zeuz-sdk/install.ps1))) --workspace SELECTED_UUID
  • The first line is for macOS and Linux, the second for Windows PowerShell.
  • It installs the SDK for this user, puts the zeuz command on PATH, signs in, installs the ZeuZ skill for future chats, checks out the workspace's tests and installs the controller (step 3a).
  • Pass --workspace only when the user has already named the workspace. Without it the installer uses the user's only workspace, or lists them and leaves the controller for step 3a.
  • Add --no-controller when the user does not want Test Studio to run tests on this machine.
  • The machine needs Git 2.31 or newer, because the working copy of a workspace's tests is a Git clone. The installer downloads uv itself when it is missing.
Desktop
Use the command above on the same computer as the browser. If the browser does not open, show the user the link printed by the installer.
Remote server
Add --device-code. Show the user the link and confirmation code. Keep the installer running while they sign in and approve.
Unattended CI
Add --non-interactive. Set ZEUZ_API_KEY from the runner's secret store and ZEUZ_WORKSPACE_ID to the workspace UUID. Use the configured workspace after installation. This mode installs no controller; add --controller only on a machine that should stay connected and run tests for Test Studio.

If piping a script into a shell is not allowed here, do the same by hand. Save the ZeuZ bootstrap script from this server as zeuz-bootstrap.py in a temporary directory outside the repository, install uv for the user with the official uv installation guide if needed, and run it with the same options.

uv run --no-project --python 3.14 python -I "ABSOLUTE_PATH_TO_zeuz-bootstrap.py" --server-url https://qa.zeuz.ai

Use the interpreter printed after ZeuZ SDK Python: in the steps below. The zeuz command runs the same SDK, so zeuz status is python -I -m zeuz status; a terminal opened before the install does not have it on PATH yet.

If the full SDK wheel is already installed without the skill, use its Python to run python -I -m zeuz install-skill --server-url https://qa.zeuz.ai.

2. Find linked workspaces and sign in if needed

python -I -m zeuz workspace-matches --server-url https://qa.zeuz.ai

Interactive setup saves the sign-in. If a remote session expires, add --device-code to the login command below. If using a previously installed desktop SDK, it can reuse a valid ZeuZ CLI or Test Studio sign-in.

python -I -m zeuz login --server-url https://qa.zeuz.ai

Give the user the link printed by the command. The user signs in and approves on the ZeuZ website, which redirects the browser back to the SDK on this computer. Keep credentials out of chat.

3. Ask the user to select a workspace

Run the workspace lookup again after signing in. Show the matches and ask the user which workspace to use. If there are no matches, list accessible workspaces with Client.from_local().workspaces.list() or ask the user to link the application repository in Test Studio.

python -I -m zeuz configure-agent --server-url https://qa.zeuz.ai --workspace SELECTED_UUID

The command prints the instruction files it wrote, such as AGENTS.md or an agent-specific rule file. Future chats in this repository can use the installed skill and saved workspace. Start a new chat if the current chat does not see the skill.

When the controller is installed, the command also tells it where this repository and this coding agent are, and prints one line saying so.

3a. The controller

The installer in step 1 also installs the controller: a small program that starts with this computer and lets Test Studio run tests here and send jobs to this coding agent. When step 1 printed that the controller is running, nothing more is needed. Tell the user the name it printed, because that is the computer they pick in Test Studio when they run tests.

python -I -m zeuz controller status
python -I -m zeuz controller install --workspace SELECTED_UUID --yes
python -I -m zeuz controller pause --for 1h
python -I -m zeuz controller uninstall
  • Report the controller as ready only when status prints server: online. Test Studio lists it on the Controller tab of the "Your AI agent" page, where its key can also be revoked.
  • Run the install line only when step 1 could not choose a workspace, or ran with --no-controller and the user now wants the controller. Without --yes it prints a plan and changes nothing.
  • The name is the user name and the computer name. controller rename NAME changes it. Do not rename while the user has runs or jobs queued for the old name.
  • controller pause stops it taking new work, until controller resume or for the time given with --for. controller cancel stops the run or job in progress. controller restart restarts it.
  • It keeps itself and the SDK up to date while nothing is running. Do not upgrade it by hand unless the user asks.
  • On Windows the install also puts a ZeuZ icon near the clock, where the user can see the state and pause, resume or rename this computer. Tell the user it is there. --no-tray at install skips it.
  • Do not ask for, read or print the key. It is created and stored by the command.
  • When status says the controller will not start after a restart of this computer, relay the one command it prints. An administrator has to run it.
  • When status shows agents: none, the controller is set up for test runs only: no coding agent it knows how to start is on PATH, or the application repository is not on this machine. Relay that.
  • controller uninstall prints a plan and changes nothing until it is run again with --yes. Show the plan to the user and add --yes only after they approve. Uninstall revokes the key.

4. Create, register and run tests

Read the repository instructions generated by the command and load the installed ZeuZ skill. Use the application repository as source context. Write the feature map and list, create and register tests in the selected Test Studio workspace, and run them locally with ws.run_local(...) in a script, or python -m zeuz checkout and python -m zeuz run with the SDK's Python, then publish reports when ready. Browser tests need python -m playwright install chromium once. Do not install or use a separate ZeuZ command line tool.

5. Upgrade or remove the SDK

python -I -m zeuz status --check
python -I -m zeuz upgrade
python -I -m zeuz uninstall

status reports what the SDK installed and, with --check, whether this server offers a newer SDK. upgrade and uninstall print a plan and change nothing until they are re-run with --yes: show the plan to the user and add --yes only after they approve. Uninstall removes the repository binding (an uncommitted change), the skill copies and runtimes the SDK installed, and checkouts whose Git clone has nothing uncommitted or unpushed; it keeps any other checkout, and keeps the sign-in shared with Test Studio unless given --sign-out. The runtime it runs from cannot delete itself; the result prints the command that removes it once the process has exited. Neither changes tests, variables, reports or the workspace on this server.