grix-connector 3.1.15 → 3.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +241 -241
  2. package/dist/adapter/claude/claude-adapter.js +19 -19
  3. package/dist/adapter/claude/claude-bridge-server.js +1 -0
  4. package/dist/adapter/claude/claude-tools.js +1 -0
  5. package/dist/adapter/claude/claude-worker-client.js +1 -0
  6. package/dist/adapter/claude/mcp-http-launcher.js +2 -0
  7. package/dist/adapter/claude/result-timeout.js +1 -0
  8. package/dist/adapter/claude/usage-parser.js +7 -9
  9. package/dist/adapter/deepseek/deepseek-adapter.js +6 -0
  10. package/dist/adapter/deepseek/index.js +1 -0
  11. package/dist/adapter/qwen/index.js +1 -0
  12. package/dist/adapter/qwen/qwen-adapter.js +4 -0
  13. package/dist/aibot/client.js +1 -0
  14. package/dist/aibot/index.js +1 -0
  15. package/dist/aibot/types.js +0 -0
  16. package/dist/bridge/bridge.js +7 -7
  17. package/dist/core/file-ops/handler.js +1 -0
  18. package/dist/core/file-ops/list-files.js +1 -0
  19. package/dist/core/file-ops/types.js +0 -0
  20. package/dist/core/mcp/tools.js +1 -1
  21. package/dist/default-skills/grix-access-control/SKILL.md +31 -31
  22. package/dist/default-skills/grix-admin/SKILL.md +35 -35
  23. package/dist/default-skills/grix-agent-dispatch/SKILL.md +89 -89
  24. package/dist/default-skills/grix-chat-state/SKILL.md +56 -56
  25. package/dist/default-skills/grix-egg/SKILL.md +90 -90
  26. package/dist/default-skills/grix-group/SKILL.md +35 -35
  27. package/dist/default-skills/grix-owner-relay/SKILL.md +66 -66
  28. package/dist/default-skills/grix-query/SKILL.md +41 -38
  29. package/dist/default-skills/grix-task-status/SKILL.md +36 -0
  30. package/dist/default-skills/message-send/SKILL.md +36 -36
  31. package/dist/default-skills/message-unsend/SKILL.md +27 -27
  32. package/dist/default-skills/tailnet-file-share/SKILL.md +65 -65
  33. package/dist/grix.js +0 -0
  34. package/dist/log.js +3 -0
  35. package/dist/main.js +31 -0
  36. package/dist/mcp/acp-mcp-server.js +3 -3
  37. package/dist/mcp/stdio/server.js +6 -6
  38. package/dist/mcp/stream-http/config.js +1 -0
  39. package/dist/mcp/stream-http/connection-binding.js +1 -0
  40. package/dist/mcp/stream-http/event-tool-executor.js +1 -0
  41. package/dist/mcp/stream-http/gateway.js +1 -0
  42. package/dist/mcp/stream-http/index.js +1 -0
  43. package/dist/mcp/stream-http/security.js +1 -0
  44. package/dist/mcp/stream-http/session-manager.js +1 -0
  45. package/dist/mcp/stream-http/tool-executor.js +1 -0
  46. package/dist/mcp/stream-http/tool-registry.js +1 -0
  47. package/dist/mcp/stream-http/tool-schemas.js +1 -0
  48. package/dist/session/index.js +1 -0
  49. package/dist/session/manager.js +1 -0
  50. package/dist/transport/index.js +1 -0
  51. package/dist/transport/json-rpc.js +3 -0
  52. package/openclaw-plugin/index.js +44 -5
  53. package/openclaw-plugin/skills/grix-admin/SKILL.md +202 -202
  54. package/openclaw-plugin/skills/grix-admin/references/api-contract.md +210 -210
  55. package/openclaw-plugin/skills/grix-egg/SKILL.md +81 -81
  56. package/openclaw-plugin/skills/grix-egg/references/api-contract.md +40 -40
  57. package/openclaw-plugin/skills/grix-group/SKILL.md +164 -164
  58. package/openclaw-plugin/skills/grix-group/references/api-contract.md +97 -97
  59. package/openclaw-plugin/skills/grix-query/SKILL.md +251 -247
  60. package/openclaw-plugin/skills/grix-register/SKILL.md +86 -86
  61. package/openclaw-plugin/skills/grix-register/references/api-contract.md +76 -76
  62. package/openclaw-plugin/skills/grix-register/references/grix-concepts.md +26 -26
  63. package/openclaw-plugin/skills/grix-register/references/handoff-contract.md +24 -24
  64. package/openclaw-plugin/skills/grix-register/references/openclaw-setup.md +6 -6
  65. package/openclaw-plugin/skills/grix-register/references/user-replies.md +25 -25
  66. package/openclaw-plugin/skills/grix-update/SKILL.md +310 -310
  67. package/openclaw-plugin/skills/grix-update/references/cron-setup.md +56 -56
  68. package/openclaw-plugin/skills/grix-update/references/update-contract.md +149 -149
  69. package/openclaw-plugin/skills/message-send/SKILL.md +197 -197
  70. package/openclaw-plugin/skills/message-unsend/SKILL.md +186 -186
  71. package/openclaw-plugin/skills/message-unsend/flowchart.mermaid +27 -27
  72. package/openclaw-plugin/skills/openclaw-memory-setup/SKILL.md +282 -282
  73. package/openclaw-plugin/skills/openclaw-memory-setup/references/case-study-macpro.md +52 -52
  74. package/openclaw-plugin/skills/openclaw-memory-setup/references/host-readiness.md +147 -147
  75. package/openclaw.plugin.json +24 -24
  76. package/package.json +121 -121
  77. package/scripts/install-guardian.mjs +27 -27
  78. package/scripts/install-guardian.sh +25 -25
  79. package/scripts/upgrade-guardian.sh +104 -104
package/README.md CHANGED
@@ -1,241 +1,241 @@
1
- # grix-connector
2
-
3
- A command-line daemon that connects your local AI coding agents to the [Grix](https://grix.im) platform.
4
-
5
- ## What is Grix?
6
-
7
- Grix is an AI Agent scheduling platform. It lets you manage and interact with multiple AI coding agents through a unified chat interface. Register at [grix.im](https://grix.im) to get started.
8
-
9
- ## Get the Client
10
-
11
- After installing grix-connector, download the Grix client from [grix.im](https://grix.im) to chat with your agents. Clients are available for iOS, Android, macOS, Windows, and Linux.
12
-
13
- ## Supported Agents
14
-
15
- Set `client_type` in your config to one of the values below. Each `client_type` maps to a built-in adapter and CLI command — you only need the corresponding CLI installed locally.
16
-
17
- | `client_type` | Agent | Adapter | Required CLI |
18
- |---|---|---|---|
19
- | `claude` | Claude Code (Anthropic) | claude | `claude` |
20
- | `codex` | Codex (OpenAI) | codex | `codex` |
21
- | `gemini` | Gemini (Google) | acp | `gemini` |
22
- | `qwen` | Qwen (Alibaba) | acp | `qwen` |
23
- | `copilot` | GitHub Copilot | acp | `copilot` or `gh` |
24
- | `kiro` | Kiro | acp | `kiro-cli` |
25
- | `reasonix` | Reasonix | acp | `reasonix` |
26
- | `cursor` | Cursor Agent | cursor | `agent` |
27
- | `codewhale` | CodeWhale | codewhale | `codewhale` |
28
- | `opencode` | OpenCode | opencode | `opencode` |
29
- | `pi` | Pi | pi | `pi` |
30
- | `openhuman` | OpenHuman | openhuman | `openhuman-core` |
31
- | `agy` | Agy (Antigravity) | agy | `agy` |
32
- | `hermes` | [Hermes](https://github.com/askie/grix-hermes-python) | external | `hermes` |
33
-
34
- The ACP adapter (Agent Client Protocol over JSON-RPC) backs Gemini, Qwen, Copilot, Kiro and Reasonix. Hermes is an external agent maintained in a separate project — see [grix-hermes-python](https://github.com/askie/grix-hermes-python) for setup.
35
-
36
- You need to have the corresponding CLI tool installed locally before connecting an agent.
37
-
38
- ## Install
39
-
40
- ```bash
41
- npm install -g grix-connector
42
- ```
43
-
44
- Requires Node.js >= 18.
45
-
46
- On Windows, `grix-connector` uses the built-in Task Scheduler with a hidden WScript launcher (no extra dependency required).
47
-
48
- ## Quick Start
49
-
50
- ### 1. Register a Grix account
51
-
52
- Go to [grix.im](https://grix.im), sign up and get your API key.
53
-
54
- ### 2. Create agent config
55
-
56
- Create `~/.grix/config/agents.json`. Choose the `ws_url` for your region — the two regions use different WebSocket domains:
57
-
58
- - China mainland: `wss://grix.dhf.pub/v1/agent-api/ws`
59
- - Global: `wss://ws.grix.im/v1/agent-api/ws`
60
-
61
- China mainland example:
62
-
63
- ```json
64
- {
65
- "agents": [
66
- {
67
- "name": "my-agent",
68
- "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
69
- "agent_id": "your-agent-id",
70
- "api_key": "your-grix-api-key",
71
- "client_type": "claude"
72
- }
73
- ]
74
- }
75
- ```
76
-
77
- Global example:
78
-
79
- ```json
80
- {
81
- "agents": [
82
- {
83
- "name": "my-agent",
84
- "ws_url": "wss://ws.grix.im/v1/agent-api/ws",
85
- "agent_id": "your-agent-id",
86
- "api_key": "your-grix-api-key",
87
- "client_type": "claude"
88
- }
89
- ]
90
- }
91
- ```
92
-
93
- Change `client_type` to match the agent you want to connect (see table above). You can define multiple agents in one file, or use separate files under `~/.grix/config/`.
94
-
95
- ### Config Reference
96
-
97
- Each agent entry uses one flat structure:
98
-
99
- | Field | Required | Description |
100
- |---|---|---|
101
- | `name` | yes | Display name for this agent |
102
- | `ws_url` | yes | WebSocket endpoint URL (region-specific). China mainland: `wss://grix.dhf.pub/v1/agent-api/ws`; Global: `wss://ws.grix.im/v1/agent-api/ws` |
103
- | `agent_id` | yes | Agent ID from Grix platform |
104
- | `api_key` | yes | API key for authentication |
105
- | `client_type` | yes | See Supported Agents table above |
106
- | `prompt_timeout_ms` | no | Prompt execution timeout (ms) |
107
- | `pool.maxSize` | no | Max adapter pool size (default 20) |
108
- | `pool.idleTimeoutMs` | no | Idle adapter eviction timeout (default 300000 = 5 min) |
109
-
110
- Adapter command/args/options are built in and resolved from `client_type`. To connect a different agent, simply change `client_type` — no other config changes needed.
111
-
112
- ### Multi-agent Example
113
-
114
- China mainland region (swap the `ws_url` domain to `ws.grix.im` for the global region):
115
-
116
- ```json
117
- {
118
- "agents": [
119
- {
120
- "name": "my-claude",
121
- "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
122
- "agent_id": "your-agent-id",
123
- "api_key": "your-grix-api-key",
124
- "client_type": "claude"
125
- },
126
- {
127
- "name": "my-gemini",
128
- "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
129
- "agent_id": "another-agent-id",
130
- "api_key": "your-grix-api-key",
131
- "client_type": "gemini"
132
- }
133
- ]
134
- }
135
- ```
136
-
137
- ### 3. Start the daemon
138
-
139
- ```bash
140
- grix-connector start
141
- ```
142
-
143
- The daemon connects to Grix via WebSocket and starts routing chat messages to your agents.
144
-
145
- ### Commands
146
-
147
- ```bash
148
- grix-connector start # Start as system service (auto-installs on first run)
149
- grix-connector stop # Stop the service
150
- grix-connector restart # Restart the service
151
- grix-connector reload # Hot-reload agent configs without restarting the daemon
152
- grix-connector status # Check service status
153
- ```
154
-
155
- ### Reloading config (`reload`)
156
-
157
- `reload` applies changes to your config files **without restarting the daemon**. It re-reads `~/.grix/config/*.json`, diffs against what's currently running, and acts per agent:
158
-
159
- | Change in config | What happens |
160
- |---|---|
161
- | Agent added | Started and connected |
162
- | Agent removed | Stopped and disconnected |
163
- | Agent config changed | That agent restarts (stop old, start new) |
164
- | Agent unchanged | **Left running untouched** — its sessions are not interrupted |
165
-
166
- **When to use it.** You run a multi-agent setup and want to add, remove, or re-key one agent — or tweak one agent's settings — without dropping the live sessions of the *other* agents. A full `restart` would reconnect every agent and interrupt all in-flight conversations; `reload` only touches the agents whose config actually changed.
167
-
168
- **Safety.** If any config file fails to parse (e.g. you're mid-edit and the JSON is broken), or no valid agent config is found, the reload aborts and the running agents are left exactly as they are — nothing is torn down on a bad config.
169
-
170
- Three equivalent ways to trigger it:
171
-
172
- ```bash
173
- grix-connector reload # CLI (sends SIGHUP to the daemon)
174
- kill -HUP "$(cat ~/.grix/grix-acp.pid)" # raw signal (Unix)
175
- curl -XPOST http://127.0.0.1:19580/api/reload # Admin API — returns the per-agent result as JSON
176
- ```
177
-
178
- The CLI/signal form is fire-and-forget; the per-agent result is written to the daemon log. The Admin API form returns the result (added/removed/restarted/unchanged/failed) synchronously.
179
-
180
- ### Ports
181
-
182
- The daemon binds two local loopback ports (127.0.0.1 only):
183
-
184
- | Purpose | Default | Override (env) | Override (CLI) |
185
- |---|---|---|---|
186
- | Health check (`/healthz`) | `19579` | `GRIX_HEALTH_PORT` | `--health-port <port>` |
187
- | Admin API (used by the local CLI) | `19580` | `GRIX_ADMIN_PORT` | `--admin-port <port>` |
188
-
189
- If a port is already in use, the daemon refuses to start and writes a clear message to `~/.grix/service/daemon.err.log` and the main log, and marks `~/.grix/daemon-status.json` as `state: "failed"` with a `reason` like `port_bind_in_use:health:19579`.
190
-
191
- To pick different ports:
192
-
193
- ```bash
194
- # via environment
195
- GRIX_HEALTH_PORT=29579 GRIX_ADMIN_PORT=29580 grix-connector restart
196
-
197
- # or via CLI flags (when running the daemon directly)
198
- grix-connector --health-port 29579 --admin-port 29580
199
- ```
200
-
201
- To find what is occupying a port:
202
-
203
- ```bash
204
- # macOS / Linux
205
- lsof -nP -iTCP:19579 -sTCP:LISTEN
206
-
207
- # Windows (PowerShell or cmd)
208
- netstat -ano | findstr :19579
209
- ```
210
-
211
- ## OpenClaw Plugin
212
-
213
- grix-connector can also be installed as an [OpenClaw](https://openclaw.io) plugin, providing a Grix channel transport with admin tools and operator CLI.
214
-
215
- ### Install
216
-
217
- ```bash
218
- openclaw plugin install grix-connector
219
- ```
220
-
221
- Or manually add to your OpenClaw project:
222
-
223
- ```bash
224
- npm install grix-connector
225
- ```
226
-
227
- ### Plugin Features
228
-
229
- - **Channel**: Grix chat transport — routes messages between OpenClaw and your Grix deployment
230
- - **Tools**: `grix_query`, `grix_group`, `grix_admin`, `grix_egg`, `grix_register`, `grix_update`, `grix_message_send`, `grix_message_unsend`, `openclaw_memory_setup`
231
- - **CLI**: `openclaw grix` — agent management and admin commands
232
- - **Skills**: 9 bundled skills for admin, group, query, registration, update, messaging, memory setup, and egg orchestration
233
-
234
- ### Requirements
235
-
236
- - OpenClaw >= 2026.4.8
237
- - A Grix account with agent ID and API key
238
-
239
- ## License
240
-
241
- MIT
1
+ # grix-connector
2
+
3
+ A command-line daemon that connects your local AI coding agents to the [Grix](https://grix.im) platform.
4
+
5
+ ## What is Grix?
6
+
7
+ Grix is an AI Agent scheduling platform. It lets you manage and interact with multiple AI coding agents through a unified chat interface. Register at [grix.im](https://grix.im) to get started.
8
+
9
+ ## Get the Client
10
+
11
+ After installing grix-connector, download the Grix client from [grix.im](https://grix.im) to chat with your agents. Clients are available for iOS, Android, macOS, Windows, and Linux.
12
+
13
+ ## Supported Agents
14
+
15
+ Set `client_type` in your config to one of the values below. Each `client_type` maps to a built-in adapter and CLI command — you only need the corresponding CLI installed locally.
16
+
17
+ | `client_type` | Agent | Adapter | Required CLI |
18
+ |---|---|---|---|
19
+ | `claude` | Claude Code (Anthropic) | claude | `claude` |
20
+ | `codex` | Codex (OpenAI) | codex | `codex` |
21
+ | `gemini` | Gemini (Google) | acp | `gemini` |
22
+ | `qwen` | Qwen (Alibaba) | acp | `qwen` |
23
+ | `copilot` | GitHub Copilot | acp | `copilot` or `gh` |
24
+ | `kiro` | Kiro | acp | `kiro-cli` |
25
+ | `reasonix` | Reasonix | acp | `reasonix` |
26
+ | `cursor` | Cursor Agent | cursor | `agent` |
27
+ | `codewhale` | CodeWhale | codewhale | `codewhale` |
28
+ | `opencode` | OpenCode | opencode | `opencode` |
29
+ | `pi` | Pi | pi | `pi` |
30
+ | `openhuman` | OpenHuman | openhuman | `openhuman-core` |
31
+ | `agy` | Agy (Antigravity) | agy | `agy` |
32
+ | `hermes` | [Hermes](https://github.com/askie/grix-hermes-python) | external | `hermes` |
33
+
34
+ The ACP adapter (Agent Client Protocol over JSON-RPC) backs Gemini, Qwen, Copilot, Kiro and Reasonix. Hermes is an external agent maintained in a separate project — see [grix-hermes-python](https://github.com/askie/grix-hermes-python) for setup.
35
+
36
+ You need to have the corresponding CLI tool installed locally before connecting an agent.
37
+
38
+ ## Install
39
+
40
+ ```bash
41
+ npm install -g grix-connector
42
+ ```
43
+
44
+ Requires Node.js >= 18.
45
+
46
+ On Windows, `grix-connector` uses the built-in Task Scheduler with a hidden WScript launcher (no extra dependency required).
47
+
48
+ ## Quick Start
49
+
50
+ ### 1. Register a Grix account
51
+
52
+ Go to [grix.im](https://grix.im), sign up and get your API key.
53
+
54
+ ### 2. Create agent config
55
+
56
+ Create `~/.grix/config/agents.json`. Choose the `ws_url` for your region — the two regions use different WebSocket domains:
57
+
58
+ - China mainland: `wss://grix.dhf.pub/v1/agent-api/ws`
59
+ - Global: `wss://ws.grix.im/v1/agent-api/ws`
60
+
61
+ China mainland example:
62
+
63
+ ```json
64
+ {
65
+ "agents": [
66
+ {
67
+ "name": "my-agent",
68
+ "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
69
+ "agent_id": "your-agent-id",
70
+ "api_key": "your-grix-api-key",
71
+ "client_type": "claude"
72
+ }
73
+ ]
74
+ }
75
+ ```
76
+
77
+ Global example:
78
+
79
+ ```json
80
+ {
81
+ "agents": [
82
+ {
83
+ "name": "my-agent",
84
+ "ws_url": "wss://ws.grix.im/v1/agent-api/ws",
85
+ "agent_id": "your-agent-id",
86
+ "api_key": "your-grix-api-key",
87
+ "client_type": "claude"
88
+ }
89
+ ]
90
+ }
91
+ ```
92
+
93
+ Change `client_type` to match the agent you want to connect (see table above). You can define multiple agents in one file, or use separate files under `~/.grix/config/`.
94
+
95
+ ### Config Reference
96
+
97
+ Each agent entry uses one flat structure:
98
+
99
+ | Field | Required | Description |
100
+ |---|---|---|
101
+ | `name` | yes | Display name for this agent |
102
+ | `ws_url` | yes | WebSocket endpoint URL (region-specific). China mainland: `wss://grix.dhf.pub/v1/agent-api/ws`; Global: `wss://ws.grix.im/v1/agent-api/ws` |
103
+ | `agent_id` | yes | Agent ID from Grix platform |
104
+ | `api_key` | yes | API key for authentication |
105
+ | `client_type` | yes | See Supported Agents table above |
106
+ | `prompt_timeout_ms` | no | Prompt execution timeout (ms) |
107
+ | `pool.maxSize` | no | Max adapter pool size (default 20) |
108
+ | `pool.idleTimeoutMs` | no | Idle adapter eviction timeout (default 300000 = 5 min) |
109
+
110
+ Adapter command/args/options are built in and resolved from `client_type`. To connect a different agent, simply change `client_type` — no other config changes needed.
111
+
112
+ ### Multi-agent Example
113
+
114
+ China mainland region (swap the `ws_url` domain to `ws.grix.im` for the global region):
115
+
116
+ ```json
117
+ {
118
+ "agents": [
119
+ {
120
+ "name": "my-claude",
121
+ "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
122
+ "agent_id": "your-agent-id",
123
+ "api_key": "your-grix-api-key",
124
+ "client_type": "claude"
125
+ },
126
+ {
127
+ "name": "my-gemini",
128
+ "ws_url": "wss://grix.dhf.pub/v1/agent-api/ws",
129
+ "agent_id": "another-agent-id",
130
+ "api_key": "your-grix-api-key",
131
+ "client_type": "gemini"
132
+ }
133
+ ]
134
+ }
135
+ ```
136
+
137
+ ### 3. Start the daemon
138
+
139
+ ```bash
140
+ grix-connector start
141
+ ```
142
+
143
+ The daemon connects to Grix via WebSocket and starts routing chat messages to your agents.
144
+
145
+ ### Commands
146
+
147
+ ```bash
148
+ grix-connector start # Start as system service (auto-installs on first run)
149
+ grix-connector stop # Stop the service
150
+ grix-connector restart # Restart the service
151
+ grix-connector reload # Hot-reload agent configs without restarting the daemon
152
+ grix-connector status # Check service status
153
+ ```
154
+
155
+ ### Reloading config (`reload`)
156
+
157
+ `reload` applies changes to your config files **without restarting the daemon**. It re-reads `~/.grix/config/*.json`, diffs against what's currently running, and acts per agent:
158
+
159
+ | Change in config | What happens |
160
+ |---|---|
161
+ | Agent added | Started and connected |
162
+ | Agent removed | Stopped and disconnected |
163
+ | Agent config changed | That agent restarts (stop old, start new) |
164
+ | Agent unchanged | **Left running untouched** — its sessions are not interrupted |
165
+
166
+ **When to use it.** You run a multi-agent setup and want to add, remove, or re-key one agent — or tweak one agent's settings — without dropping the live sessions of the *other* agents. A full `restart` would reconnect every agent and interrupt all in-flight conversations; `reload` only touches the agents whose config actually changed.
167
+
168
+ **Safety.** If any config file fails to parse (e.g. you're mid-edit and the JSON is broken), or no valid agent config is found, the reload aborts and the running agents are left exactly as they are — nothing is torn down on a bad config.
169
+
170
+ Three equivalent ways to trigger it:
171
+
172
+ ```bash
173
+ grix-connector reload # CLI (sends SIGHUP to the daemon)
174
+ kill -HUP "$(cat ~/.grix/grix-acp.pid)" # raw signal (Unix)
175
+ curl -XPOST http://127.0.0.1:19580/api/reload # Admin API — returns the per-agent result as JSON
176
+ ```
177
+
178
+ The CLI/signal form is fire-and-forget; the per-agent result is written to the daemon log. The Admin API form returns the result (added/removed/restarted/unchanged/failed) synchronously.
179
+
180
+ ### Ports
181
+
182
+ The daemon binds two local loopback ports (127.0.0.1 only):
183
+
184
+ | Purpose | Default | Override (env) | Override (CLI) |
185
+ |---|---|---|---|
186
+ | Health check (`/healthz`) | `19579` | `GRIX_HEALTH_PORT` | `--health-port <port>` |
187
+ | Admin API (used by the local CLI) | `19580` | `GRIX_ADMIN_PORT` | `--admin-port <port>` |
188
+
189
+ If a port is already in use, the daemon refuses to start and writes a clear message to `~/.grix/service/daemon.err.log` and the main log, and marks `~/.grix/daemon-status.json` as `state: "failed"` with a `reason` like `port_bind_in_use:health:19579`.
190
+
191
+ To pick different ports:
192
+
193
+ ```bash
194
+ # via environment
195
+ GRIX_HEALTH_PORT=29579 GRIX_ADMIN_PORT=29580 grix-connector restart
196
+
197
+ # or via CLI flags (when running the daemon directly)
198
+ grix-connector --health-port 29579 --admin-port 29580
199
+ ```
200
+
201
+ To find what is occupying a port:
202
+
203
+ ```bash
204
+ # macOS / Linux
205
+ lsof -nP -iTCP:19579 -sTCP:LISTEN
206
+
207
+ # Windows (PowerShell or cmd)
208
+ netstat -ano | findstr :19579
209
+ ```
210
+
211
+ ## OpenClaw Plugin
212
+
213
+ grix-connector can also be installed as an [OpenClaw](https://openclaw.io) plugin, providing a Grix channel transport with admin tools and operator CLI.
214
+
215
+ ### Install
216
+
217
+ ```bash
218
+ openclaw plugin install grix-connector
219
+ ```
220
+
221
+ Or manually add to your OpenClaw project:
222
+
223
+ ```bash
224
+ npm install grix-connector
225
+ ```
226
+
227
+ ### Plugin Features
228
+
229
+ - **Channel**: Grix chat transport — routes messages between OpenClaw and your Grix deployment
230
+ - **Tools**: `grix_query`, `grix_group`, `grix_admin`, `grix_egg`, `grix_register`, `grix_update`, `grix_message_send`, `grix_message_unsend`, `openclaw_memory_setup`
231
+ - **CLI**: `openclaw grix` — agent management and admin commands
232
+ - **Skills**: 9 bundled skills for admin, group, query, registration, update, messaging, memory setup, and egg orchestration
233
+
234
+ ### Requirements
235
+
236
+ - OpenClaw >= 2026.4.8
237
+ - A Grix account with agent ID and API key
238
+
239
+ ## License
240
+
241
+ MIT