default. You can have as many additional connections as you want, each scoped by name.
This is the right pattern when you want two accounts on the same provider both reachable from the same context. If you want credential sets that never see each other, use multiple Vaults or Principals instead. The distinction is covered in Principal, Vault, and Identity.
Create a second connection
Pass--connection <name> to login. The name is arbitrary; pick what reads well.
login runs its own browser flow. The connections share the OAuth client_id/client_secret you configured for the provider, but each receives an independent access token bound to its own scopes.
For an API-key provider, each login opens a fresh local form so you paste a different key per connection.
Read from a specific connection
Every read command accepts--connection:
--connection, the command uses the default.
List connections
inspect includes per-connection status, expiry, and scopes.
Switch the default
There is noset-default command in v1. To change which connection authsome treats as default, log in to it with --force:
--force flag overwrites the existing default slot. Programmatic default switching is on the roadmap.
In the proxy
authsome run injects credentials from each provider’s default connection. Per-request connection selection is future work.
To run an agent against a non-default connection, set the active default first:
connection= directly:
Remove a connection
revoke does not yet target a single connection; it clears the provider entirely. To revoke only one connection at the provider, use the provider’s own UI and then logout locally.
When to use Connections vs Vaults/Principals
| You want | Use |
|---|---|
| Two accounts on the same provider, both reachable | Connections (--connection) |
| Credential sets that never see each other | Separate Vaults / Principals |
| Per-agent scoping | Separate Identity / Principal per agent |
What’s next
Principal, Vault, and Identity
The architectural namespaces.
CLI reference
Every command and flag.