The authsome daemon binds toDocumentation Index
Fetch the complete documentation index at: https://authsome.agentr.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
127.0.0.1:7998 by default. Most issues are one of three shapes: port held by another process, daemon unreachable from the CLI, or in-memory state lost across a restart.
Symptom matrix
| Symptom | Most likely cause |
|---|---|
Address already in use: 127.0.0.1:7998 | Another authsome process is running, or something else holds the port. |
Could not connect to daemon at http://127.0.0.1:7998 | The daemon didn’t start, the port is firewalled, or AUTHSOME_DAEMON_URL points somewhere wrong. |
| Browser opens to a blank form | Daemon started but the route is missing; usually a version mismatch between CLI and daemon. |
| Login was mid-flight, then the terminal disconnected | Daemon restarted; session is gone. |
Connection refused from uvx authsome run | The proxy can’t reach the daemon to resolve credentials. |
AUTHSOME_DAEMON_URL is set but unreachable | Hosted daemon URL is wrong, or the host is down. |
Port 7998 in use
authsome process, the CLI will reuse it. No fix needed.
If it’s something else, free the port or run a per-user daemon at a different home:
AUTHSOME_HOME starts a separate daemon on a separate ephemeral port and uses that. The two daemons do not interfere.
Daemon won’t start
Run with verbose logging:~/.authsome/is on a filesystem that doesn’t support SQLite file locks (rare; some network mounts).- The current user doesn’t have write permission to
AUTHSOME_HOME. master.keyhas the wrong mode and the daemon refuses to start inlocal_keymode.
uvx authsome doctor reports each of these specifically.
CLI can’t find the daemon
The CLI looks atAUTHSOME_DAEMON_URL first, then falls back to http://127.0.0.1:7998.
- The daemon process is running there.
AUTHSOME_SERVER_BASE_URLon the daemon matches the URL you’re calling.- Ingress is allowed from your client’s network (private VPC, VPN, or whatever the team uses).
Login was interrupted by a daemon restart
Active auth sessions live in the daemon’s memory. A restart loses them. The provider may or may not have accepted the authorization on its side. Re-run the login:--force flag overwrites whatever partial state landed in the vault.
If the provider has a partial OAuth grant on file (you authorized but the callback never landed), revoke at the provider and start over:
- Revoke the OAuth app at the provider’s UI.
uvx authsome revoke <provider>locally to clear any partial state.uvx authsome login <provider>to start fresh.
Daemon health check
The daemon exposes a health endpoint:Inspect what the daemon is doing
The daemon logs to the same loguru sink the CLI does. With verbose logging on:Restart cleanly
The daemon is stateless on disk except for what’s already in the vault. To restart it:When to file a bug
If the daemon fails to start afterpkill + a fresh uvx authsome whoami, and doctor reports OK, open an issue at github.com/agentrhq/authsome with:
- The output of
uvx authsome --verbose doctor. - The tail of
~/.authsome/logs/authsome.logcovering the failed start. - Your OS and Python version.
What’s next
The local daemon
What the daemon is and which routes it exposes.
Daemon trust boundary
What the loopback-only model protects against.
Diagnose with doctor
The first command to run when something looks wrong.
Environment variables
AUTHSOME_DAEMON_URL, AUTHSOME_SERVER_BASE_URL, AUTHSOME_HOME.