Synopsis
Arguments
API service name (e.g., “openai”, “anthropic”, “together”). If not provided, you will be prompted.
Friendly name for this credential (e.g., “production”, “dev”, “team-key”). If not provided, you will be prompted.
The API key value. If not provided, you will be prompted (input is hidden).
Examples
Interactive mode
Non-interactive mode
Add multiple credentials
Behavior
- Unlocks the credential vault using the master password
- Validates that service and name are non-empty
- Stores the credential with AES-256-GCM encryption
- Returns a unique ID for the credential
- Allows multiple credentials per service with different names
- Credentials can have the same name across different services
Error messages
Failed to unlock vault:Exit codes
- 0 - Credential added successfully
- 1 - Error occurred (vault unlock failed, validation failed, etc.)
Environment variables
FISHNET_MASTER_PASSWORD- Master password for vault decryptionFISHNET_KEYCHAIN_SERVICE- Keychain service name (macOS, default: “fishnet”)FISHNET_KEYCHAIN_ACCOUNT- Keychain account name (macOS, default: “vault_derived_key”)
Related commands
- fishnet list-keys - List all stored credentials
- fishnet remove-key - Remove a credential
- fishnet init - Initialize vault and add first credential
- fishnet backup - Backup the encrypted vault