Host Agent
The local B3IQ service for node identity, inventory, runtime probing, local APIs, receipts, heartbeats, and command polling.
The host agent is the local service that makes a machine usable as a B3IQ node. It owns local identity, machine inventory, setup APIs, runtime probes, model profile state, local auth, local API keys, receipts, heartbeats, and command polling.
Responsibilities
Local Listener
The default local listener is:
texthttp://127.0.0.1:8831
Loopback is the default because setup, local auth, and local API keys are operator-controlled local credentials. LAN-exposed appliance installs require explicit configuration and network controls.
Data The Host Agent Protects
| Data class | Handling |
|---|---|
| Setup token | Bootstrap or recovery credential. Do not expose through public docs, logs, or remote support bundles. |
| Local API key | `b3iq_local_` secrets are shown once, stored hashed, revocable, scoped, and safe examples keep them out of argv. |
| Support grant | `b3iq_support_` secrets are expiring, revocable, hash-stored, and diagnostics-only. |
| Node private key | Never persisted in public payloads. Recovery flows must label secrets as one-time operator artifacts. |
| Prompts and outputs | Local request content stays local unless the operator sends it to a runtime or explicitly uses a routed workflow. |
Common Commands
bashb3iq-host wizard url --with-token
bashcurl --fail http://127.0.0.1:8831/health
bashb3iq-host chat --api-key-file .secrets/b3iq-local-key
Prefer --api-key-stdin, --api-key-file, or environment variables for local
CLI testing. Do not place b3iq_local_ secrets directly into command argv.
Managed Node Behavior
The host agent does not need inbound networking for managed mode. It can:
- Request and sign enrollment challenges.
- Publish signed inventory and readiness heartbeats.
- Poll for commands over outbound HTTPS.
- Run narrow jobs such as benchmark smoke, tunnel health checks, model install, support bundle generation, and receipt submission.
- Submit signed command results and receipts.
