claude-account-sync 0.5.1 → 0.5.2

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 +22 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -107,6 +107,27 @@ anything Claude Code supports works — the form just gives the common keys frie
107
107
  labels and a preset for the base URL. It travels with sync and bundles like everything
108
108
  else, token included (via the encrypted secrets channel).
109
109
 
110
+ ### Where secrets are stored (per-OS setup)
111
+
112
+ `clp` keeps API tokens out of your rc/config files by putting them in the OS credential store, picked automatically:
113
+
114
+ | OS | Backend | Setup |
115
+ |---|---|---|
116
+ | macOS | Keychain | automatic |
117
+ | Windows | DPAPI (via PowerShell) | automatic |
118
+ | **Linux desktop** | `secret-tool` (libsecret) | `sudo apt install libsecret-tools` (or `dnf install libsecret`) — needs a running keyring daemon (GNOME Keyring / KWallet) |
119
+ | **Linux headless / server** | AES‑256‑GCM encrypted file | set a passphrase (below) — servers have no keyring daemon, so libsecret isn't an option |
120
+
121
+ **Headless Linux / server (no desktop keyring):** the encrypted-file backend needs a passphrase in the environment. `clp` (and `clp ui`) read it at launch:
122
+
123
+ ```bash
124
+ # add to ~/.bashrc so it persists, then: source ~/.bashrc
125
+ export CCPROFILES_PASSPHRASE='a-long-passphrase-you-will-remember'
126
+ clp ui
127
+ ```
128
+
129
+ Secrets then encrypt to `~/.ccprofiles/secrets.enc`. **The passphrase is the decryption key** — keep it safe and unchanged, or the stored secrets become unreadable. (Prefer a systemd `EnvironmentFile` or your secrets manager over `.bashrc` if the box is shared.) Without a keyring *and* without this passphrase, the Secrets tab and `clp secrets …` will report the backend is unavailable.
130
+
110
131
  ### Replicate to a second machine
111
132
 
112
133
  ```bash
@@ -178,7 +199,7 @@ All mutating commands support `--dry-run`. Every mutation backs up the files it
178
199
  | `error: no manifest yet` | Run `clp adopt --yes` first — it builds the manifest from your existing profiles |
179
200
  | `zsh: command not found: clp` | Not linked/installed — see Install; if just linked, run `rehash` |
180
201
  | ``cannot reach <host> — is `ccprofiles serve` running?`` | Start `clp serve` on the other device; check you're on the same network and the port matches |
181
- | `encrypted-file backend requires a passphrase` | On Windows, secrets use DPAPI automatically (needs PowerShell); otherwise set `CCPROFILES_PASSPHRASE` (headless Linux without libsecret) |
202
+ | `encrypted-file backend requires a passphrase` / secrets tab errors | No OS keyring available. **Linux desktop:** `sudo apt install libsecret-tools` + a running keyring. **Headless Linux / server:** `export CCPROFILES_PASSPHRASE='…'` before `clp ui` (persist in `~/.bashrc`). **Windows:** secrets use DPAPI automatically (needs PowerShell). See [Where secrets are stored](#where-secrets-are-stored-per-os-setup) |
182
203
  | `cl-*` launcher not found on Windows | Use PowerShell 7 (`pwsh`), not Windows PowerShell 5.1; reload with `. $PROFILE`; if scripts are blocked run `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned`. Confirm `$PROFILE` matches `Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (OneDrive can redirect it) |
183
204
  | Profile shows account `-` after sync | Expected — run `/login` inside that profile once; OAuth sessions don't sync |
184
205
  | Something went wrong after `apply` | Restore from `~/.ccprofiles/backups/<latest>/` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-account-sync",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Manage multiple Claude Code accounts/profiles — MCP drift sync, keychain secrets, and encrypted LAN replication between machines. CLI: ccprofiles (alias clp).",
5
5
  "type": "module",
6
6
  "bin": {