# Quick start for an agent

Connect Claude Code, Codex or another MCP client to your machines and make a first call.

**In short:** Create an agent token on the Agents tab, run the setup for your client from
[Connect an agent](https://docs.cmdop.ai/guides/connect.md), then ask the agent to call `machines_list`.

## Before you start

- A machine online on your page ([quick start for the owner](https://docs.cmdop.ai/start/quickstart-owner.md)).
- The agent program installed on your computer.

## Steps

1. **Create a token.** On your page, open the Agents tab and add an agent. Name it after the
   client. The token is shown once: copy it now. The new agent may use the `read` class only.
2. **Connect the client.** Open your client's page under [Connect an agent](https://docs.cmdop.ai/guides/connect.md) and
   paste the command or settings it shows, with your token and address. Clients that sign in
   through the browser need only the URL: [browser sign-in](https://docs.cmdop.ai/guides/connect/browser-sign-in.md).
3. **Give the agent what it needs.** On the Agents tab, switch on the risk classes this agent may
   use, for example `write` to change files or `exec` to run commands
   ([grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)).
4. **Give the agent the brief.** Paste the [agent brief](https://docs.cmdop.ai/start/agent-brief.md) into its first
   message, or tell it to read `https://docs.cmdop.ai/start/agent-brief.md`.

## Check

Ask the agent to call `machines_list`. It answers with your machines and whether each is online.

- `unauthorized`: the token is wrong or was revoked; create a new one.
- `denied` on a later call: the agent's grant or the machine's ceiling does not allow that risk
  class; see [grant risk classes](https://docs.cmdop.ai/guides/access/grant.md).

## Next

- What each tool does: [Tools](https://docs.cmdop.ai/reference/tools.md).
- What a refusal means: [Errors](https://docs.cmdop.ai/reference/errors.md).
