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 withconfirm="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 athttps://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.skillvalues (the full list): the ten device/doc skills above, plussubmit_credential— used only to answer aninput-requiredcredential task —connector_health— lists your tenant's connectors and whether they are connected (no device required; setmetadata.include_capabilitiesto 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)) — andrecover_change— used only to recover after the device rejected a config command (metadata.plan_id,metadata.cancel: trueto 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 asmessage.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)
| Field | Where | Type | Default | Applies to |
|---|---|---|---|---|
skill | message.metadata.skill | string | netloop_ask | one of the skills listed above |
host | message.metadata.host | string | parsed from the text | device skills (target IP/hostname) |
connect_token | message.metadata.connect_token | string | tenant's first connector | route to a specific connector |
include_raw | message.metadata.include_raw | bool | false | netloop_ask/netloop_explain (raw output as evidence) |
include_docs | message.metadata.include_docs | bool | false over A2A (true for MCP/human) | netloop_ask/netloop_explain: append the signed > Source: documentation links |
include_version | message.metadata.include_version | bool | false | identify_platform (append raw show version evidence) |
include_capabilities | message.metadata.include_capabilities | bool | false | connector_health (also return what each connector may do) |
platform | message.metadata.platform | string | — | acronym_lookup (vendor key or alias) · netloop_commands (platform to list/validate against; may also be named in the text) |
mode | message.metadata.mode | string | lookup | netloop_commands: lookup (candidate commands) or validate (check one command) · netloop_drill: privileged (default) or config (explore configuration mode; blocked on a read-only connector) |
command | message.metadata.command | string | parsed from the text | netloop_drill: the rejected command to explore |
max_calls | message.metadata.max_calls | int | 10 | netloop_drill (max device queries per call, ≤ 50) |
model | message.metadata.model | string | vendor default | netloop_commands: per-model index, e.g. 2530 / 2930 |
limit | message.metadata.limit | int | 10 | netloop_commands (max candidates, ≤ 50) |
format | message.metadata.format | string | see note | netloop_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_findings | message.metadata.all_findings | bool | false | netloop_vuln (every finding instead of the top 20 by CVSS) |
verbose | message.metadata.verbose | bool | false | netloop_vuln (full contract: long source description + recommendation + advisory_groups; the default JSON is compact and fits the 64 KB result cap) |
challenge_id | message.metadata.challenge_id | string | — | submit_credential |
blob | message.metadata.blob | string | — | submit_credential (Base64 RSA-OAEP) |
plan_id | message.metadata.plan_id | string | — | confirm_change / recover_change (the id from a config_change_approval / config_change_confirm / config_change_recovery payload) |
approve | message.metadata.approve | bool | true | confirm_change: true = execute, false = reject |
confirm | message.metadata.confirm | string | — | confirm_change: "yes"/"no" — answer a device Y/N question (from a config_change_confirm payload) |
cancel | message.metadata.cancel | bool | false | recover_change: true = abort (no drill) |
taskId | message.taskId | string | — | resume a task parked in input-required |
contextId | message.contextId | string | auto | group related tasks (optional) |
blocking | configuration.blocking | bool | true | false → async, poll tasks/get (returnImmediately is a legacy alias) |
blockinglives underconfiguration, not undermetadata.skill_lookuphas noplatform/topicmetadata keys over A2A. To search documentation for a platform, name the platform in the query (e.g."… on ArubaOS-Switch") —skill_lookupresolves it from the query alias. (The MCP toolskill_lookupadditionally acceptsplatform/topicarguments.)acronym_lookupandnetloop_commandsdo acceptmetadata.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. Fornetloop_commandsthe platform may also be named in the text.netloop_commandsis the deterministic command map (no device): use it to find the documented command for a platform, or withmetadata.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 isnetloop_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/sendwith skillsubmit_credential; MCP: thenetloop_submit_credentialtool) — only the form that applies to your connection is shown.- The full schema is the structured
datapart; thetextpart is only a short pointer (status+challenge_id). Read thedatapart.
To continue:
- Encrypt
username<NUL>passwordlocally with RSA-OAEP-SHA256 and Base64-encode it (never send plaintext credentials in any field). The snippet needsNETLOOP_N=encryption.rsa.n_hexandNETLOOP_E=e_hex(not secret), and reads username + password from: (1) envNETLOOP_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 lineusername:password(curl-ustyle; or justpasswordifNETLOOP_USERis set). Handle the login with care: never put it on a command line, never echo/print it (not even viaenv/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 aprobe).nodeis frequently absent on Windows — the PowerShell snippet runs on any Windows 10+ (RSACng) with no extra install. message/sendwithmetadata.skill = "submit_credential",metadata.challenge_id,metadata.blob. A successful submit returns a task with a status message ("Credential accepted…") and the artifactok.- Continue — exactly which task: re-send your original request as a new
message/send, or resume the task that returnedinput-requiredby itstaskId. Do not reuse thesubmit_credentialresponse's owntaskId— the submit is a separate, already-COMPLETEDtask. 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 → exitfrom the vendor recipe) and the task isCOMPLETEDwith the per-command output and a diff of the changed configuration. The artifact also carries a structureddatapart (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}diffis an excerpt, not the full running-config (changed lines with one line of context, marked...;diff_notesays so). Usecommands[].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 insave_command(e.g.write memory) and — while a save is pending — carries a ready-madeapprove_and_savesnippet. To persist it, either (a) one step (agents): send the payload'sapprove_and_savecall (i.e.metadata.save: trueover A2A /save=trueon MCPnetloop_confirm_change) with the approval — the plan then also runs that save command andsavedistrue; 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 memoryon ArubaOS-Switch / AOS-CX,copy running-config startup-configon NX-OS,save forceon H3C Comware)."auto"= the device persists by itself (e.g. Junoscommit);"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 useconfiguration.blocking:falseand polltasks/get. -
Ownership: only the identity that created the plan can approve it.
-
Verify yourself afterwards (e.g.
netloop_fetch "show vlan");savedand the diff in the result are strong signals. -
Persistence evidence.
saved: truemeans the vendor's persist command ran successfully — it is listed indata.commands(e.g.write memory, statusok). For a device-side check, read the startup configuration with that platform's exact command (look it up withskill_lookup, e.g.skill_lookup("display the startup configuration on aos-2930")); a "startup"/"saved" question must be asked with the exact command vianetloop_fetch, not left tonetloop_askto infer — if you cannot name it, treat the startup state as not checked. -
MCP: same flow. The tool result is a
netloop-hitlblock (the web UI renders it as two buttons); parse its JSONplan_idand callnetloop_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
commandsbefore 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, orCommand 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/termsand the DPA athttps://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(nometadata.skilldevice 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 (theauth_token) sees it. Withmetadata.include_capabilitiesit 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 withread_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_explaintake the device frommetadata.host(A2A) /host(MCP) or from the text (an IP/hostname). Without one,netloop_ask/netloop_fetch/netloop_explainfail withmetadata.outcome: "invalid_request"(andidentify_platformreturns an invalid-request error).vendor_lookup(MACs),skill_lookup(documentation),acronym_lookup(acronym glossary) andnetloop_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 defaultnetloop_ask);identify_platformreturns the slug (e.g.aos-2930) and, withinclude_version: true(MCPinclude_version=True), the rawshow versiontoo. To just get the version, asknetloop_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, usenetloop_askinstead.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 isnetloop.path/v2and is graph-only (read it, not the ASCII):graph.nodes= every device once (stableid,fn,layer,platform,ports,sfp_ports,redundancy,snmp_location);graph.links= every edge once withfrom/tonode ids,from_port/to_port,speed+ numericspeed_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.kindsexplains thekindvocabulary. A device with several uplinks has extra edges withkind: "redundant_uplink"that lead back into the path viakind: "rejoin"— that is not an error, just an additional/backup path that was not followed.as_ofis the snapshot time. Thecachefield ({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 ingraph.unresolved[]with areasonand a ready-maderesolve({"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: anlldpedge is measured, aroutingedge is inferred. Thegraph.discoverymap 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_porte.g.Po1) lists each physicalmembers[]with its measured LACPstate(active/suspended/down/ …) — so a bundle where one member issuspended/downis visible without probing the device. Thegraph.stpmap 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_askquestion 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 isFAILED(no**PARTIAL:**) and the other topics are not attempted — ask each topic as its own request. - Want the evidence? Set
include_raw: true(onnetloop_ask/netloop_explain; MCP tool argumentinclude_raw, A2Amessage.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 withnetloop_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 innetloop_fetchand in anetloop_ask/netloop_explainquestion (it is stripped before the command is generated, then applied to the output). HereNcounts output lines, not the device's own log-event count (a device footer like "Events Listed" is unrelated). A longnetloop_askanswer states when it was interpreted from the head+tail only. Thelast Nwindow 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_drillwith 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 vianetloop_fetch. Then, if still unclear,skill_lookup(query, platform)finds the correct syntax for that platform.device_rejectedrecipe: (1) callnetloop_drillwith the rejected command and pick the right sub-command; (2) rephrase the request (the service picks another command) or retry withskill_lookupnaming the platform in the query (e.g."interface error counters on aos-2930"); (3) run the command the docs suggest vianetloop_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_lookupexcerpts may come from a different model family within the same platform; verify a command withnetloop_fetchbefore 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_askmay ask a clarifying question; answer it with a new request (an A2A task may also beinput-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_explainanswers 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 withskill_lookupor rephrase. Over A2A such a rejection sets the task toTASK_STATE_FAILEDandresult.metadata.outcome: "device_rejected"(task level — the exact path isresult.metadata.outcome, notresult.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 staysCOMPLETED). Rawnetloop_fetchoutput 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 inlinepowershell -NoProfile -Command "<snippet>"often breaks because your shell expands$/%VAR%before PowerShell sees it; the file form also keepsNETLOOP_USER/NETLOOP_PASSinside 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. Passhostexplicitly for device tools. - An MCP prompt named
netloop_usagecarries 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:
| Token | Role | Where |
|---|---|---|
auth_token | Identity (tenant, MFA gate, billing) | Authorization: Bearer (MCP/A2A) |
connect_token | Routing — selects a connector | connector config.yaml (server.connect-token); agents: metadata.connect_token (A2A) / connect_token (MCP) |
sup-xxxx | Support Mode one-time token | shown by the connector; redeem in the web UI with ^TOKEN sup-xxxx |
- Identity =
Authorization: Bearer <auth_token>(determines tenant, MFA gate and billing). Tokens withmfa_enabled: truerequire a LibreChat 2FA session; agents should usemfa_enabled: falsetokens. - Routing =
connect_token(selects a specific connector). For MCP pass the tool argumentconnect_token; for A2A passmessage.metadata.connect_token. The default is the tenant's first connector. - Cross-tenant (MSP): a regular
connect_tokenis tenant-bound. Access to another tenant's connector requires an explicitmsp_accessgrant on the target tenant (tenants.yaml, string or list of MSP tenant names) — or asup-…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-xxxxand 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: trueis the connector default and blocks every write outright. Withread_only: falsea write is still not executed directly — it is planned and must be approved viaconfirm_change(the task parks ininput-required). Demo mode (demo tenant / playground) is always read-only — write operations are never possible there. netloop_support_grantis 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/plainin and out. - Never transmit credentials in message text; on-demand credential prompting uses an end-to-end encrypted out-of-band flow.
Results & retention
| What | Window |
|---|---|
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/senddefault, orconfiguration.blocking:true) run inline; the gateway caps them at ~5 min — a longer blocking call ends in an error/timeout, so useconfiguration.blocking:false+ polltasks/getfor anything that may take longer. - A completed task is terminal (
-32004): start a new task for a follow-up (cached credentials make it cheap).taskIdcontinuation is only for theinput-required→ resume flow. - No server-push yet:
capabilities.streaming/pushNotificationsarefalse; poll for the result.
Response shape
- Device/read-only skills return a
textartifact (the answer + theExecuted command(s)footer);skill_lookup/vendor_lookupreturntext. - The credential challenge is a structured
datapart (status: credentials_required); itstextpart is only a short pointer. - A configuration change is a structured
datapart (kind: config_change_approval, parked ininput-required); approve it withconfirm_change+ itsplan_id. A device Y/N question (kind: config_change_confirm) and a rejected command (kind: config_change_recovery) park the same way — answer them withconfirm_change(confirm: "yes"|"no") orrecover_change. - A failed task is
TASK_STATE_FAILEDwithmetadata.outcome(device_rejected/generation_failed/timeout/expired/canceled).
Notes & mappings
- Task lifecycle /
taskId: a completed task is terminal (-32004) — except theinput-requiredresume: after delivering the credential, either re-send the request (new task) or continue the task that returnedinput-requiredon itstaskId. Thesubmit_credentialcall is its own task — never reuse itstaskId. Once the resumed task isCOMPLETED, itstaskIdis 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_commandsmap 1:1. Credential submit isnetloop_submit_credential(MCP tool) =submit_credential(A2A skill, viamessage.metadata.skill); change approval isnetloop_confirm_change(MCP tool) =confirm_change(A2A skill). - "Current problems" recipe: a natural-language
netloop_askalone can miss events — do both:netloop_ask(interpreted) and a rawnetloop_fetch "show logging last 200 lines"(evidence), then cross-check. - Versions: the Agent Card
protocolVersionis the A2A spec version (1.0); the transport envelope is JSON-RPC 2.0. - Platform names:
identify_platformreturns 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_tokencomes 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-xxxxwith^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:
| Direction | Destination | Protocol / port | Required |
|---|---|---|---|
| Connector → service | ws.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.ai | TCP 443 (https) | only if used |
| Connector → your devices | your switches / routers / APs | TCP 22 (configurable, per device) | yes |
| DNS | resolve *.netloop.ai | UDP/TCP 53 | yes |
| Connector → your HTTP(S) proxy (optional) | your proxy | as configured | optional |
| Connector → your syslog/SIEM (optional, off by default) | your receiver | UDP/TCP 514 (configurable) | optional |
- Firewall recommendation: allow
*.netloop.aion TCP 443, or be granular and allow only the hosts in use —ws.netloop.aifor the connector, plusmcp.netloop.ai/a2a.netloop.aiif 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 deviceport). - No LLM egress: the connector never talks to an LLM provider — all AI
processing is server-side.
ws.netloop.aiis the only endpoint the connector itself needs. - Proxy: a host without direct outbound access can reach the service
through an HTTP/HTTPS proxy (
server.proxyor the--proxyflag) — then you only allow host → your proxy, and the proxy →*.netloop.aion 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-bithttps://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/READMEon Linux; the read-only install folder for the Microsoft Store app)