TheDocumentation Index
Fetch the complete documentation index at: https://theseventeen-2abbdf80.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
register command adds a binary to ~/.config/keychain-auth/config.json so the daemon recognizes it. When you register a binary, keychain-auth computes its SHA-256 hash from disk, writes the path and hash to the config file, and sets all permissions to their most restrictive defaults. The binary is now known to the daemon, but it cannot access any keychain service until you explicitly configure its permissions.
Usage
PATH:
What registration does
- Resolves the provided path to an absolute path.
- Computes the SHA-256 hash of the binary file at that path.
- Loads
~/.config/keychain-auth/config.json(creating it if it does not exist). - Appends a new entry — or updates the hash if the path is already present — with zero-trust defaults.
- Saves the updated config atomically.
config.json looks like this:
false. This is intentional — keychain-auth applies zero-trust by default, meaning a newly registered binary has no access to any keychain service until you grant it.
Configuring permissions after registration
After registering a binary, open~/.config/keychain-auth/config.json and add the service namespaces you want it to access:
| Field | Type | Description |
|---|---|---|
allowed_read_services | Array of strings | Service namespaces the binary is permitted to read from. |
allowed_write_services | Array of strings | Service namespaces the binary is permitted to write to or delete from. |
can_search | Boolean | Whether the binary may run search or prefix-based read/delete operations. |
The daemon re-reads
config.json on every new connection, so permission changes take effect immediately without restarting the daemon.For tool authors
If you are building a CLI tool that integrates with keychain-auth, runregister as part of your installer so users do not need to do it manually:
~/.config/keychain-auth/config.json. Your tool will be recognized by the daemon the first time it connects.