Edge Connector
Local AI agent security enforcement for Linux edge devices, with optional Fleet escalation over MQTT.
Preview. The Edge Connector is a C engine for Linux edge devices. It checks an agent's tool calls on the device with local rules and content inspection. When local rules cannot decide, it asks a DefenseClaw Fleet gateway over MQTT. It works with no network at all for the local checks.
When to use it instead of a desktop connector
Use a connector for desktop coding agents such as Claude Code, Codex and Cursor. Those assume a reliable network, plenty of memory and a person at the keyboard. Use the Edge Connector when the agent runs on a small device, the network comes and goes, or a bad tool call causes a physical action.
What it does
- Detects secrets, PII, credentials, exfiltration, prompt injection and dangerous commands in tool arguments and LLM responses.
- Blocks requests to private ranges and cloud metadata addresses, and allows network destinations only from a public-IP allowlist.
- Tracks multi-step capability patterns, for example fetch from the network then run a shell command.
- Applies fixed rate limits: 60 tool calls, 30 network requests and 10 physical actions (a motor, a relay) per minute.
- Keeps an audit ring in which each record carries a keyed hash (HMAC) of the record before it, so a changed or deleted record is visible.
- Takes signed policy updates over MQTT, with a rollback canary on each device (OTA policy updates).
Evaluation path
The engine runs seven checks in order and stops at the first local block. A cache hit avoids a new Fleet request, but the earlier local checks still run.
List view for small screens. Use the expand button to open the drawing.
- 1.Validate inputname, hash, session
- Rate limit
- 2.Rate limit3 token buckets
- Scan content
- 3.Scan contentsecrets, PII, injection
- Check destination
- 4.Check destinationSSRF and allowlist
- Match sequences
- 5.Match sequencesrisky multi-step patterns
- Verdict cache
- 6.Verdict cacheby tool hash
- cache missAsk Fleet
- 7.Ask FleetMQTT 3.1.1
Text version of this diagram
- Validate input: name, hash, session (component)
- to Rate limit
- Rate limit: 3 token buckets (component)
- to Scan content
- Scan content: secrets, PII, injection (component). Runs when the call carries content. Not in the MINIMAL build.
- to Check destination
- Check destination: SSRF and allowlist (component). Runs for network capabilities only.
- to Match sequences
- Match sequences: risky multi-step patterns (component)
- to Verdict cache
- Verdict cache: by tool hash (data store)
- cache miss to Ask Fleet
- Ask Fleet: MQTT 3.1.1 (gateway). Not in the MINIMAL build.
The result is ALLOW, BLOCK, WARN or PENDING. The Fleet gateway decides by tool hash and blocks an unknown hash by default. Architecture describes each check.
Build profiles
Pick a profile when you build: MINIMAL (no MQTT, no content scan, for a device with no Fleet), STANDARD (most edge devices) or EDGE (edge gateways, adds a bloom filter). Build profiles compares every setting. Measure size, memory and latency on your own target; TLS libraries and compiler flags change them.
Next steps
Install the Edge Connector
Build it, run the local check, then connect a device to Fleet.
Integrate with an agent
Python adapter, MCP proxy, LangChain, HTTP middleware, PicoClaw, FFI and the Unix socket.
Fleet operations
Policy compiler, MQTT broker, device keys, upgrades, build profiles, environment variables and the Grafana dashboard.
Architecture
The system, each check and the audit ring.
Policies
Capability sequences and the destination allowlist.
Fleet API
REST API for device registration and keys, policy and emergency distribution, threat intelligence, health and Prometheus metrics.
ACP guard reference
Look up what the ACP guard checks, how it judges actions, what the editor sees on a block, plus its settings, commands and gateway routes.
Edge Connector install
Build the Edge Connector on a Linux device, run the local smoke test, then connect the device to a DefenseClaw Fleet gateway.