# Find and set up an agent

Setup teaches Zhanla how to run your agent, and you approve each step. The examples show Pedalwise, a made-up bike-rental support bot.

Start Zhanla in your repository and choose **Find my agents**. Keep the agents you want, mark one to set up now, or choose **Correct the list**.

![Zhanla found one agent in the Pedalwise repository.](https://zhanla.vercel.app/docs-media/demo/setup-found.png)

## Allow local runs

Evals run your real agent on your machine, with your environment and keys. **Allow** covers this set-up only; **Always allow** keeps the answer for this checkout.

![The permission card.](https://zhanla.vercel.app/docs-media/demo/setup-consent.png)

> Your agent's tools are really called during evals. Use test credentials and test data.

## Check how it runs your agent

This card says how to start your agent, what a user types, and what your app sends with it. Zhanla infers all of this from your code, so check it. To fix it, use **Edit here** or **Something's off**. Then choose **Run it once** to send one real request.

![How Zhanla runs Pedalwise.](https://zhanla.vercel.app/docs-media/demo/setup-contract.png)

## Add tracing

Tracing records each model and tool call, so evals can judge the trajectory, not just the answer. If your agent already sends OpenTelemetry traces, Zhanla uses them and installs nothing.

Otherwise, accepting the card installs the SDK and makes a local commit, which Zhanla never pushes. Without tracing, you can't publish or run rubric items judged on the trajectory.

![The top of the tracing card.](https://zhanla.vercel.app/docs-media/demo/setup-tracing.png)

## Record a few requests

On a traced agent, start your app with the line on the card, send it at least one message, stop it, and choose **Done, I sent it a few messages**.

![The recording card. These requests stay on your machine.](https://zhanla.vercel.app/docs-media/demo/setup-recording.png)

Setup is saved once a real request passes with the approved command. On a traced agent it must also capture a model call and the root span.

If no model call shows up, check that `init` runs in a module the test imports and that your model client is [supported](https://zhanla.vercel.app/docs/sdk/libraries) or traced by hand. Then run `/setup` again.

Run `/setup` whenever the way your agent starts changes. Then [draft a rubric](https://zhanla.vercel.app/docs/test/rubric).

---

Source: https://zhanla.vercel.app/docs/test/set-up
Updated 2026-11-24. Checked against release candidate b60cdc94.
