secretctl is an "AI-ready" secrets manager whose core goal is to address the security risk of developers pasting sensitive information such as API keys directly into AI coding assistants (such as Claude Code). It uses a local-first design, and secrets never leave the user's machine, with no reliance on cloud sync, third-party servers, or subscription fees.
Main capabilities
- Secret storage and management: Uses AES-256-GCM encrypted storage, Argon2id for key derivation, and SQLite for underlying storage, with no external dependencies. Supports initializing a vault, storing, retrieving, listing, and deleting secrets.
- Command injection: Injects secrets as environment variables into commands for execution, avoiding secrets appearing in shell history.
- Output redaction: Automatically redacts secrets in command output by exact string matching. Note: encoded secrets (such as Base64, hexadecimal) or partial matches will not be detected.
- Import and export: Supports importing secrets from .env or JSON files, and exporting secrets for use by tools such as Docker and CI/CD.
- Password generation: Can generate secure random passwords.
- Backup and restore: Creates encrypted backups and restores vaults; backups use AES-256-GCM encryption with a new salt value, and detect tampering through HMAC-SHA256 integrity verification.
- Audit log: Uses HMAC chained logs, which can detect tampering.
- Metadata support: Can add metadata such as URL, tags, and notes to secrets.
AI integration (MCP server) secretctl has a built-in MCP server and can be securely integrated with AI coding assistants such as Claude Code. The provided MCP tools include:
- secret_list: Lists secret keys and metadata (without exposing values)
- secret_exists: Checks whether a secret exists and its metadata
- secret_get_masked: Gets a masked value (such as ****WXYZ)
- secret_run: Executes a command with secrets as environment variables
- secret_list_fields: Lists the field names of multi-field secrets (without exposing values)
- secret_get_field: Gets only non-sensitive field values
- secret_run_with_bindings: Executes using predefined environment bindings
It can be configured in Claude Code's ~/.claude.json, and through ~/.secretctl/mcp-policy.yaml sets the policy. AI agents never receive plaintext keys; secret_run injects environment variables and output is automatically redacted.
Desktop application A native desktop application built with Wails v2, supporting macOS, Windows, and Linux. Features include: creating and unlocking vaults, full key CRUD, searching and filtering by key, copying key values to the clipboard (with automatic clearing), metadata support, password visibility toggle, and automatic lock on idle timeout. It also includes an audit log viewer that can filter by operation, source, key, and date range, with pagination, chain integrity verification, CSV/JSON export, and a detailed log entry popup. The frontend uses React + TypeScript + Tailwind CSS.
Usage Download the binary for your platform from GitHub Releases (Linux amd64/arm64, macOS Intel/Apple Silicon, Windows x86_64, as well as desktop installers). macOS may show an unsigned application warning, and Windows SmartScreen may show a warning; these must be allowed manually. Basic workflow: initialize the vault, store keys, retrieve keys, list all keys, delete keys.
Use cases
- Avoid leaking keys into conversation history or cloud logs when using AI coding assistants
- For developers who need to manage keys locally and do not want to rely on cloud services
- Securely inject keys in environments such as CI/CD and Docker
- Scenarios that require auditing key access records
Limitations
- Output redaction is based only on exact string matching; encoded or partially matched keys cannot be detected.
- Runs fully offline, with no network access.
- The master password is neither stored nor transmitted (zero-knowledge design).
- Vault file permissions are 0600.
- The desktop application is a native application, and some platforms may display an unsigned warning.
- Specific fees, prices, and platform support details are subject to the official release; no additional information is provided in the materials.