Quick Start
1
Install the CLI
Requires Python 3.10 or later.
2
Get credentials
- Create an API key from Hydra DB
- Create or copy your tenant ID from the Hydra DB dashboard
3
Authenticate
~/.hydradb/config.json (file permissions 0600).4
Verify
Configuration
Authentication
The CLI resolves credentials in this order (first match wins):- Environment variables (
HYDRA_DB_API_KEY,HYDRADB_TENANT_ID) - Config file (
~/.hydradb/config.json, written byhydradb login)
- macOS/Linux (bash)
- macOS/Linux (zsh)
- Windows (PowerShell)
Environment Variables
Output Formats
Every command supports--output human (default, Rich-formatted tables) or --output json
(machine-readable). Set the default globally:
Commands
Authentication
Tenant Management
Memory Operations
Knowledge Base
Context Retrieval (Recall)
Data Inspection
CLI Configuration
Scripting & Automation
The CLI is designed for both interactive use and scripting. Use--output json to
get machine-readable output that pipes cleanly into jq, Python, or other tools:
Source & Show Support
If HydraDB CLI makes your workflow faster, please star the open-source repo that
powers it. It helps keep it discoverable and motivates maintainers to keep shipping
improvements.
hydradb-cli
Star on GitHub if you found it useful.