Keystash
v0.4.2Keychain-backed secret broker: an AI agent can use your keys, but no tool ever returns one.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
secret_list
List stored secrets as metadata only: name, tags, rotation policy, last rotation, allowed URLs. Never returns a value.
| Parameter | Type | Description |
|---|---|---|
name | string | Return only this entry. |
tag | string | Return only entries carrying this tag. |
secret_store
Store a secret. The value is collected from the human through a native macOS dialog; it is never passed as an argument and never returned. Use this only when the human is present.
| Parameter | Type | Description |
|---|---|---|
name * | string | Reference name, SERVICE_ENV_PURPOSE, e.g. OPENAI_PROD_KEY. |
allowed_urls | array | URL prefixes this entry may be sent to, each ending with '/'. secret_use refuses every other destination. |
auth_header | string | Default 'Authorization'. |
auth_prefix | string | Default 'Bearer '. |
rotate_every_days | integer | |
tags | array |
secret_rotate
Replace an existing secret's value with a new one collected from the human through a native macOS dialog. Metadata is preserved unless overridden.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
allowed_urls | array | |
rotate_every_days | integer | |
tags | array |
secret_generate
Generate a high-entropy value, store it, and return only a short fingerprint. The value is never returned; the human retrieves it with `keystash copy NAME` (clipboard, auto-cleared).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
allowed_urls | array | |
length | integer | |
rotate_every_days | integer | |
tags | array |
secret_use
Send one HTTP request to an allow-listed URL with the entry's value as its credential. Returns the status and the scrubbed response body. The AI does not choose the credential and cannot read it.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
url * | string | Must be covered by the entry's allowed_urls. |
body | Request body: object, string, or omitted. | |
method | string | Default GET. |
timeout | number | Seconds, max 300. |
secret_delete
Delete a secret and its metadata. Requires a native confirmation dialog from the human; without it nothing is deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string |