Skip to content

thedavidweng/monarchmoney-cli

monarchmoney-cli

Monarch Money Logo

A local, agent-friendly command-line tool for Monarch Money.

CI Release License Go Report


monarchmoney-cli is a production-focused Go implementation of a Monarch Money interface. It allows you to query, manage, and automate your financial data directly from your terminal or via AI Agents.

✨ Key Features

  • 🤖 Agent-First: Stable JSON output, distinct stdout/stderr, and predictable exit codes.
  • 🛡️ Safety First: Multi-tiered safety model with --read-only, --dry-run, and --confirm gates.
  • 📜 Auditable: Local JSONL audit logs for every remote mutation.
  • Performance: Single-binary implementation in Go with optional SQLite caching.
  • 🧩 Comprehensive: Full feature parity with monarch-mcp-server — accounts, transactions, budgets, cashflow, rules, splits, and more.

🚀 Quick Start

1. Install

Via Homebrew Cask (macOS/Linux):

brew install --cask thedavidweng/tap/monarchmoney-cli

If you installed the old Homebrew formula, migrate to the cask:

brew update
brew uninstall --formula thedavidweng/tap/monarchmoney-cli
brew install --cask thedavidweng/tap/monarchmoney-cli
monarch version

Via Go (Cross-platform):

go install github.com/thedavidweng/monarchmoney-cli/cmd/monarch@latest

2. Verify Environment

monarch doctor

3. Login

monarch auth login

4. Query Data

# List all accounts in JSON format
monarch accounts list --json

# Search for transactions
monarch transactions search "Amazon" --from 2024-01-01 --json

# List transactions needing review
monarch transactions list --needs-review --json

# View auto-categorization rules
monarch rules list --json

# Get spending breakdown
monarch cashflow spending --from 2024-01-01 --to 2024-01-31 --json

📖 Documentation

Detailed guides are available in the /docs directory:

🔄 Related

money

money is an open-source, self-hosted, fully local personal finance backend. It borrows many interaction patterns from monarchmoney-cli: the same JSON-first CLI, the same safety gates. The key difference is that it runs entirely on your own machine with no subscription required. If you've ever wanted a fully autonomous alternative, it might be worth a look.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details on how to get started.

⚖️ Disclaimer

monarchmoney-cli is an independent, community-maintained project and is not affiliated with, sponsored by, or endorsed by Monarch Money, Inc.

📑 Acknowledgements

This project builds on work and ideas from the following projects:

📄 License

Distributed under the Apache License 2.0. See LICENSE for more information.


Built with ❤️ for the Monarch Money community.

About

A local, agent-friendly command-line tool for Monarch Money. Written in Go.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors