netloop.ai

Ask and operate switches, routers, APs and firewalls in natural language - read-only by default, every change needs Human-in-the-Loop approval.

Hosted MCP Server

npx add-mcp 'https://mcp.netloop.ai/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

netloop.ai — for AI agents

How autonomous agents should use netloop.ai.

What it is

netloop.ai gives CLI-based access to network devices (switches, routers, access points, firewalls). An agent asks a natural-language question about a device; netloop.ai runs the appropriate command through a connector inside the customer network and returns the answer. Device access is read-only by default (read_only: true in the connector config); write operations require read_only: false and an explicit Human-in-the-Loop approval (see Configuration changes (HITL)). EU-hosted, GDPR-compliant.

There are two intents: use the platform to reach a device (an agent queries a connector that is already connected), or provide a connector — deploy it inside a network and enrol it — so its devices become reachable and support can be granted. See Connector deployment & egress for the operator / end-customer side.

Interfaces

MCP (agent ↔ tools)

  • Endpoint: https://mcp.netloop.ai/mcp (Streamable HTTP) — SSE: https://mcp.netloop.ai/sse
  • Auth: Authorization: Bearer <auth_token>
  • A2A is equivalent. If your harness does not expose these MCP tools (e.g. the MCP entry is disabled), use the A2A endpoint below with the same token — same skills, same behaviour.
  • Tools: identify_platform, netloop_ask, netloop_fetch, netloop_explain, netloop_path, netloop_vuln, netloop_drill, vendor_lookup, skill_lookup, acronym_lookup, netloop_commands, netloop_support_grant, netloop_confirm_change (approve/reject a pending configuration change, or answer a device Y/N question with confirm="yes"|"no" — not read-only, changes no device state until you approve), netloop_recover_change (recover after the device rejected a config command — drills the device and proposes a corrected plan)
  • Resources: connector://capabilities — what each connected connector of your tenant is allowed to do (device access, approvals, encryption, credential delivery); connector://health — the live subset (connected since, connector version). Read-only, identity-scoped.

A2A (agent ↔ agent)

  • Agent Card: https://a2a.netloop.ai/.well-known/agent-card.json (also reachable via a 302 at https://netloop.ai/.well-known/agent-card.json)
  • Endpoint: https://a2a.netloop.ai/a2a (JSON-RPC 2.0)
  • Auth: Authorization: Bearer <auth_token>
  • Skills (read-only by default): identify_platform, netloop_ask, netloop_fetch, netloop_explain, netloop_path, netloop_vuln, netloop_drill, vendor_lookup, skill_lookup, acronym_lookup, netloop_commands, connector_health
  • metadata.skill values (the full list): the ten device/doc skills above, plus submit_credential — used only to answer an input-required credential task — connector_health — lists your tenant's connectors and whether they are connected (no device required; set metadata.include_capabilities to also get what each connector may do) — confirm_change — used only to approve/reject a pending configuration change or to answer a device Y/N question (metadata.confirm: "yes"|"no"; see Configuration changes (HITL)) — and recover_change — used only to recover after the device rejected a config command (metadata.plan_id, metadata.cancel: true to abort). Default when omitted: netloop_ask.
  • Methods: message/send, tasks/get, tasks/cancel (streaming/push are not offered; capabilities.streaming/pushNotifications = false)
  • For device skills (identify_platform, netloop_ask, netloop_fetch, netloop_explain) name the target device in the message text (e.g. "Identify the platform of 192.0.2.10") — the IP/hostname is parsed from the text. Alternatively pass it explicitly as message.metadata.host.

Minimal A2A call — auth is Authorization: Bearer (the MCP config's X-Auth-Token header is a legacy alias, accepted on MCP only):

curl -sS -X POST https://a2a.netloop.ai/a2a \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $NETLOOP_TOKEN" \
  -d '{"jsonrpc":"2.0","id":"1","method":"message/send",
       "params":{"message":{"role":"ROLE_USER","parts":[{"text":"Identify the platform of 192.0.2.10"}]}}}'

Where the auth token is: prefer the env var NETLOOP_TOKEN (ask your harness to inject it). If it is not set, the same value is your MCP config's X-Auth-Token header (mcp.<name>.headers.X-Auth-Token, e.g. in opencode.json — whether or not that MCP entry is enabled). Send it over A2A as Authorization: Bearer <auth_token> (X-Auth-Token is MCP-only). Never print it. Over A2A you must also set metadata.skill — the default is netloop_ask (a device skill), so a documentation question needs metadata.skill = "skill_lookup".

Example with include_raw and async (blocking lives under configuration):

{"jsonrpc":"2.0","id":"1","method":"message/send","params":{
  "message":{"role":"ROLE_USER",
             "metadata":{"skill":"netloop_ask","include_raw":true},
             "parts":[{"text":"What problems does 192.0.2.10 report?"}]},
  "configuration":{"blocking":false}}}

tasks/get takes the task id as params.id (not taskId); message/send uses message.taskId only to resume an input-required task:

curl -sS -X POST https://a2a.netloop.ai/a2a \
  -H 'Content-Type: application/json' -H "Authorization: Bearer $NETLOOP_TOKEN" \
  -d '{"jsonrpc":"2.0","id":"2","method":"tasks/get","params":{"id":"<taskId>"}}'

Request parameters (A2A)

FieldWhereTypeDefaultApplies to
skillmessage.metadata.skillstringnetloop_askone of the skills listed above
hostmessage.metadata.hoststringparsed from the textdevice skills (target IP/hostname)
connect_tokenmessage.metadata.connect_tokenstringtenant's first connectorroute to a specific connector
include_rawmessage.metadata.include_rawboolfalsenetloop_ask/netloop_explain (raw output as evidence)
include_docsmessage.metadata.include_docsboolfalse over A2A (true for MCP/human)netloop_ask/netloop_explain: append the signed > Source: documentation links
include_versionmessage.metadata.include_versionboolfalseidentify_platform (append raw show version evidence)
include_capabilitiesmessage.metadata.include_capabilitiesboolfalseconnector_health (also return what each connector may do)
platformmessage.metadata.platformstring—acronym_lookup (vendor key or alias) · netloop_commands (platform to list/validate against; may also be named in the text)
modemessage.metadata.modestringlookupnetloop_commands: lookup (candidate commands) or validate (check one command) · netloop_drill: privileged (default) or config (explore configuration mode; blocked on a read-only connector)
commandmessage.metadata.commandstringparsed from the textnetloop_drill: the rejected command to explore
max_callsmessage.metadata.max_callsint10netloop_drill (max device queries per call, ≤ 50)
modelmessage.metadata.modelstringvendor defaultnetloop_commands: per-model index, e.g. 2530 / 2930
limitmessage.metadata.limitint10netloop_commands (max candidates, ≤ 50)
formatmessage.metadata.formatstringsee notenetloop_vuln: json (default — compact netloop.vuln/v1), table, ascii, both. netloop_path: compact_json (default — short tree + JSON), full, compact, json, both. netloop_drill: raw (default — raw help output) or structured (parsed options flagged as documented in the skill docs)
all_findingsmessage.metadata.all_findingsboolfalsenetloop_vuln (every finding instead of the top 20 by CVSS)
verbosemessage.metadata.verboseboolfalsenetloop_vuln (full contract: long source description + recommendation + advisory_groups; the default JSON is compact and fits the 64 KB result cap)
challenge_idmessage.metadata.challenge_idstring—submit_credential
blobmessage.metadata.blobstring—submit_credential (Base64 RSA-OAEP)
plan_idmessage.metadata.plan_idstring—confirm_change / recover_change (the id from a config_change_approval / config_change_confirm / config_change_recovery payload)
approvemessage.metadata.approvebooltrueconfirm_change: true = execute, false = reject
confirmmessage.metadata.confirmstring—confirm_change: "yes"/"no" — answer a device Y/N question (from a config_change_confirm payload)
cancelmessage.metadata.cancelboolfalserecover_change: true = abort (no drill)
taskIdmessage.taskIdstring—resume a task parked in input-required
contextIdmessage.contextIdstringautogroup related tasks (optional)
blockingconfiguration.blockingbooltruefalse → async, poll tasks/get (returnImmediately is a legacy alias)
  • blocking lives under configuration, not under metadata.
  • skill_lookup has no platform / topic metadata keys over A2A. To search documentation for a platform, name the platform in the query (e.g. "… on ArubaOS-Switch") — skill_lookup resolves it from the query alias. (The MCP tool skill_lookup additionally accepts platform / topic arguments.) acronym_lookup and netloop_commands do accept metadata.platform (vendor key or alias, e.g. aoscx / Aruba CX). Pass it whenever the target device/platform is known: an acronym that vendors define differently (e.g. CDR) is otherwise returned as a per-vendor disambiguation instead of a single answer — so no answer can silently come from another vendor's handbook. For netloop_commands the platform may also be named in the text. netloop_commands is the deterministic command map (no device): use it to find the documented command for a platform, or with metadata.mode = "validate" to check a command before running it (a command absent from the index is not necessarily invalid — it may be undocumented).
  • To search documentation, set metadata.skill = "skill_lookup" explicitly — the default skill is netloop_ask (a device skill), so a doc question without it returns a misleading "no device" error.

Credential requests (input-required)

Connector still generating its agent key (credentials_warming_up). If the connector has not yet registered its agent (RSA) key — it is generated at startup and can take a while on slow hardware (e.g. a Raspberry Pi) — agent credential prompting is temporarily unavailable. A credential-requiring call then returns status: "credentials_warming_up" with retry_after_seconds (retriable; not a deliverable schema) and the A2A task is FAILED with result.metadata.outcome: "credentials_warming_up". Check readiness via connector_health / connector://health → agent_credentials ({enabled, ready}) before starting a credential-requiring task.

If the connector has no stored login for the target device, the task does not fail. It becomes TASK_STATE_INPUT_REQUIRED and its status message contains a credentials_required payload with:

  • the connector's RSA-4096 public key and ready-to-run snippets (node / python3 / perl / powershell),
  • submit: how to deliver the login over your transport (A2A: message/send with skill submit_credential; MCP: the netloop_submit_credential tool) — only the form that applies to your connection is shown.
  • The full schema is the structured data part; the text part is only a short pointer (status + challenge_id). Read the data part.

To continue:

  1. Encrypt username<NUL>password locally with RSA-OAEP-SHA256 and Base64-encode it (never send plaintext credentials in any field). The snippet needs NETLOOP_N = encryption.rsa.n_hex and NETLOOP_E = e_hex (not secret), and reads username + password from: (1) env NETLOOP_USER/NETLOOP_PASS — preferred: have your harness/orchestrator inject the secret into the runtime environment, then you only reference the variable name — or (2) one stdin line username:password (curl -u style; or just password if NETLOOP_USER is set). Handle the login with care: never put it on a command line, never echo/print it (not even via env/set -x), never repeat it in your messages or files; if you were given it in plaintext, prefer your runtime to inject it (env) rather than processing it yourself; treat it as short-lived and rotate it. Only the Base64 ciphertext leaves the machine. A missing username/password makes the snippet abort. Pick the first runtime that exists (node → python3 → perl → powershell; each has a probe). node is frequently absent on Windows — the PowerShell snippet runs on any Windows 10+ (RSACng) with no extra install.
  2. message/send with metadata.skill = "submit_credential", metadata.challenge_id, metadata.blob. A successful submit returns a task with a status message ("Credential accepted…") and the artifact ok.
  3. Continue — exactly which task: re-send your original request as a new message/send, or resume the task that returned input-required by its taskId. Do not reuse the submit_credential response's own taskId — the submit is a separate, already-COMPLETED task. The credentials are cached at the connector, so the next run succeeds.

The task is parked for the credential window (300 s per attempt). If you do not deliver in time it becomes FAILED with a clear "provision and re-send" message — re-issue the request. Only the requesting identity may submit; the challenge is never shown to other users. One challenge per input-required task: each such response carries a new challenge_id (the window is per attempt) — always submit the id from the most recent response; an older id is not reusable. Note: this only happens when the connector has no login for the host — once accepted it caches the login for 15 min (and if the connector has the login stored, there is no challenge at all), so most follow-up commands need no new prompt.

Windows end-to-end recipe (worked): from the challenge data part read challenge_id, encryption.rsa.n_hex / e_hex, and the PowerShell snippet; write the snippet to a local .ps1; run powershell -NoProfile -ExecutionPolicy Bypass -File enc.ps1 with NETLOOP_N/NETLOOP_E (from the payload) and NETLOOP_USER/NETLOOP_PASS (from your harness) in the environment; take the Base64 stdout as blob; then message/send with metadata.skill="submit_credential", metadata.challenge_id, metadata.blob. (challenge_id is inside the data part, i.e. result.status.message.parts[0].data.challenge_id — not at the top level.)

Configuration changes (HITL)

A write operation (configuration change, reboot, firmware update) is not executed directly. It is planned and must be approved — by a human in the web UI, or by an agent via the confirm_change skill / netloop_confirm_change tool. This is the Human-in-the-Loop safeguard. The connector must additionally allow writes: read_only: false (check it with connector_health / connector://health — with read_only: true the connector blocks every write, whatever the service sends).

Ask for the change in plain language (netloop_ask / netloop_fetch), e.g. "create a VLAN with ID 30 and the name HITL-E2E on 192.0.2.10". Instead of an answer the task comes back TASK_STATE_INPUT_REQUIRED with a config_change_approval payload:

{
  "kind": "config_change_approval",
  "status": "config_change_required",
  "plan_id": "p_<32hex>",
  "host": "192.0.2.10",
  "commands": ["configure terminal", "vlan 30 name HITL-E2E", "end"],
  "save_mode": "ask",
  "save_command": "write memory",
  "expires_in_seconds": 300,
  "approve":          {"skill": "confirm_change", "metadata": {"plan_id": "p_…", "approve": true}},
  "approve_and_save": {"skill": "confirm_change", "metadata": {"plan_id": "p_…", "approve": true, "save": true}},
  "reject":           {"skill": "confirm_change", "metadata": {"plan_id": "p_…", "approve": false}}
}

approve vs. approve_and_save: the ready-made approve applies the change to the running configuration only. When a save step is pending (save_mode: "ask", see below), the payload also carries approve_and_save (metadata.save: true) — use that one if you were asked to persist. (If only approve is present, there is nothing to save, e.g. save_mode: "auto".)

This is nothing sent yet, and it is not a login prompt: a credential challenge also parks a task in input-required, but its data part says status: credentials_required instead of kind: config_change_approval — read the data part to tell them apart.

Device Y/N question (config_change_confirm). If the device asks for a confirmation in the middle of the change (e.g. Continue (y/n)?), the connector stops there and the task parks again in input-required with:

{
  "kind": "config_change_confirm",
  "status": "device_confirmation_required",
  "plan_id": "p_<32hex>", "host": "192.0.2.10",
  "question": "loops on redundant links.  Continue (y/n)?",
  "context": "Changing STP modes may take several seconds, possibly …",
  "command": "spanning-tree priority 1",
  "expires_in_seconds": 300,
  "yes": {"skill": "confirm_change", "metadata": {"plan_id": "p_…", "confirm": "yes"}},
  "no":  {"skill": "confirm_change", "metadata": {"plan_id": "p_…", "confirm": "no"}}
}

Answer with the matching call. The change then continues on the same session and finishes as a normal result — or parks again if the device asks another question. This is your decision; the connector never auto-answers.

Rejected command (config_change_recovery). If the device rejects a command, the task parks with:

{
  "kind": "config_change_recovery",
  "status": "config_change_recovery_required",
  "plan_id": "p_<32hex>", "host": "192.0.2.10",
  "question": "The command was rejected. Look up the exact syntax (docs/CLI)?",
  "expires_in_seconds": 300,
  "recover": {"skill": "recover_change", "metadata": {"plan_id": "p_…"}},
  "cancel":  {"skill": "recover_change", "metadata": {"plan_id": "p_…", "cancel": true}}
}

Calling recover_change makes the connector drill the device (live CLI help for the rejected command) and propose a corrected command as a NEW plan — returned as a normal config_change_approval (nothing is sent until you approve it). The old plan stays failed. MCP: the same steps with the tools netloop_confirm_change(plan_id, confirm="yes"|"no") and netloop_recover_change(plan_id).

Nothing has been sent to the device at this point — review commands, then call confirm_change with the plan_id (approve is the default) or with approve: false to reject:

curl -sS -X POST https://a2a.netloop.ai/a2a \
  -H 'Content-Type: application/json' -H "Authorization: Bearer $NETLOOP_TOKEN" \
  -d '{"jsonrpc":"2.0","id":"1","method":"message/send","params":{"message":{
       "role":"ROLE_USER","metadata":{"skill":"confirm_change",
       "plan_id":"p_<32hex>","approve":true},"parts":[{"text":"approve"}]}}}'
  • Approved → the commands run (enter → <command> → commit → exit from the vendor recipe) and the task is COMPLETED with the per-command output and a diff of the changed configuration. The artifact also carries a structured data part (the machine-readable contract):

    {"kind": "config_change_result", "plan_id": "p_…", "host": "192.0.2.10",
     "status": "executed",
     "commands": [{"cmd": "configure terminal", "status": "ok", "output": ""},
                  {"cmd": "vlan 30 name X", "status": "ok", "output": ""},
                  {"cmd": "end", "status": "ok", "output": ""}],
     "diff": "…\n+vlan 30\n+   name \"X\"\n…",
     "diff_note": "excerpt only: the changed lines with 1 line of context; not the full running-config",
     "save_mode": "ask", "saved": false}
    

    diff is an excerpt, not the full running-config (changed lines with one line of context, marked ...; diff_note says so). Use commands[].status (ok/error) to see per-command success without a second device read.

  • Rejected → COMPLETED; nothing was sent.

  • save_mode: "ask" means the change is in the running configuration only (a reboot would lose it). The approval payload names the persist command in save_command (e.g. write memory) and — while a save is pending — carries a ready-made approve_and_save snippet. To persist it, either (a) one step (agents): send the payload's approve_and_save call (i.e. metadata.save: true over A2A / save=true on MCP netloop_confirm_change) with the approval — the plan then also runs that save command and saved is true; or (b) two steps (like the web UI): send a separate change request whose intent is to save and approve that plan too — e.g. netloop_fetch "save the running configuration on 192.0.2.10" produces the save command from that vendor's recipe (write memory on ArubaOS-Switch / AOS-CX, copy running-config startup-config on NX-OS, save force on H3C Comware). "auto" = the device persists by itself (e.g. Junos commit); "included" = the save was part of the same sequence.

  • Plan window 5 minutes. Approving later → the plan is gone and the call returns a JSON-RPC error instead of a task (nothing was changed):

    {"jsonrpc":"2.0","id":"1","error":{"code":-32602,
     "message":"Error: Change plan not found or expired (a plan is valid for 5 minutes)."}}
    

    Re-send the change request for a fresh plan. Not approving at all → the task ends FAILED (nothing changed). A blocking approval call is capped like any other (~5 min); for a long change use configuration.blocking:false and poll tasks/get.

  • Ownership: only the identity that created the plan can approve it.

  • Verify yourself afterwards (e.g. netloop_fetch "show vlan"); saved and the diff in the result are strong signals.

  • Persistence evidence. saved: true means the vendor's persist command ran successfully — it is listed in data.commands (e.g. write memory, status ok). For a device-side check, read the startup configuration with that platform's exact command (look it up with skill_lookup, e.g. skill_lookup("display the startup configuration on aos-2930")); a "startup"/"saved" question must be asked with the exact command via netloop_fetch, not left to netloop_ask to infer — if you cannot name it, treat the startup state as not checked.

  • MCP: same flow. The tool result is a netloop-hitl block (the web UI renders it as two buttons); parse its JSON plan_id and call netloop_confirm_change(plan_id, approve, save) — the tool result appends the same JSON contract in a ```json block.

  • Not atomic, no auto-revert. The commands run in order; if one is rejected the run stops with the earlier changes already applied and names the failed command — there is no automatic rollback. Review commands before approving and verify the device afterwards.

  • Your wording may be rewritten into the platform command. Ask in plain language; the command actually executed is always named in the result (the --- Executed command(s): … footer, or Command rejected by the device: \…``). The executed command is authoritative — not your phrasing.

  • Responsibility. You bear technical responsibility for the commands you approve; the applicable terms are at https://netloop.ai/en/terms and the DPA at https://netloop.ai/en/dpa.

Demo mode (demo tenant / playground) is always read-only — writes are never possible there.

How to ask (important)

Ask in natural language and let netloop.ai choose the command. Vendors differ (Cisco IOS, Aruba, Juniper, H3C, Fortinet, …); a command from the wrong platform fails on the device. This is how the web chat works and the intended way for agents too.

  • Name the target device in the question text, or pass metadata.host.
  • Check the connector first: connector_health (no metadata.skill device needed) lists your tenant's connectors and whether they are connected (masked id, label, since, version) — use it to confirm routing before device calls. It is identity-scoped: only an authenticated identity of that tenant (the auth_token) sees it. With metadata.include_capabilities it also shows whether the connector allows writes (read_only: false), whether credentials are stored in plaintext, and the target scope — an operator can narrow writes with read_only_devices (the approval gate is the only control once writes are enabled).
  • Device skills need a target. identify_platform, netloop_ask, netloop_fetch, netloop_explain take the device from metadata.host (A2A) / host (MCP) or from the text (an IP/hostname). Without one, netloop_ask/ netloop_fetch/netloop_explain fail with metadata.outcome: "invalid_request" (and identify_platform returns an invalid-request error). vendor_lookup (MACs), skill_lookup (documentation), acronym_lookup (acronym glossary) and netloop_commands (command map) need no device.
  • Platform & version: for a platform question set metadata.skill = "identify_platform" explicitly (the Card example "Identify the platform of X" otherwise runs the default netloop_ask); identify_platform returns the slug (e.g. aos-2930) and, with include_version: true (MCP include_version=True), the raw show version too. To just get the version, ask netloop_ask "What software version does <host> run?".
  • netloop_ask — for normal questions (asks the device and interprets the output). This is the default.
  • netloop_fetch — run a specific command only when you are 100% certain it is correct for that product/platform (returns raw output). If you are not certain, use netloop_ask instead.
  • netloop_path — topology ("how does X reach the Internet", "where does MAC/ip Y hang"). A machine caller gets the short ASCII tree plus the JSON contract. The JSON is netloop.path/v2 and is graph-only (read it, not the ASCII): graph.nodes = every device once (stable id, fn, layer, platform, ports, sfp_ports, redundancy, snmp_location); graph.links = every edge once with from/to node ids, from_port/ to_port, speed + numeric speed_mbps, media_kind (fiber/copper/dac)
    • media_code (e.g. SR/RJ45), status, kind; graph.path = the followed chain as a node-id list; graph.kinds explains the kind vocabulary. A device with several uplinks has extra edges with kind: "redundant_uplink" that lead back into the path via kind: "rejoin" — that is not an error, just an additional/backup path that was not followed. as_of is the snapshot time. The cache field ({cached, age_s, ttl_s}) says whether this is a cached snapshot (the tool keeps a topology for ~10 min per device + options, so repeat calls are cheap and identical). The old v1 hop chain is gone from the JSON.
  • What is not fully known: a device that is only an LLDP/CDP neighbour (a downlink) is not queried — its node carries "detail": "neighbor" (path devices carry "detail": "full") and it appears in graph.unresolved[] with a reason and a ready-made resolve ({"tool":"netloop_path", "arguments":{"host":"<ip>"}}). If you need its ports/speed/status, make that call yourself — we do not silently log into every neighbour.
  • Provenance per edge: every link carries discovery — lldp / cdp / topology (a vendor-specific neighbour command) / routing (derived from routing+ARP+traceroute, i.e. not a topology protocol) / arp (the A→B end device). Use it to weight an edge: an lldp edge is measured, a routing edge is inferred. The graph.discovery map documents the values.
  • Is an "up" link actually forwarding? Every link may carry stp — { "role", "state", "vlan", "forwarding" } read from the local port's spanning-tree state (forwarding:false = physically up but STP-blocked, i.e. a standby/backup uplink; forwarding:null = not determined). A LAG link (type:"lag", logical_port e.g. Po1) lists each physical members[] with its measured LACP state (active / suspended / down / …) — so a bundle where one member is suspended/down is visible without probing the device. The graph.stp map documents the fields. (STP is read for IOS today; other vendors report it only once their capture is verified — the field is then simply absent.)
  • One topic per request. A multi-topic netloop_ask question is answered for the first command only; the rest are dropped and listed as NOT executed (the answer starts with **PARTIAL:**). If that first command is rejected, the whole task is FAILED (no **PARTIAL:**) and the other topics are not attempted — ask each topic as its own request.
  • Want the evidence? Set include_raw: true (on netloop_ask / netloop_explain; MCP tool argument include_raw, A2A message.metadata.include_raw) to also get the raw CLI output of the command that was actually executed, appended and clearly labelled "evidence, not the answer" (capped 64 KB head+tail). Use it to cite/verify a claim — better than guessing the command yourself with netloop_fetch.
  • Long output? Raw output is truncated head + tail at 64 KB (the newest lines are kept) with a marker stating the original size and limit. To get exactly the newest lines, append a window to your request — e.g. "show logging last 200 lines" or "show logging since 2026-10-29". The window is honored in netloop_fetch and in a netloop_ask/netloop_explain question (it is stripped before the command is generated, then applied to the output). Here N counts output lines, not the device's own log-event count (a device footer like "Events Listed" is unrelated). A long netloop_ask answer states when it was interpreted from the head+tail only. The last N window keeps the newest whole lines and prepends a header [… showing the last N of M lines …]; the device itself may wrap long lines mid-word — do not grep across wrapped lines.
  • Rejected command? First call netloop_drill with the device and the rejected command — it recursively strips the last token and queries the platform's help (show spanning-tree → show spanning-tree ? → show interface ? → show ?) and returns the raw help output; read it and retry via netloop_fetch. Then, if still unclear, skill_lookup(query, platform) finds the correct syntax for that platform. device_rejected recipe: (1) call netloop_drill with the rejected command and pick the right sub-command; (2) rephrase the request (the service picks another command) or retry with skill_lookup naming the platform in the query (e.g. "interface error counters on aos-2930"); (3) run the command the docs suggest via netloop_fetch; (4) if that is rejected too, or neither returns a usable command, report the topic as not checked (do not present it as a finding).
  • Documentation is not model-exact. skill_lookup excerpts may come from a different model family within the same platform; verify a command with netloop_fetch before trusting its syntax, and report a rejection as a device finding, not a docs error.
  • Documentation links are signed and expire (~1 h) — read/cite them promptly; do not store or reuse them later.
  • Pipes / output filters: prefer a plain command. netloop adds an output filter (| include, | match, …) only when the target platform supports it and the unfiltered output would otherwise be too large. Many platforms reject pipes (Invalid input), so do not rely on them.
  • netloop_ask may ask a clarifying question; answer it with a new request (an A2A task may also be input-required). It may suggest a follow-up command — that command is not executed automatically.
  • Base every answer on tool output. A negative claim ("no X") means "no X in the executed command(s) only" — name the executed command in the same sentence (e.g. "no alarms in show system") and cite that output; if the command does not cover the topic, say "not checked".
  • netloop_ask/netloop_explain answers end with a --- Executed command(s): … line (and note any dropped extra commands) — use it to check the scope of each claim. A command the device rejects is returned as --- Command rejected by the device: …: that is not an answer, so retry with skill_lookup or rephrase. Over A2A such a rejection sets the task to TASK_STATE_FAILED and result.metadata.outcome: "device_rejected" (task level — the exact path is result.metadata.outcome, not result.status.message.metadata; distinct from a command-generation failure "generation_failed", a "timeout", an "expired" or a "canceled" task); a partial answer starts with **PARTIAL:** and lists the commands that were NOT executed (state stays COMPLETED). Raw netloop_fetch output is flagged the same way when the device rejects it.
  • After a credential submit the login is cached for 15 minutes (no new prompt within that window).
  • On Windows the PowerShell snippet: prefer writing it to a local file (created by your own tooling) and running powershell -NoProfile -ExecutionPolicy Bypass -File <file>.ps1. An inline powershell -NoProfile -Command "<snippet>" often breaks because your shell expands $/%VAR% before PowerShell sees it; the file form also keeps NETLOOP_USER/NETLOOP_PASS inside PowerShell, never on the command line. Do not download a .ps1 — Windows blocks downloaded script files.
  • In MCP tool calls do not pass auth_token; the identity comes from the connection header. Pass host explicitly for device tools.
  • An MCP prompt named netloop_usage carries these rules and can be re-fetched at any time (prompts/get) to refresh your context.

Authentication & routing

Three token types — do not mix them up:

TokenRoleWhere
auth_tokenIdentity (tenant, MFA gate, billing)Authorization: Bearer (MCP/A2A)
connect_tokenRouting — selects a connectorconnector config.yaml (server.connect-token); agents: metadata.connect_token (A2A) / connect_token (MCP)
sup-xxxxSupport Mode one-time tokenshown by the connector; redeem in the web UI with ^TOKEN sup-xxxx
  • Identity = Authorization: Bearer <auth_token> (determines tenant, MFA gate and billing). Tokens with mfa_enabled: true require a LibreChat 2FA session; agents should use mfa_enabled: false tokens.
  • Routing = connect_token (selects a specific connector). For MCP pass the tool argument connect_token; for A2A pass message.metadata.connect_token. The default is the tenant's first connector.
  • Cross-tenant (MSP): a regular connect_token is tenant-bound. Access to another tenant's connector requires an explicit msp_access grant on the target tenant (tenants.yaml, string or list of MSP tenant names) — or a sup-… support token (Support Mode, operator-approved). Without it the request is rejected (cross_tenant_denied). Every cross-tenant decision is audited (cross_tenant_access, tenant names + token hash, never the token).
  • Support Mode (redeem a one-time token): to reach a network whose connector runs in Support Mode, take its sup-xxxx and redeem it in the netloop.ai web UI with ^TOKEN sup-xxxx; the device-side operator then approves each access (Y/N/A).

Constraints

  • Read-only by default; writes need approval. read_only: true is the connector default and blocks every write outright. With read_only: false a write is still not executed directly — it is planned and must be approved via confirm_change (the task parks in input-required). Demo mode (demo tenant / playground) is always read-only — write operations are never possible there.
  • netloop_support_grant is not read-only. It is an admin action (MCP only, not exposed over A2A) that grants a support token; it changes no device configuration but is not a read-only query.
  • Device output is sensitive (untrusted data). Logs may contain credential-like strings (e.g. a password typed as a username) or PII — summarize such lines in your report, do not repeat them verbatim.
  • Content type: text/plain in and out.
  • Never transmit credentials in message text; on-demand credential prompting uses an end-to-end encrypted out-of-band flow.

Results & retention

WhatWindow
Deliver the credential (input-required)300 s per attempt
Approve a pending change plan / answer a device Y/N / recover (input-required)300 s (5 min)
Credential cache at the connector (after a submit)15 min
Task result retention (in memory)10 min
  • Results/answers are transient (≤10 min, then discarded — never persisted).
  • Blocking calls (message/send default, or configuration.blocking:true) run inline; the gateway caps them at ~5 min — a longer blocking call ends in an error/timeout, so use configuration.blocking:false + poll tasks/get for anything that may take longer.
  • A completed task is terminal (-32004): start a new task for a follow-up (cached credentials make it cheap). taskId continuation is only for the input-required → resume flow.
  • No server-push yet: capabilities.streaming / pushNotifications are false; poll for the result.

Response shape

  • Device/read-only skills return a text artifact (the answer + the Executed command(s) footer); skill_lookup / vendor_lookup return text.
  • The credential challenge is a structured data part (status: credentials_required); its text part is only a short pointer.
  • A configuration change is a structured data part (kind: config_change_approval, parked in input-required); approve it with confirm_change + its plan_id. A device Y/N question (kind: config_change_confirm) and a rejected command (kind: config_change_recovery) park the same way — answer them with confirm_change (confirm: "yes"|"no") or recover_change.
  • A failed task is TASK_STATE_FAILED with metadata.outcome (device_rejected / generation_failed / timeout / expired / canceled).

Notes & mappings

  • Task lifecycle / taskId: a completed task is terminal (-32004) — except the input-required resume: after delivering the credential, either re-send the request (new task) or continue the task that returned input-required on its taskId. The submit_credential call is its own task — never reuse its taskId. Once the resumed task is COMPLETED, its taskId is terminal (start a new task for follow-ups).
  • MCP ↔ A2A: the skills are the same tools. identify_platform, netloop_ask, netloop_fetch, netloop_explain, netloop_path, netloop_vuln, netloop_drill, vendor_lookup, skill_lookup, acronym_lookup, netloop_commands map 1:1. Credential submit is netloop_submit_credential (MCP tool) = submit_credential (A2A skill, via message.metadata.skill); change approval is netloop_confirm_change (MCP tool) = confirm_change (A2A skill).
  • "Current problems" recipe: a natural-language netloop_ask alone can miss events — do both: netloop_ask (interpreted) and a raw netloop_fetch "show logging last 200 lines" (evidence), then cross-check.
  • Versions: the Agent Card protocolVersion is the A2A spec version (1.0); the transport envelope is JSON-RPC 2.0.
  • Platform names: identify_platform returns an internal slug; marketing names differ. Examples: aos-2930 = HPE Aruba Networking 2930 (ArubaOS-Switch / AOS-S); aoscx-6200 = Aruba CX 6200; ios = Cisco IOS; nxos = Cisco NX-OS; junos = Juniper Junos; comware = H3C Comware; fortios = Fortinet FortiOS.

Connector deployment & egress

Intent: provide a connector (as opposed to using one). You deploy the connector inside a network, enrol it, and its devices become reachable through netloop.ai — and support can be granted.

Install & run

Linux (direct download — a bare binary, no archive). Put it in a directory you can write to. Every download has a published SHA-256 checksum — verify it before first run.

curl -L -o netloop-connector \
  https://netloop.ai/download/connector/linux/netloop-connector
curl -L -o netloop-connector.sha256 \
  https://netloop.ai/download/connector/linux/netloop-connector.sha256
sha256sum -c netloop-connector.sha256   # verify the download
chmod +x netloop-connector
./netloop-connector                 # TUI (default)
./netloop-connector --mode service  # headless daemon

Raspberry Pi (ARM). The same bare-binary direct download; pick the build by uname -m: aarch64 → 64-bit, armv7l → 32-bit. A Raspberry Pi 5 is 64-bit only; on a 32-bit Raspberry Pi OS use the armv7 build.

# 64-bit (Raspberry Pi 3/4/5, Zero 2 on a 64-bit Raspberry Pi OS):
curl -L -o netloop-connector \
  https://netloop.ai/download/connector/linux-arm64/netloop-connector
curl -L -o netloop-connector.sha256 \
  https://netloop.ai/download/connector/linux-arm64/netloop-connector.sha256
# 32-bit: use the …/linux-armv7/… URLs instead.
sha256sum -c netloop-connector.sha256   # verify the download
chmod +x netloop-connector
./netloop-connector                 # TUI (default)
./netloop-connector --mode service  # headless daemon

On first start the binary creates a netloop/ folder next to itself and writes the default config.yaml there (plus the docs and three example configs). Edit netloop/config.yaml to enrol and configure; on later starts config.yaml is rewritten from the shipped template, but your server, ssh, devices and EULA state are preserved. It runs as a normal user — outbound only, no root needed. No self-update: re-download to update.

Windows (Microsoft Store, MSIX). winget install --id 9N11Z1PZGG93 --source msstore (or the Store page). The read-only files (EULA, README, example configs) ship inside the package next to the binary in the read-only install folder — nothing is extracted. On first start the connector creates the writable config at %USERPROFILE%\netloop\config.yaml (override with NETLOOP_DATA_DIR). No Windows service is installed — run it interactively, or start it headless with --mode service (e.g. via Task Scheduler). Updates come through the Store. The Windows executable's SHA-256 checksum is published at https://netloop.ai/download/connector/windows/netloop-connector.exe.sha256.

macOS: not provided (no date). (64-bit Raspberry Pi OS is covered by the arm64 build above.)

First start (both platforms): the EULA is shown and must be accepted; in --mode service there is no terminal, so it is auto-accepted with a warning.

What success looks like: on start the connector shows/prints its state (TUI or service log) and connects to ws.netloop.ai once enrolled; in Support Mode it shows the sup-xxxx token. Confirm it is connected from the service side with connector_health (A2A) / connector://health (MCP).

Builds: linux/amd64 (x86_64), linux/arm64 (Raspberry Pi 3/4/5, Zero 2 on a 64-bit OS), linux/armv7 (Raspberry Pi on a 32-bit OS) and windows/amd64; print the version with netloop-connector --version.

Enrol a connector

No connect_token and no netloop.ai account? Then use Support Mode — that is currently the default path, in particular for an agent (A2A) that only has an on-demand task. A persistent tenant token needs an account; the account is created human-in-the-loop (invite/onboarding, no self-signup). Two ways — same binary, different config.yaml:

Where an account is needed: the Microsoft Store lists "a netloop.ai account" as a requirement. Precisely:

  • the connector itself needs no account in Support Mode;
  • the full feature set — agentic requests (MCP/A2A) to a connector — requires a netloop.ai account (that is where the agent identity / auth_token comes from; onboarding is human-in-the-loop);
  • a human without an account can still reach a Support-Mode connector through the netloop.ai front end in demo mode (redeem the sup-xxxx with ^TOKEN sup-xxxx).

1) Tenant token (persistent). Requires a registered and activated netloop.ai account. Onboarding is human-in-the-loop: the account is created by netloop.ai — invite / onboarding token, no self-registration. To request one, contact the provider (e.g. human@netloop.ai); account setup is manual, expect a short lead time. A human then provides the tenant's connect_token; put it in the connector's config.yaml as server.connect-token and it routes to this specific connector.

2) Support Mode (no tenant, no account — the default without a token). If you have no connect_token, this is the option — leave server.connect-token empty in config.yaml. The connector generates a sup-xxxx token (valid 1 h, hourly regenerated, 1 h grace). Each request is confirmed locally (Y/N/A) by the operator; approvals are bound to the requester and kept in memory only. Support Mode needs no account.

Where to run the connector

Run the connector on a host inside the network — optionally always-on — that (a) can reach the devices (see Restrict access to network devices) and (b) has outbound access to the service (see Egress). It is a lightweight outbound-only client — a small VM, a server, or the management host; the Linux binary also runs under WSL on Windows.

Exactly one connection per connect_token — a second connection with the same token is rejected (the running one keeps its session). A tenant can run several connectors, each with its own connect_token, for segmentation or redundancy.

Device credentials

Two ways to give the connector a device login:

Stored (encrypted at rest). Set ssh.username / ssh.password (and/or per-device entries under devices[]). With encrypted-credentials: true (default) the password is migrated to encrypted form in place on first start; decryption needs the service's key, available once the connector is enrolled (a connect_token, or Support Mode). Plaintext is a per-device opt-out (encrypted-credentials: false, not recommended).

On demand (nothing stored). With credential_prompting.enabled: true, a query to a device without stored credentials asks for them through the UI; the login is decrypted only on the connector and kept in memory for cache_ttl_minutes (default 15). Over MCP/A2A this is the input-required flow. If prompting is off and nothing is stored, the query is rejected with a clear message.

Recommendation: stored + encrypted for fixed devices; on demand for short-lived / ad-hoc access.

Restrict access to network devices

ssh.targets-allowed limits which devices the connector may reach: a comma-separated list of CIDR subnets and/or exact hosts/IPs. Empty or 0.0.0.0/0 means any target; a host that is not covered is rejected before any connection is attempted. Default: 0.0.0.0/0.

Recommendation: narrow it to your management networks. The shipped config-local-credentials.yaml example does this (targets-allowed: 192.168.1.0/24, 10.0.0.0/8). Per-device overrides (credentials, port) live under devices[].

Egress (firewall)

A connector is an outbound-only client: it opens no inbound port. If you deploy one, allow these outbound flows:

DirectionDestinationProtocol / portRequired
Connector → servicews.netloop.ai (or allow *.netloop.ai)TCP 443 (wss/TLS)yes
Agent → service (only if an agent here calls the interfaces)mcp.netloop.ai, a2a.netloop.aiTCP 443 (https)only if used
Connector → your devicesyour switches / routers / APsTCP 22 (configurable, per device)yes
DNSresolve *.netloop.aiUDP/TCP 53yes
Connector → your HTTP(S) proxy (optional)your proxyas configuredoptional
Connector → your syslog/SIEM (optional, off by default)your receiverUDP/TCP 514 (configurable)optional
  • Firewall recommendation: allow *.netloop.ai on TCP 443, or be granular and allow only the hosts in use — ws.netloop.ai for the connector, plus mcp.netloop.ai / a2a.netloop.ai if you also call the agent interfaces. No fixed IPs are published — pin the hostnames (the service may move).
  • No inbound: the connector listens on no port. Device access is an outbound CLI session to the device, on the device's CLI port (SSH, default 22, configurable via ssh.port / per device port).
  • No LLM egress: the connector never talks to an LLM provider — all AI processing is server-side. ws.netloop.ai is the only endpoint the connector itself needs.
  • Proxy: a host without direct outbound access can reach the service through an HTTP/HTTPS proxy (server.proxy or the --proxy flag) — then you only allow host → your proxy, and the proxy → *.netloop.ai on TCP 443.

Configuration reference (config.yaml)

Created on first start (see Install & run); all keys with their defaults. Only server and legal_acceptance are preserved across upgrades.

server:
  url: wss://ws.netloop.ai
  connect-token: ""            # empty => Support Mode
  # proxy: http://proxy.example:3128   # optional HTTP(S) proxy
support_mode:
  enabled: true
  granting: true               # human confirms each request (Y/N/A)
  max_failed_claims: 5
  rate_window_minutes: 15
  ban_duration_minutes: 60
credential_prompting:
  enabled: true                # on-demand logins, memory only
  cache_ttl_minutes: 15
  max_failed_attempts: 3
  max_challenges: 15
ssh:
  username: ""                 # optional; else prompted (credential_prompting)
  password: ""
  port: 22
  targets-allowed: 0.0.0.0/0   # restrict to your management networks
  encrypted-credentials: true
  known-hosts: true
  warn-only: true
devices: []                    # optional per-host / per-subnet overrides
syslog:
  enabled: false               # optional: forward logs to your SIEM
  host: 127.0.0.1
  port: 514
  protocol: udp
  severity: notice
log_usernames: true
log_buf_max: 5000

Further option descriptions (paging, session pool, devices[], …): the connector README (see Links).

Links

  • Agent Card: https://a2a.netloop.ai/.well-known/agent-card.json
  • MCP: https://mcp.netloop.ai/mcp
  • LLM discovery: https://netloop.ai/llms.txt
  • Connector (Linux, x86_64): https://netloop.ai/download/connector/linux/netloop-connector
  • Connector (Raspberry Pi / ARM): 64-bit https://netloop.ai/download/connector/linux-arm64/netloop-connector · 32-bit https://netloop.ai/download/connector/linux-armv7/netloop-connector
  • Connector (Windows / Microsoft Store): https://apps.microsoft.com/detail/9N11Z1PZGG93 — install: winget install --id 9N11Z1PZGG93 --source msstore
  • Legal provider / imprint: https://netloop.ai/en/imprint
  • Full configuration reference: the connector README, bundled with the connector (netloop/README on Linux; the read-only install folder for the Microsoft Store app)