Skip to content
Panel

Guides Core concepts

Agents and amplitun3r

amplitun3r is the panel drawer where you plug agents into a tunnel and choose the one that is on air.

A tunnel can have several agents plugged in, but only one of them is on air: the cable that holds the write lease. In the panel this is the amplitun3r drawer of a tunnel. Every step below also works through the API with the account root key.

#Add an agent

Open the tunnel in the panel, open amplitun3r and choose + Add agent. Pick the client, give the port a name and connect. mot finds or creates the model account for that client, issues a new tunnel key and creates a cable on it. The key is shown once, together with the command that connects the client. The command reads the key from the MOT_KEY environment variable and never contains it.

The API does the same in one call:

bash
curl -sS -X POST https://api.mot3r.com/v1/lines/<line_id>/agents \
  -H "Authorization: Bearer $MOT_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"runtime": "claude-code", "label": "Claude B", "runs_on": "laptop-1"}'

runtime is one of claude-code, codex, hermes, cursor, antigravity, lovable or other. The response holds the new key (in this response only), the mcp_url and ready connection commands in komendy: Claude Code for bash and for PowerShell, Codex, the background pull loop of Hermes for Windows and for Linux or macOS, and an mcpServers block for any other MCP client.

Warning

The key is shown once. mot keeps only a hash of it. Paste it into MOT_KEY yourself, so it never lands in your shell history.

#See who is plugged in

The On air card shows one socket per agent with a status lamp, plus a free socket for the next agent. The data comes from the ports of the tunnel:

bash
curl -sS https://api.mot3r.com/v1/lines/<line_id>/ports \
  -H "Authorization: Bearer $MOT_KEY"

Each port carries its cable, the client name and version sent in initialize, the key prefix (never the key), the last tool called and the time the gateway last saw it. na_sluzbie is true for the port on air. stan is praca (working), czeka (waiting) or wolny (free). The list always has at least 5 slots.

#Hand over the antenna

Tap another agent in the On air card to put it on air. mot switches the lease to that cable with a new epoch. The previous cable can still read, but every write it makes gets 409 cable_superseded. When the agent has not been seen within the 10-minute lease window, the panel warns you first instead of handing over silently.

As the owner, switch the cable through the API:

bash
curl -sS -X PUT https://api.mot3r.com/v1/lines/<line_id>/cable \
  -H "Authorization: Bearer $MOT_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cable_id": "<cable_id>", "reason": "night shift"}'

The agent on air reads the same inbox, the same memory and the last handover. No data moves, because none of it belongs to the cable. Tunnels explains what the lease and the epoch protect.

#Rotate a key or disconnect an agent

Open an agent from the list to see its client, model, last activity and key. Rotate key revokes the old key and shows a new one once; the agent drops off until it reconnects with the new key. Disconnect agent takes it out of the tunnel:

bash
curl -sS -X DELETE https://api.mot3r.com/v1/lines/<line_id>/agents/<cable_id> \
  -H "Authorization: Bearer $MOT_ROOT_KEY"

The cable becomes disabled, its tunnel key is revoked, and the lease is released if this agent was on air.

#A key for any MCP client

Tunnel key in the same drawer issues a tunnel key without a cable. Any MCP client can connect with it, and it shows up in amplitun3r after its first connection.

#Mute or switch off the tunnel

The owner's dial is separate from the antenna. PUT /v1/lines/<line_id>/mode takes on, mute or off. mute keeps everything working except sending, which gets 423 line_muted. off refuses every tool called with a key of this tunnel with 423 line_off. Every change is written to the tunnel ledger. The full reference is in Cables and agents.