@youdie006/swapdex 0.34.1 → 0.35.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.
Files changed (3) hide show
  1. package/README.md +9 -4
  2. package/man/swapdex.1 +115 -0
  3. package/package.json +9 -7
package/README.md CHANGED
@@ -63,19 +63,24 @@ those profiles onto their own slots.</sub>
63
63
  ## Install
64
64
 
65
65
  ```sh
66
- # crates.io (Rust)
67
- cargo install swapdex
66
+ # npm - you already have it, since Claude Code and Codex ship this way
67
+ npm install -g @youdie006/swapdex
68
68
 
69
69
  # Homebrew (macOS / Linux)
70
70
  brew install youdie006/tap/swapdex
71
71
 
72
- # npm (downloads the prebuilt binary)
73
- npm install -g @youdie006/swapdex
72
+ # crates.io (needs a Rust toolchain)
73
+ cargo install swapdex
74
74
 
75
75
  # or the one-liner (prebuilt binary -> ~/.local/bin)
76
76
  curl -fsSL https://raw.githubusercontent.com/youdie006/swapdex/main/install.sh | sh
77
77
  ```
78
78
 
79
+ Pick one and stay with it. Each installer wants the same name on `PATH`, and
80
+ with two of them the shims keep calling whichever copy wrote them - so updating
81
+ the other one changes nothing, silently. `swapdex doctor` reports this, along
82
+ with whether the version you are running is the one that is published.
83
+
79
84
  Linux, WSL, and macOS (Claude's macOS login lives in the Keychain; swapdex
80
85
  swaps it there, via `/usr/bin/security`). Requires at least one supported CLI
81
86
  (Claude Code, Codex, Gemini, Antigravity) already installed and logged in. Full command, exit-code, and environment
package/man/swapdex.1 ADDED
@@ -0,0 +1,115 @@
1
+ .ie \n(.g .ds Aq \(aq
2
+ .el .ds Aq '
3
+ .TH swapdex 1 "swapdex 0.35.1"
4
+ .SH NAME
5
+ swapdex \- Switch Claude Code / Codex / Gemini / Antigravity login accounts, locally and safely.
6
+ .SH SYNOPSIS
7
+ \fBswapdex\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIsubcommands\fR]
8
+ .SH DESCRIPTION
9
+ Switch Claude Code / Codex / Gemini / Antigravity login accounts, locally and safely.
10
+ .SH OPTIONS
11
+ .TP
12
+ \fB\-h\fR, \fB\-\-help\fR
13
+ Print help
14
+ .TP
15
+ \fB\-V\fR, \fB\-\-version\fR
16
+ Print version
17
+ .SH SUBCOMMANDS
18
+ .TP
19
+ swapdex\-add(1)
20
+ Save the current live login as a named profile
21
+ .TP
22
+ swapdex\-use(1)
23
+ Switch the active login to a saved profile
24
+ .TP
25
+ swapdex\-run(1)
26
+ Launch Claude in an account\*(Aqs own permanent slot (concurrent\-safe)
27
+ .TP
28
+ swapdex\-whereis(1)
29
+ Find which account holds a conversation (searches every account\*(Aqs store)
30
+ .TP
31
+ swapdex\-serve(1)
32
+ Hand turns to an account without moving where new sessions start
33
+ .TP
34
+ swapdex\-refresh(1)
35
+ Renew accounts whose access token has lapsed (they stay usable)
36
+ .TP
37
+ swapdex\-slots(1)
38
+ List the permanent account slots
39
+ .TP
40
+ swapdex\-shim(1)
41
+ Install the `claude` shim so a plain `claude` follows `swapdex use`
42
+ .TP
43
+ swapdex\-adopt(1)
44
+ Register an existing CLAUDE_CONFIG_DIR directory as a slot (in place)
45
+ .TP
46
+ swapdex\-migrate(1)
47
+ Give each legacy Claude profile its own permanent slot
48
+ .TP
49
+ swapdex\-onboard(1)
50
+ Guided setup: register/migrate your accounts into permanent slots
51
+ .TP
52
+ swapdex\-sync\-mcp(1)
53
+ Share MCP servers (from ~/.claude.json) into every account slot
54
+ .TP
55
+ swapdex\-ls(1)
56
+ List saved profiles (active marked from the live login)
57
+ .TP
58
+ swapdex\-status(1)
59
+ Show the active account per tool
60
+ .TP
61
+ swapdex\-rm(1)
62
+ Remove a saved profile (never touches a live login)
63
+ .TP
64
+ swapdex\-setup(1)
65
+ Guided first\-time setup: save your logins, add more, learn to switch
66
+ .TP
67
+ swapdex\-login(1)
68
+ Log in to a tool and save the result as a profile in one step
69
+ .TP
70
+ swapdex\-rename(1)
71
+ Rename a saved profile
72
+ .TP
73
+ swapdex\-restore(1)
74
+ Put back the login that was live before the last switch
75
+ .TP
76
+ swapdex\-sessions(1)
77
+ Sessions grouped by the account that was active when they ran
78
+ .TP
79
+ swapdex\-ui(1)
80
+ Full\-screen picker: switch, open a conversation, add accounts
81
+ .TP
82
+ swapdex\-proxy(1)
83
+ Run a local proxy so a RUNNING Claude session can change accounts
84
+ .TP
85
+ swapdex\-slash(1)
86
+ Install a `/sx` slash command for Claude Code (switch without leaving the chat)
87
+ .TP
88
+ swapdex\-threshold(1)
89
+ Step off an account at this much used (e.g. 0.9 or 90%), or `off`
90
+ .TP
91
+ swapdex\-auto(1)
92
+ Turn auto\-continue (proxy hands a spent session to another account) on/off
93
+ .TP
94
+ swapdex\-doctor(1)
95
+ Local health check: store, snapshots, live logins \- with a fix per finding
96
+ .TP
97
+ swapdex\-usage(1)
98
+ Recent local token usage per tool (5h/7d), read from session logs
99
+ .TP
100
+ swapdex\-quota(1)
101
+ Remaining Claude quota per account (opt\-in live read from Anthropic)
102
+ .TP
103
+ swapdex\-mcp(1)
104
+ Run as a read\-only MCP server over stdio
105
+ .TP
106
+ swapdex\-completions(1)
107
+ Print a shell completion script (bash, zsh, fish, ...)
108
+ .TP
109
+ swapdex\-manpage(1)
110
+ Print the man page (roff) to stdout
111
+ .TP
112
+ swapdex\-help(1)
113
+ Print this message or the help of the given subcommand(s)
114
+ .SH VERSION
115
+ v0.35.1
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@youdie006/swapdex",
3
- "version": "0.34.1",
3
+ "version": "0.35.1",
4
4
  "description": "Switch between multiple Claude Code, Codex, Gemini, and Antigravity login accounts, locally and safely.",
5
5
  "bin": {
6
6
  "swapdex": "bin/swapdex.js"
7
7
  },
8
8
  "files": [
9
9
  "README.md",
10
- "bin/swapdex.js"
10
+ "bin/swapdex.js",
11
+ "man/swapdex.1"
11
12
  ],
12
13
  "optionalDependencies": {
13
- "@youdie006/swapdex-darwin-arm64": "0.34.1",
14
- "@youdie006/swapdex-darwin-x64": "0.34.1",
15
- "@youdie006/swapdex-linux-x64": "0.34.1",
16
- "@youdie006/swapdex-linux-arm64": "0.34.1"
14
+ "@youdie006/swapdex-darwin-arm64": "0.35.1",
15
+ "@youdie006/swapdex-darwin-x64": "0.35.1",
16
+ "@youdie006/swapdex-linux-x64": "0.35.1",
17
+ "@youdie006/swapdex-linux-arm64": "0.35.1"
17
18
  },
18
19
  "keywords": [
19
20
  "cli",
@@ -40,5 +41,6 @@
40
41
  "cpu": [
41
42
  "x64",
42
43
  "arm64"
43
- ]
44
+ ],
45
+ "man": "man/swapdex.1"
44
46
  }