Documentation Index
Fetch the complete documentation index at: https://authsome.mbajaj.me/llms.txt
Use this file to discover all available pages before exploring further.
authsome doctor is the first command to run when something looks wrong. It walks the home directory layout, verifies encryption is available, and parses every provider definition.
OK for each check and exits with code 0.
Checks performed
| Check | What it verifies |
|---|---|
| Home directory | ~/.authsome (or AUTHSOME_HOME) exists and is readable. |
| Master key | master.key exists with mode 0600, or the OS keyring is reachable. |
| Profile store | profiles/<active>/store.db opens and is writable. |
| Lock file | profiles/<active>/lock is acquirable. |
| Provider parsing | Every JSON in bundled_providers/ and ~/.authsome/providers/ validates against the schema. |
| Audit log | audit.log is writable. |
Common failures
master.key not found
- You haven’t run authsome on this machine before. The first CLI invocation auto-initializes the home directory. Re-run any command (for example,
authsome whoami) to trigger initialization. - You moved or deleted
~/.authsome. If you have a backup, restore it. Without the master key, encrypted records cannot be decrypted.
master.key has insecure permissions
provider <name> failed to parse
~/.authsome/providers/ is malformed. Open the file, fix the indicated field, and re-run. See the Provider schema for required fields per auth type.
keyring not available
-
On Linux without a graphical session, the
keyringlibrary can’t reach a backend. Switch tolocal_keymode by editing~/.authsome/config.json: -
A required system package is missing. On Debian/Ubuntu:
sudo apt install gnome-keyring.
profile store locked
Inspect specific state
For more detail thandoctor shows, use these:
Verbose logging
For deeper inspection of any command, enable verbose logging:~/.authsome/logs/authsome.log. Inspect the log:
Reset to a clean slate
If your install is irrecoverably broken and you don’t have any credentials to preserve:What’s next
OAuth callbacks
Diagnose
redirect_uri_mismatch, port-in-use, and timeout errors.Token refresh
Why a token failed to refresh and what to do.