> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thaloz.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a coding agent

> Give a coding agent a dedicated Thaloz Box key through the dashboard.

Install `thz` in the agent's environment using the [quickstart](https://docs.thaloz.ai/guides/quickstart.md#install-thz). Ask the agent to request a key for itself.

```sh theme={null}
thz login --agent --name "build bot" --no-wait --json
```

1. Ask the agent for the `verificationUrl` and `userCode` from the output.
2. Open the link, sign in with GitHub, and enter the code.
3. Review the key's permissions and choose **Approve** in the dashboard.
4. Ask the agent to collect its key and check that it can read the account.

```sh theme={null}
thz login --agent --json
thz whoami --json
```

The default `machines` preset lets the agent start and use machines. To give the agent read access, pass `--preset read-only` when it requests the key. You can revoke either key on the dashboard's **API keys** page.

For the raw HTTP flow and key presets, see the [agent authentication reference](https://app.thaloz.ai/auth.md). To give an agent installation and machine instructions in one file, share the [agent quickstart](https://app.thaloz.ai/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.