Package ReferenceCLI (Python)
Config
Manage stored API keys with encrypted local storage.
Config
The config commands manage API keys stored in encrypted local config (~/.supyagent/config/). Keys are encrypted with Fernet symmetric encryption.
supyagent config set
Store an API key. If no key name is given, the CLI prompts you interactively.
supyagent config set [KEY_NAME]Options
| Flag | Type | Description |
|---|---|---|
--value | string | Set the key value directly (skips interactive prompt) |
Examples
# Interactive — prompts for key name and value
supyagent config set
# Set a specific key interactively (prompts for value)
supyagent config set ANTHROPIC_API_KEY
# Set a key non-interactively
supyagent config set ANTHROPIC_API_KEY --value sk-ant-...supyagent config list
List all stored API keys. Values are masked — only the key names are shown.
supyagent config listOutput
Stored API keys:
ANTHROPIC_API_KEY ✔ Set
OPENAI_API_KEY ✔ Setsupyagent config delete
Delete a stored API key.
supyagent config delete <KEY_NAME>Example
supyagent config delete OPENAI_API_KEYsupyagent config import
Import API keys from a .env file.
supyagent config import <FILE_PATH>Options
| Flag | Type | Description |
|---|---|---|
--filter | string | Only import keys matching this prefix |
Examples
# Import all keys from .env
supyagent config import .env
# Import only keys starting with "ANTHROPIC_"
supyagent config import .env --filter ANTHROPIC_supyagent config export
Export stored API keys to a .env file.
supyagent config export <FILE_PATH>Options
| Flag | Type | Description |
|---|---|---|
--force | flag | Overwrite the file if it already exists |
Examples
# Export to a file
supyagent config export keys.env
# Overwrite existing file
supyagent config export keys.env --force