Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ccswitch
command
Command ccswitch manages multiple Claude Code OAuth credential sets across machines via macOS Keychain, files, 1Password (Connect HTTP + optional Cloudflare Access), or HashiCorp Vault.
|
Command ccswitch manages multiple Claude Code OAuth credential sets across machines via macOS Keychain, files, 1Password (Connect HTTP + optional Cloudflare Access), or HashiCorp Vault. |
|
internal
|
|
|
account
Package account manages account identity (8-char SHA-256 prefix from email), the sequence.json on-disk metadata file, and per-account keying conventions used across backends.
|
Package account manages account identity (8-char SHA-256 prefix from email), the sequence.json on-disk metadata file, and per-account keying conventions used across backends. |
|
backend
Package backend defines the storage interface every credential backend (file, keychain, 1Password Connect, Vault) implements.
|
Package backend defines the storage interface every credential backend (file, keychain, 1Password Connect, Vault) implements. |
|
backend/file
Package file implements a local-filesystem credential backend.
|
Package file implements a local-filesystem credential backend. |
|
backend/inmem
Package inmem provides an in-memory Backend implementation for testing.
|
Package inmem provides an in-memory Backend implementation for testing. |
|
backend/keychain
Package keychain provides a stub on non-Darwin platforms so that the package compiles everywhere.
|
Package keychain provides a stub on non-Darwin platforms so that the package compiles everywhere. |
|
backend/onepassword
Package onepassword implements a 1Password Connect credential backend.
|
Package onepassword implements a 1Password Connect credential backend. |
|
backend/vault
Package vault implements a HashiCorp Vault / OpenBao KV v2 credential backend.
|
Package vault implements a HashiCorp Vault / OpenBao KV v2 credential backend. |
|
browser
Package browser provides Chrome profile detection so ccswitch can launch OAuth login URLs in the Chrome profile already signed in to the target Anthropic account, eliminating manual "switch browser profile first" during multi-account login flows.
|
Package browser provides Chrome profile detection so ccswitch can launch OAuth login URLs in the Chrome profile already signed in to the target Anthropic account, eliminating manual "switch browser profile first" during multi-account login flows. |
|
cli
Package cli wires the cobra command tree.
|
Package cli wires the cobra command tree. |
|
config
Package config loads ccswitch configuration from ~/.config/ccswitch/config.toml plus environment overrides.
|
Package config loads ccswitch configuration from ~/.config/ccswitch/config.toml plus environment overrides. |
|
credentials
Package credentials defines the on-disk shape of a Claude Code OAuth credential blob and helpers for inspecting it.
|
Package credentials defines the on-disk shape of a Claude Code OAuth credential blob and helpers for inspecting it. |
|
refresh
Package refresh implements non-interactive OAuth token refresh via the `claude auth login` command.
|
Package refresh implements non-interactive OAuth token refresh via the `claude auth login` command. |
|
sync
Package sync implements bi-directional credential synchronisation between a local Backend (file/keychain) and a remote Backend (1Password/Vault).
|
Package sync implements bi-directional credential synchronisation between a local Backend (file/keychain) and a remote Backend (1Password/Vault). |
Click to show internal directories.
Click to hide internal directories.