Cross-platform secret storage CLI for AI agents
Project description
secretctl
Cross-platform secret storage CLI for AI agents and developers. Store secrets in the OS keychain without cloud sync or biometrics.
Installation
pip install secretctl
On Linux, install with keyring support:
pip install secretctl[linux]
Quick Start
# Store a secret
secretctl set API_KEY sk-xxx123
# Retrieve a secret
secretctl get API_KEY
# List all secrets
secretctl list
# Delete a secret
secretctl delete API_KEY
Commands
Basic Operations
secretctl set <name> <value> # Store a secret
secretctl get <name> # Retrieve a secret
secretctl delete <name> # Delete a secret
secretctl list # List all secret names
secretctl exists <name> # Check if secret exists
Import/Export
# Export to env file
secretctl export > secrets.env
secretctl export --format json > secrets.json
# Import from file
secretctl import secrets.env
secretctl import secrets.json --format json
secretctl import secrets.env --overwrite # Replace existing
Namespaces
Use different accounts/namespaces to organize secrets:
secretctl --account myapp set DB_URL "postgres://..."
secretctl --account myapp list
JSON Output
All commands support --json for machine-readable output:
secretctl --json get API_KEY
{
"name": "API_KEY",
"value": "sk-xxx123",
"success": true
}
Platform Support
| Platform | Backend | Notes |
|---|---|---|
| macOS | Keychain | Uses security command |
| Linux | keyring | Requires secretctl[linux] |
For AI Agents
See SKILL.md for agent-optimized documentation.
Why secretctl?
- No cloud sync - Secrets stay local
- No biometrics - Works in automation/CI
- Simple CLI - Easy for agents to use
- JSON output - Machine-readable
- Namespaced - Multiple accounts/apps
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secretctl_cli-0.1.0.tar.gz.
File metadata
- Download URL: secretctl_cli-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59731dfb90807f569914a7ce33d1f769425ee0f67ae20890d935543d46396ffd
|
|
| MD5 |
514b1f11a862b5acbbc3ef99ad6b06e9
|
|
| BLAKE2b-256 |
1ae9a0137098812674120350bcebfaacde5d2cfd684424af1769cc01b77ccb66
|
File details
Details for the file secretctl_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: secretctl_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6f5631ba9ec17b9ad402df855f81fb4ab45e829f81de364831b5094d6ac48cf
|
|
| MD5 |
cbcd857600f5681b2097318b888c6be3
|
|
| BLAKE2b-256 |
fbaed373a4d52ffb7cdcd22772ec52f9e6a87762781f1b5c52c5c65e4cf58e16
|