cchost 0.1.2 → 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.
- package/README.md +1 -1
- package/lib/cli.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cchost
|
|
2
2
|
|
|
3
|
-
Host multiple isolated Claude Code accounts on one machine via a single `cc` command.
|
|
3
|
+
Host multiple isolated Claude Code accounts on one machine via a single `cc` command. `cc` is a plain Node CLI on your PATH, so it runs the same from PowerShell, cmd, bash, zsh, or fish — there are no shell scripts or rc-file edits involved. Tested on Windows and Linux; macOS is expected to work but is not yet verified.
|
|
4
4
|
|
|
5
5
|
Each profile is a complete, isolated `CLAUDE_CONFIG_DIR` — credentials, session history, project state, plugins, and settings. Create one with `cc add <name>`; launch under it with `cc use <name>`.
|
|
6
6
|
|
package/lib/cli.js
CHANGED
|
@@ -22,6 +22,7 @@ Usage:
|
|
|
22
22
|
cc unlink <profile> Restore a profile's private projects/
|
|
23
23
|
cc remove <profile> Delete a profile and all its data (typed confirmation)
|
|
24
24
|
cc help [command] Show usage (optionally for a single command)
|
|
25
|
+
cc --version Print the installed cchost version
|
|
25
26
|
|
|
26
27
|
Profiles live in ~/.claude-profiles/<profile>/ and become CLAUDE_CONFIG_DIR
|
|
27
28
|
for that launch. Args after the profile name are forwarded verbatim to claude.
|
|
@@ -382,6 +383,11 @@ async function run(argv) {
|
|
|
382
383
|
printHelp();
|
|
383
384
|
return 0;
|
|
384
385
|
}
|
|
386
|
+
if (action === '--version' || action === '-v') {
|
|
387
|
+
const { version } = require('../package.json');
|
|
388
|
+
process.stdout.write(version + '\n');
|
|
389
|
+
return 0;
|
|
390
|
+
}
|
|
385
391
|
if (action === 'help') {
|
|
386
392
|
printHelp(rest[0]);
|
|
387
393
|
return 0;
|