Skip to main content

Module node_client

Module node_client 

Source
Expand description

Local Grok ACP node client: one session per machine, woken on M4A_LEADER_SOCK, never by webhook.

Open path: crate::NodeClient::from_env. That refuses M4A_ROUTINE_URL / M4A_ROUTINE_BEARER before register, requires an existing ACP leader socket, opens the homeserver push link, and runs a drive/push loop. Replies go through the local send socket (m4a-send, default node-client.sock under the store root).

Homeserver URL, bot display name, session id, and store root come from the environment / node-client.env (see the project documentation docs/mail4agent/local-acp-client.md). Nothing here embeds a host, URL, key, or bearer. This process does not start grok and does not deploy to a VPS.

Functionsยง

run