DocumentationAI agents
Docs/AI agents

AI agents

An AI agent is a named non-human network principal with a required human owner. Do not reuse a person’s device credential or leave automation ownerless.

  • Enterprise entitlement where agent features require it.
  • An active gateway with a nonblank endpoint.
  • A Linux/systemd-like agent host.
  • wireguard-tools, resolvconf or openresolv, curl, jq, and releaseverify on the host.
  • An owner accountable for the agent and an optional managing team.

Device approval can leave a new agent pending; agent enrollment does not bypass that organization control.

Open AI agents and select Add agent.

AI-agent inventory

In Step 1 of 3 — identity and gateway:

  1. Enter Agent name.
  2. Choose Gateway.
  3. Select Continue.

Agent name and gateway enrollment step

Blank-endpoint and otherwise ineligible gateways should not be chosen even if a stale row is visible.

Step 2 of 3 — review bootstrap shows the exact agent name and gateway.

Review step before issuing the one-time agent command

This step does not enroll an agent. Select Back if either value is wrong. Only after review, select Issue one-time command.

In Connect your agent: run this on the agent’s host:

  1. Select Copy command or download tunnex-agent.sh.
  2. Transfer it directly to the intended agent host.
  3. Run it once with the requested privileges.
  4. Wait for the control-plane row to report state.

The bootstrap installs the managed runtime binary, systemd service, configuration, credential, and state. It refuses an existing managed install. The WireGuard private key remains on the agent host.

Open the agent row. On Overview, check lifecycle, owner, managing group, last handshake, and profile actions.

Managed agent overview and lifecycle controls

  1. Select Profile and lifecycle → Edit profile to set Environment, Runtime, and valid Labels JSON.
  2. Select Ownership → Change to assign the accountable person and managing group.
  3. Confirm the owner can be identified from the roster and audit log.
  4. Check Runtime only after the organization enables runtime synchronization.

Managing teams can maintain profile context where permitted, but cannot silently grant access, rotate credentials, or revoke outside their authority.

Runtime synchronization is off by default. An owner enables it under Settings → AI Agents → Enable runtime synchronization only when the organization is ready for server-owned configuration delivery.

AI-agent organization settings

Configure Maximum identities if the organization needs a quota. Pending, active, and suspended agents count; revoked/deleted agents do not.

Enable Agent groups & policy templates in the same settings section. Create agent groups under Access Policies → Groups; membership is managed there.

Open AI agents → Policy templates to create reusable, versioned intent and preview assignment impact.

Agent policy templates and assignments

A template creates no access until it is applied. GitOps/template-managed rules must be changed through their owner, not hand-edited as unrelated dashboard rules.

Open AI agents → MCP profiles. A profile names a credential-free absolute MCP upstream and is inherited through an Agent Group.

MCP profile inventory and shared assignment impact

To create one:

  1. Select Create profile.
  2. Enter Profile name.
  3. Enter a credential-free absolute MCP endpoint.
  4. Select Create profile.
  5. Choose the Agent Group and preview the shared assignment impact.

Create reusable MCP profile

Do not place bearer tokens or URL credentials in the endpoint. Connection credentials belong in the protected OAuth/runtime path.

  • Suspend is reversible and stops the agent’s usable lifecycle without deleting history.
  • Resume restores a suspended agent after the reason is resolved.
  • Rotate credentials replaces authentication material without creating a different logical agent.
  • Revoke is terminal for that credential.
  • Remove agent revokes, then removes the roster row.

Removing an agent does not silently delete every orphaned policy grant. Review rules, groups, templates, MCP profiles, access events, and machine credentials.

Continue with MCP security before granting an upstream.

Documentation

Search Tunnex docs