internal/

directory
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT

Directories

Path Synopsis
Package anthropic is a small client for Claude's OAuth token, usage and profile endpoints.
Package anthropic is a small client for Claude's OAuth token, usage and profile endpoints.
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
Package atomicfile replaces files so that a crash leaves either the old or the new content.
Package atomicfile replaces files so that a crash leaves either the old or the new content.
Package cclock takes the same proper-lockfile mkdir locks Claude Code uses for its credential store, so a swap never races its token refresh or writes.
Package cclock takes the same proper-lockfile mkdir locks Claude Code uses for its credential store, so a swap never races its token refresh or writes.
Package claudecode knows how Claude Code names and stores its credentials.
Package claudecode knows how Claude Code names and stores its credentials.
Package cli is the ccswap command line: a thin client of the daemon API.
Package cli is the ccswap command line: a thin client of the daemon API.
Package config loads the user-edited config.toml.
Package config loads the user-edited config.toml.
Package daemon holds the ccswap daemon's API server, client and account importer.
Package daemon holds the ccswap daemon's API server, client and account importer.
Package hook edits Claude Code's settings.json to register ccswap's StopFailure hook.
Package hook edits Claude Code's settings.json to register ccswap's StopFailure hook.
Package i18n prints ccswap's texts in the user's language, from the translation files in locales/.
Package i18n prints ccswap's texts in the user's language, from the translation files in locales/.
Package keychain wraps the macOS keychain via /usr/bin/security.
Package keychain wraps the macOS keychain via /usr/bin/security.
Package launchd installs ccswap's per-user LaunchAgent.
Package launchd installs ccswap's per-user LaunchAgent.
Package migrate packs accounts into an encrypted bundle for moving them between machines.
Package migrate packs accounts into an encrypted bundle for moving them between machines.
Package notify shows desktop notifications (macOS).
Package notify shows desktop notifications (macOS).
Package policy decides when the daemon should switch accounts.
Package policy decides when the daemon should switch accounts.
Package store holds account metadata (state.json) and the keychain vault of inactive accounts' credentials.
Package store holds account metadata (state.json) and the keychain vault of inactive accounts' credentials.
Package switcher swaps which account Claude Code is logged in as.
Package switcher swaps which account Claude Code is logged in as.
Package systemd installs ccswap's user service for Linux hosts.
Package systemd installs ccswap's user service for Linux hosts.
Package t3 makes ccswap look like a CLIProxyAPI usage hub so T3 Code lists its accounts.
Package t3 makes ccswap look like a CLIProxyAPI usage hub so T3 Code lists its accounts.
Package tui is the interactive ccswap screen; it talks to the daemon only through Client.
Package tui is the interactive ccswap screen; it talks to the daemon only through Client.
Package update finds ccswap's newest release on GitHub and installs it over a ccswap binary.
Package update finds ccswap's newest release on GitHub and installs it over a ccswap binary.
Package web is the browser page of the daemon's HTTP listener.
Package web is the browser page of the daemon's HTTP listener.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL