Installation
databar command is available in your terminal.
Authentication
~/.databar/config with 600 permissions (owner read-only).
You can also set the DATABAR_API_KEY environment variable — it takes priority over the config file:
Output formats
Every command supports--format with three options:
| Flag | Output | Best for |
|---|---|---|
--format table | Rich terminal table (default) | Human viewing |
--format json | Raw JSON to stdout | Piping, scripting, AI agents |
--format csv | CSV to stdout or --out file.csv | Spreadsheets, data pipelines |
Enrichments
Waterfalls
Tables
Tasks
For long-running operations, tasks can be checked manually or polled until completion:AI agent usage
The CLI is designed to be invoked by AI agents (Claude Code, Cursor, etc.) with--format json for machine-readable output:
0 on success, non-zero on error. Errors are written to stderr; data is written to stdout, so piping always works cleanly.
Environment variables
| Variable | Description |
|---|---|
DATABAR_API_KEY | Your Databar API key. Takes priority over ~/.databar/config. |
Source code
databar-ai/databar-python
The CLI is open source. View source, report issues, and contribute on GitHub.