A command-line interface for managing secrets using Keypo decentralized storage. Protect your API keys, credentials, and other sensitive data without trusting an intermediary.
The official hosted version is available on npm:
npm install -g @keypo/cliSee the package on npm.
This repository is the open-source codebase. You can self-host, audit, or modify it as needed.
git clone https://github.com/keypo-us/keypo-secrets-cli.git
cd keypo-secrets-cli
npm install
npm run buildTo link the CLI locally for development:
npm linkYou can then use the keypo command directly from your terminal.
You can upload/manage secrets here. Or if you want to host the secrets manager yourself, you can fork the repo here.
Initialize and configure your Keypo CLI environment:
keypo setupThis will prompt you for:
- Private key
- RPC URL (with a default option)
Synchronize files with the Keypo network by replacing placeholders with decrypted values:
keypo sync <input-file> <output-file>The sync command:
- Reads from the input file
- Finds placeholders in the format
${key_name} - Searches for each key in the Keypo network
- Decrypts the values using your wallet
- Replaces placeholders with decrypted values
- Writes the result to the output file
Example:
# Input file (config.txt) contains:
# API_KEY=${api_key}
# DATABASE_URL=${database_url}
keypo sync config.txt config-decrypted.txt
# Output file (config-decrypted.txt) will contain:
# API_KEY=actual_decrypted_api_key_value
# DATABASE_URL=actual_decrypted_database_url_valueList your keys stored in the Keypo network:
keypo listShows all keys with their name and owner information.
The CLI uses a placeholder replacement flow:
- You write configuration files with
${key_name}placeholders - The
synccommand reads each placeholder and looks up the corresponding key on the Keypo decentralized storage network - Values are decrypted using your wallet's private key
- The resolved values replace the placeholders in the output file
Your secrets are stored on the Keypo decentralized storage network and are only accessible to authorized wallets.
@keypo/typescript-sdk-- Keypo client SDK@keypo/typescript-sdk-server-- Keypo server SDKethers-- Ethereum wallet and provider utilitiescommander-- CLI framework
- Node.js v14+
- npm v6+
Contributions are welcome. See CONTRIBUTING.md for guidelines.