@youdie006/swapdex 0.23.1 → 0.24.1
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 +14 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,8 +63,8 @@ curl -fsSL https://raw.githubusercontent.com/youdie006/swapdex/main/install.sh |
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
Linux, WSL, and macOS (Claude's macOS login lives in the Keychain; swapdex
|
|
66
|
-
swaps it there, via `/usr/bin/security`). Requires
|
|
67
|
-
|
|
66
|
+
swaps it there, via `/usr/bin/security`). Requires at least one supported CLI
|
|
67
|
+
(Claude Code, Codex, Gemini, Antigravity) already installed and logged in. Full command, exit-code, and environment
|
|
68
68
|
reference: [docs/COMMANDS.md](docs/COMMANDS.md).
|
|
69
69
|
|
|
70
70
|
## Use
|
|
@@ -190,6 +190,12 @@ atomically, backing up the current login first. For Claude, only the
|
|
|
190
190
|
`oauthAccount` block of `~/.claude.json` is swapped -- your projects, MCP
|
|
191
191
|
servers, and settings in that file are never touched.
|
|
192
192
|
|
|
193
|
+
On macOS the Claude token lives in the login Keychain, one item per
|
|
194
|
+
`CLAUDE_CONFIG_DIR` profile. swapdex manages **the profile of the environment
|
|
195
|
+
it runs in**, exactly like `claude` itself resolves it: plain `swapdex`
|
|
196
|
+
manages the default profile; profiles you run side by side via
|
|
197
|
+
`CLAUDE_CONFIG_DIR` aliases are never touched.
|
|
198
|
+
|
|
193
199
|
## Safety
|
|
194
200
|
|
|
195
201
|
- Every credential file swapdex writes is `0600`; the store directory is `0700`.
|
|
@@ -278,18 +284,17 @@ that project's README, July 2026):
|
|
|
278
284
|
cross-tool with a shell wrapper and automatic rotation on rate limits; the
|
|
279
285
|
philosophical opposite of swapdex.
|
|
280
286
|
|
|
281
|
-
Pick swapdex if you want the smallest thing that switches
|
|
282
|
-
|
|
287
|
+
Pick swapdex if you want the smallest thing that switches your AI CLIs
|
|
288
|
+
together, can always undo (`restore`), diagnoses itself (`doctor`), shows
|
|
283
289
|
your remaining balance (`quota`), and structurally cannot rotate, proxy, or
|
|
284
290
|
spoof the official client.
|
|
285
291
|
|
|
286
292
|
## Roadmap
|
|
287
293
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
contributions from macOS users welcome (Codex already works on macOS).
|
|
294
|
+
- ~~Claude Code on macOS (Keychain).~~ **Shipped** (0.17-0.24): swapdex swaps
|
|
295
|
+
Claude's login inside the macOS Keychain via `/usr/bin/security`, resolves
|
|
296
|
+
the item exactly the way `claude` itself does (one item per
|
|
297
|
+
`CLAUDE_CONFIG_DIR` profile), and `doctor` diagnoses any mismatch.
|
|
293
298
|
|
|
294
299
|
Being considered, explicitly opt-in and advisory-only:
|
|
295
300
|
|
package/package.json
CHANGED