@murongg/aah-cli 0.1.1 → 0.1.3

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 (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -52,6 +52,28 @@ aah list --json
52
52
  aah current --json
53
53
  ```
54
54
 
55
+ ## Relay Mode
56
+
57
+ If you need a local Codex-compatible endpoint, you can enable the built-in relay.
58
+
59
+ - The relay is off by default
60
+ - It currently serves Codex routes only
61
+ - It only binds to `127.0.0.1`
62
+ - The default base URL is `http://127.0.0.1:8765/codex`
63
+ - The desktop app and CLI share the same running relay instance
64
+
65
+ Manage the local relay:
66
+
67
+ ```bash
68
+ aah relay status
69
+ aah relay start --port 8765
70
+ aah relay stop
71
+ aah relay set-port 9876
72
+ ```
73
+
74
+ - `aah relay start [--port ...]` persists `enabled=true` and makes sure the relay is running
75
+ - `aah relay stop` persists `enabled=false` and stops the current relay instance
76
+
55
77
  Use a custom data directory:
56
78
 
57
79
  ```bash
@@ -59,3 +81,5 @@ aah --data-dir ~/.ai-accounts-hub list
59
81
  ```
60
82
 
61
83
  By default, the CLI stores and reads managed account data from `~/.ai-accounts-hub`. The desktop app uses the same directory, and startup migrates older desktop app data into this shared directory by default.
84
+
85
+ Relay settings are stored in `~/.ai-accounts-hub/settings.json`. The shared relay runtime registry lives at `~/.ai-accounts-hub/relay/runtime.json`. If you pass `--data-dir`, both paths move under that directory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@murongg/aah-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Standalone AI Accounts Hub CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",