# AI agents

Checkara works with two kinds of helpers. A network agent is a small program on your machine. It lets Checkara reach test environments in a closed network. The assistant is a chat panel that answers questions and does work for you. This page covers both. To connect an external AI tool such as Claude Code, see [MCP tokens](my-settings#mcp-tokens).

## What a network agent is {#what-is}

Checkara checks public environments from its cloud. The cloud cannot see internal addresses such as `10.x`, `192.168.x` or `*.local`. For those environments you install an agent inside your network.

The agent opens an outbound connection to Checkara over HTTPS (port 443). You open no inbound ports. It does only the network work: HTTP calls, SQL and Mongo queries, broker messages and health checks. The flow itself still runs in Checkara. The agent does not store your flows.

Runs through an agent do not count toward the cloud run limit of your plan. See [Plans and billing](billing).

## Shared and personal agents {#kinds}

The **Agents** tab of **Settings** has two blocks.

**Shared agents** are company machines. Only Owners and Admins add and revoke them. A shared agent counts toward the agent limit of your plan. An Owner or Admin decides who may run through it in the **Who can run through this agent** setting: **Everyone** or **Selected members**. Owners and Admins always have access. A member sees only the agents shared with them.

**My agent** is an agent on your own machine. Any member can connect one. Only you see it and use it. It runs only your own runs, debugging and schedules, and it never checks environment health. It does not count toward the plan. You can have one personal agent. To connect another, revoke the first.

Owners and Admins do not see personal agents of members. They see only how many exist and who owns them, and they can revoke one.

## Connect an agent {#connect}

1. Open **Settings** and the **Agents** tab. As a member, open the **My agent** block.
2. Press **Add agent** (**Connect my agent** for your own).
3. Type a **Name**. Use Latin letters, digits and hyphens, up to 40 characters.
4. Optional: type a **Network label**, for example the office or the dev network. It helps colleagues see where the agent runs.
5. Press **Create code**. The **Registration code** appears. It is shown only once and is valid for 15 minutes. Copy it now. If it expires, press **Create a new code**.
6. Pick your system (**Windows**, **Linux**, **macOS** or **Docker**). Download the agent and run the commands shown. Run them on a machine inside your network.
7. Wait. The drawer shows **Waiting for the agent to connect…**, then **Agent {name} connected**. Press **Done**.

The commands have this shape:

```
checkara agent register --server <CHECKARA ADDRESS> --code <CODE>
checkara agent start
```

If you close the drawer early, the agent stays in the list as **Waiting for connection** until the code expires.

If your plan has no free agent slot, the page says so. An Owner can upgrade the plan or buy another agent. Others see **Contact the company owner.**

### Agent status {#status}

The table shows each agent with its status:

- **Online**: the agent is connected and sends heartbeats.
- **Offline**: no heartbeat for about a minute. The table shows the time of the last activity.
- **Waiting for connection**: the code was created and the agent has not connected yet.
- **Revoked**: the agent was removed.

The row menu has **Details**, **Rename**, **Change network label**, **Access** and **Revoke**. **Details** shows version, system, the environments it serves, recent runs and events. When a newer version exists, the table says so.

If two machines use the same key, Checkara rejects the second connection and shows a warning. Revoke the agent and add it again.

### Secrets on the agent {#secrets}

Some connection strings must never leave your network. In a database or broker connection form, choose **Only on the agent** under **Where the secret is stored**. Checkara then keeps only the **Secret name on the agent**. You set the value on the agent machine:

```
checkara secrets set <NAME> --host <HOST>
checkara secrets set <NAME> --host <HOST> --env <ENVIRONMENT>
```

`--host` is required: it names the database or broker host (or several, comma-separated, such as `db1.internal,db2.internal`) the secret may be sent to. Write the bare host name, without a port. When a request asks the agent to use the secret for any other host, the agent refuses and the request fails. A secret set without `--host` by an older agent is not used: set it again with `--host`.

The value is never shown in Checkara. A connection that is **Only on the agent** never runs in the cloud. The agent details show each such secret as **set on agent** or **not set on agent**.

## Choose where requests run {#where}

Each environment has a **Where requests run** setting in **Settings**, **Environments**: **Checkara cloud** or one agent. An Admin sets it. A personal agent cannot be the default of an environment.

A small chip next to the environment shows the place: **cloud**, **agent {name}** or **no agent chosen**. The Services page also shows **polled by agent {name}** when an agent checks the health of that environment.

### Run on an agent {#run-on-agent}

When you run a flow, you can override the environment's place for this run.

1. Open the menu next to **Run** and find **Where to run**.
2. Pick one:
   - **As in the environment**: use the place set on the environment.
   - **Agent {name}**, or **My agent {name}**: run through that agent.
   - **Checkara cloud**: run from the cloud.
3. Press **Run**.

Checkara remembers your last choice for each environment. The list shows if a choice counts toward the cloud run limit. A run fixes its place once when it starts. All its steps use that place. Each step in the result shows **via agent {name}** or **via cloud**.

You can set the place for a schedule too. See [Flows](flows#schedule).

A choice can be blocked. The run button is disabled and a reason shows:

- The agent is offline. The run starts again when the agent comes back.
- No agent is chosen for the environment. Choose one in **Settings**, **Environments**.
- The cloud run limit is used up. Run through an agent instead.
- You have no access to the shared agent.

If the cloud cannot reach a private address, Checkara offers **Choose an agent**. A scheduled run on an offline agent is recorded as **Skipped**. It does not fail.

## Revoke an agent {#revoke}

Open the row menu and press **Revoke**. The agent disconnects at once and runs nothing more. The dialog lists the environments that use it. They will not run until you choose another agent or the cloud. Values stored on the agent stay on that machine.

## The assistant {#assistant}

The assistant is a chat panel on the right side of the app. Open it with **Assistant** in the left menu. It shows only when your company turned it on.

Ask about Checkara or ask for work: build a flow, explain a failed run, search logs. It has your rights in your company. It can also use the page you are on as context, for example a flow or a service. Remove the context with **Remove the context**.

Reading is automatic. Changing is not. When the assistant wants to change something, it shows a card with **The assistant wants to: ...**. Check the details, then press **Run** or **Cancel**. Nothing changes until you press **Run**. A card goes out of date after 10 minutes. The assistant never changes anything on a production environment.

Secret values are not sent to the assistant. Your messages and the results of its queries go to Anthropic (Claude). **About data** in the panel explains this. The assistant can make mistakes, so check what matters.

Each plan has a monthly message limit. The panel shows **Used {n} of {m} messages this month**. Past conversations stay in **History** for 30 days. Only the company Owner can turn the assistant off for everyone.

See also [My settings](my-settings#mcp-tokens) for tokens that connect outside AI tools.
