Cashflow
/install cashflow
CashFlow
CashFlow is a multi-purpose utility tool for tracking and managing data entries from the terminal. It provides a simple log-based system for adding, listing, searching, and exporting entries with timestamped records.
Commands
| Command | Description |
|---|---|
cashflow run \x3Cargs> |
Execute the main function with given arguments |
cashflow config |
Show configuration file location (config.json) |
cashflow status |
Show current status (ready/not ready) |
cashflow init |
Initialize the data directory |
cashflow list |
List all entries in the data log |
cashflow add \x3Centry> |
Add a new dated entry to the data log |
cashflow remove \x3Centry> |
Remove an entry |
cashflow search \x3Cterm> |
Search entries (case-insensitive grep) |
cashflow export |
Export all data to stdout |
cashflow info |
Show version and data directory path |
cashflow help |
Show all available commands |
cashflow version |
Show version number |
How It Works
CashFlow uses a flat-file approach. All entries are stored in data.log as dated lines (YYYY-MM-DD \x3Ccontent>). Every command also appends a timestamped record to history.log for auditing.
addappends a new line with today's datelistprints the full data logsearchperforms case-insensitive matching viagrepexportdumps the raw data log to stdout for piping/redirection
Data Storage
All data is stored locally in ~/.local/share/cashflow/ by default:
data.log— Main data file with all entries (one per line, date-prefixed)history.log— Timestamped audit trail of every command executedconfig.json— Configuration file (referenced bycashflow config)
Override the storage location by setting the CASHFLOW_DIR environment variable:
export CASHFLOW_DIR="$HOME/my-data/cashflow"
Alternatively, XDG_DATA_HOME is respected if CASHFLOW_DIR is not set.
Requirements
- bash 4+ (uses
set -euo pipefailfor strict mode) - Standard Unix tools (
grep,date,cat) - No API keys needed
- No external dependencies
When to Use
- Quick data logging — Use
cashflow addto rapidly log entries (expenses, tasks, notes) with automatic date stamps - Reviewing stored entries — Run
cashflow listto see everything you've logged, orcashflow searchto find specific entries - Exporting data for analysis — Use
cashflow export > data.csvto dump all entries for import into spreadsheets or other tools - Project initialization — Run
cashflow initto set up the data directory on a new machine or project - Checking tool status — Use
cashflow statusandcashflow infoto verify the tool is ready and see version/path information
Examples
# Initialize the data directory
cashflow init
# Add entries
cashflow add "Monthly rent payment 2500"
cashflow add "Freelance invoice received 8000"
cashflow add "Grocery shopping 350"
# List all entries
cashflow list
# Search for specific entries
cashflow search rent
cashflow search invoice
# Export data to a file
cashflow export > my-records.txt
# Check status and info
cashflow status
cashflow info
# Run a custom operation
cashflow run process-monthly
# View configuration location
cashflow config
# Remove an entry
cashflow remove "old entry"
# Show version
cashflow version
Output
All command output goes to stdout. The history log is always written to $DATA_DIR/history.log. Redirect output as needed:
cashflow list > all-entries.txt
cashflow export | grep "2026-03" > march-data.txt
Configuration
| Variable | Purpose | Default |
|---|---|---|
CASHFLOW_DIR |
Override data/config directory | ~/.local/share/cashflow/ |
XDG_DATA_HOME |
Fallback base directory | ~/.local/share/ |
Powered by BytesAgain | bytesagain.com | [email protected]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cashflow - After installation, invoke the skill by name or use
/cashflow - Provide required inputs per the skill's parameter spec and get structured output
What is Cashflow?
Track personal cash flow with simple terminal commands and local storage. Use when logging daily expenses, reviewing balance, or exporting records. It is an AI Agent Skill for Claude Code / OpenClaw, with 312 downloads so far.
How do I install Cashflow?
Run "/install cashflow" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cashflow free?
Yes, Cashflow is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cashflow support?
Cashflow is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cashflow?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v2.0.1.