Skip to main content

CLI for Copilot Money personal finance

Project description

Copilot Money CLI

Command-line interface for the Copilot Money personal finance app. Authenticate once and query accounts, transactions, holdings, and allocation data from your terminal.

Install

pip install copilot-money-cli

Or install from source:

git clone https://github.com/jayhickey/copilot-money-cli.git
cd copilot-money-cli
pip install -e .

Quick start

copilot config init
# ✓ Saved refresh token from chrome
copilot accounts
# Accounts
# ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Name             ┃ Type       ┃ Balance      ┃
# ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ Chase Checking   │ DEPOSITORY │ $4,210.12    │
# │ Fidelity IRA     │ INVESTMENT │ $28,450.33   │
# │ Amex Platinum    │ CREDIT     │ -$1,253.44   │
# └──────────────────┴────────────┴──────────────┘

Commands

copilot refresh
# { "refreshed": ["conn_123", "conn_456", ...] }

copilot accounts --type CREDIT
# Accounts
# ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Name             ┃ Type       ┃ Balance      ┃
# ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ Amex Platinum    │ CREDIT     │ -$1,253.44   │
# │ Student Loan     │ LOAN       │ -$8,450.00   │
# └──────────────────┴────────────┴──────────────┘

copilot accounts --json
# [
#   {
#     "id": "acc_123",
#     "name": "Chase Checking",
#     "balance": 4210.12,
#     "type": "DEPOSITORY"
#   }
# ]

copilot transactions --count 3
# Transactions
# ┏━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
# ┃ Date       ┃ Amount    ┃ Description        ┃
# ┡━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
# │ 2024-10-02 │ -$12.45   │ Coffee Shop        │
# │ 2024-10-01 │ -$54.20   │ Grocery Market     │
# │ 2024-09-30 │ $2,200.00 │ Payroll Deposit    │
# └────────────┴───────────┴────────────────────┘

copilot networth
# Net Worth
# ┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Category   ┃ Amount       ┃
# ┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ Assets     │ $32,660.45   │
# │ Liabilities│ -$9,703.44   │
# │ Net Worth  │ $22,957.01   │
# └────────────┴──────────────┘

copilot holdings --group account
# Brokerage Account — $28,450.33 (100.0%)
# ┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Symbol ┃ Name                         ┃ Quantity ┃ Price    ┃ Value        ┃
# ┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ VTI    │ Vanguard Total Stock Market  │ 35.0000  │ $250.00  │ $8,750.00    │
# │ BND    │ Vanguard Total Bond Market   │ 55.0000  │ $72.00   │ $3,960.00    │
# └────────┴──────────────────────────────┴──────────┴──────────┴──────────────┘

copilot allocation
# Asset Allocation
# ┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Asset Class  ┃ Value        ┃ %            ┃
# ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ STOCKS       │ $18,000.00   │ 72.0%        │
# │   └ US       │ $12,600.00   │ 50.4% (70%)  │
# │   └ International │ $5,400.00│ 21.6% (30%) │
# │ BONDS        │ $7,000.00    │ 28.0%        │
# │ TOTAL        │ $25,000.00   │ 100%         │
# └──────────────┴──────────────┴──────────────┘
# Stock/Bond Ratio: 72/28
# US/International: 70/30

copilot config show
# Configuration
# ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Setting          ┃ Value                                                ┃
# ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
# │ Config path      │ /Users/you/.config/copilot-money/config.json         │
# │ Refresh token    │ ✓ set                                                │
# │ Token source     │ chrome                                               │
# │ Access token     │ ✓ cached                                             │
# │ Token valid      │ ✓ yes                                                │
# └──────────────────┴──────────────────────────────────────────────────────┘

copilot config init --source manual
# Enter refresh token: ********
# ✓ Saved refresh token from manual input

Authentication

Configuration is stored at ~/.config/copilot-money/config.json. The CLI can auto-detect your Copilot Money refresh token from supported browsers on macOS.

  • Auto-detect: copilot config init
  • Explicit source: copilot config init --source arc|chrome|safari|firefox
  • Manual entry: copilot config init --source manual or --token "..."

Privacy Note

When using browser auto-detection, the CLI reads your browser's local IndexedDB storage to find your Copilot Money session token. This happens locally on your machine — no data is sent anywhere except to Copilot Money's API (which you're already authenticated with). The token is stored in ~/.config/copilot-money/config.json.

If you prefer not to have the CLI access browser storage, use --source manual and paste your token directly.

Requirements

  • Python 3.10+
  • macOS for browser token extraction (manual token entry works everywhere)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copilot_money_cli-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copilot_money_cli-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file copilot_money_cli-0.1.0.tar.gz.

File metadata

  • Download URL: copilot_money_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for copilot_money_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2af1d794ca6d2601b2ee91fe1dc47547dbf8481d0dfc00f23930a6908ebfb8c
MD5 36a23983eb7278572454d1e429fa4a4b
BLAKE2b-256 7720d2acfa7d366bcdc160480f04f5676d1db7e83a1c6f9da65a7d65772cb1a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for copilot_money_cli-0.1.0.tar.gz:

Publisher: publish.yml on jayhickey/copilot-money-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file copilot_money_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for copilot_money_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12df5c9429060ee2f13db66ab0d140a18aeb29813e6e21c2c31823eb9ea8251c
MD5 4eb7c7450be1395e7a7b3a5f036b733c
BLAKE2b-256 bb570bc05efdf73cbff460b3cfdd307e6a5558ef56a3be70622dd8cf37b6f2e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for copilot_money_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on jayhickey/copilot-money-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page