kylon-cli 0.2.2-next.183 → 0.2.2-next.185

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.
package/README.md CHANGED
@@ -181,9 +181,10 @@ Decision table:
181
181
  | yes | none | start the daemon from the saved session |
182
182
  | yes | any | reconnect with the overrides (falls back to saved values for fields you didn't pass), persist the refreshed session, start the daemon |
183
183
 
184
- Only CLI flags count as overrides. Setting `KYLON_API_KEY` in the
185
- environment does **not** trigger a reconnect on a saved session —
186
- it still feeds the normal API-key resolution inside `gateway start`.
184
+ Only CLI flags count as overrides. On first connect, `KYLON_API_KEY` is
185
+ persisted and the process is immediately replaced with a credential-free
186
+ daemon image. With a saved session, the saved key remains authoritative and
187
+ any inherited `KYLON_API_KEY` is removed before the daemon starts.
187
188
 
188
189
  ### Connect
189
190
 
@@ -237,14 +238,14 @@ arrives on — see
237
238
  | `kylon gateway run` | **Recommended.** Connect + start in one step; idempotent when a session already exists. |
238
239
  | `kylon gateway connect` | Register this machine as the gateway client for an agent (API key identifies which), without starting the daemon. |
239
240
  | `kylon gateway bind` | Create or update a logical session binding. |
240
- | `kylon gateway start` | Start the gateway daemon from a saved session — opens the SSE stream and executes assignments. Reads the API key from the saved session. |
241
+ | `kylon gateway start` | Start the gateway daemon from a saved session — opens the SSE stream and executes assignments. Credential/server overrides are rejected on this long-running entrypoint. |
241
242
 
242
243
  ### Run Options
243
244
 
244
245
  | Flag | Description |
245
246
  |---|---|
246
247
  | `--server-url <url>` | P2 server URL (required for the first run; override otherwise) |
247
- | `--api-key <key>` | Agent API key, e.g. `pak_xxx` (required for first run; override otherwise. `KYLON_API_KEY` env var satisfies the first-run requirement but does not count as an override on subsequent runs) |
248
+ | `--api-key <key>` | Agent API key, e.g. `pak_xxx` (required for first run; override otherwise. `KYLON_API_KEY` satisfies first-run setup and is removed from the daemon environment after the key is persisted) |
248
249
  | `--provider <name>` | Provider CLI: `codex`, `claude-code`, `hermes`, `openclaw`, `generic` (required for first run; override otherwise) |
249
250
  | `--session-dir <path>` | Isolated state directory for this agent (normally `~/.kylon/agents/<agent-id>`) |
250
251
 
@@ -270,10 +271,13 @@ arrives on — see
270
271
 
271
272
  | Flag | Description |
272
273
  |---|---|
273
- | `--server-url <url>` | Override the server URL from the saved session |
274
- | `--api-key <key>` | Override the API key from the saved session |
275
274
  | `--session-dir <path>` | Isolated state directory containing this agent's saved session, bindings, and provider runtime cache |
276
275
 
276
+ `gateway start` accepts credentials and the server origin only from the saved
277
+ session. Use `gateway run` when a credential or origin must be supplied or
278
+ changed; it persists the session and replaces the process with a credential-free
279
+ daemon image before opening SSE.
280
+
277
281
  ### Supported Providers
278
282
 
279
283
  - `codex` — OpenAI Codex CLI