Skip to main content

Documentation Index

Fetch the complete documentation index at: https://agentr-feature-env-backed-identity-loading.mintlify.app/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.
authsome doctor
A healthy machine prints OK for each check and exits with code 0.

Checks performed

CheckWhat it verifies
Home directory~/.authsome (or AUTHSOME_HOME) exists and is readable.
Master keymaster.key exists with mode 0600, or the OS keyring is reachable.
Profile storeprofiles/<active>/store.db opens and is writable.
Lock fileprofiles/<active>/lock is acquirable.
Provider parsingEvery JSON in bundled_providers/ and ~/.authsome/providers/ validates against the schema.
Audit logaudit.log is writable.

Common failures

[FAIL] Master key not found at ~/.authsome/server/master.key
Causes:
  • You haven’t initialized authsome on this machine. Run authsome init to provision the home directory, identity, and master key.
  • You moved or deleted ~/.authsome. If you have a backup, restore it. Without the master key, encrypted records cannot be decrypted.
[FAIL] ~/.authsome/server/master.key has mode 0644 (expected 0600)
Fix:
chmod 0600 ~/.authsome/server/master.key
[FAIL] Provider 'acmecrm' failed to parse: missing required field 'token_url'
A custom provider JSON in ~/.authsome/providers/ is malformed. Open the file, fix the indicated field, and re-run. See the Provider schema for required fields per auth type.
[FAIL] Encryption mode is 'keyring' but no keyring backend is available
Causes:
  • On Linux without a graphical session, the keyring library can’t reach a backend. Switch to local_key mode by editing ~/.authsome/config.json:
    { "encryption": { "mode": "local_key" } }
    
  • A required system package is missing. On Debian/Ubuntu: sudo apt install gnome-keyring.
[FAIL] Could not acquire lock on profiles/default/lock
Another authsome process is mid-write. Wait a few seconds and retry. If a stale lock persists (the previous process crashed):
rm ~/.authsome/profiles/default/lock
Only do this when you are certain no other authsome process is running.

Verbose logging

For deeper inspection of any command, enable verbose logging:
authsome --verbose login github
DEBUG logs go to stderr and to the rotating log file at ~/.authsome/logs/authsome.log. Inspect the log:
tail -f ~/.authsome/logs/authsome.log

Reset to a clean slate

If your install is irrecoverably broken and you don’t have any credentials to preserve:
rm -rf ~/.authsome
authsome whoami     # triggers re-initialization
This destroys every stored credential. You will need to log in to every provider again.

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.