CLI for Copilot Money personal finance
Project description
Copilot Money CLI
Command-line interface for Copilot Money, a personal finance app. Authenticate once and query accounts, transactions, holdings, and allocation data from your terminal.
Note: This is an unofficial tool and is not affiliated with Copilot Money.
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-money config init
# ✓ Saved refresh token from chrome
copilot-money 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-money refresh
# { "refreshed": ["conn_123", "conn_456", ...] }
copilot-money accounts --type CREDIT
# Accounts
# ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Name ┃ Type ┃ Balance ┃
# ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ Amex Platinum │ CREDIT │ -$1,253.44 │
# │ Student Loan │ LOAN │ -$8,450.00 │
# └──────────────────┴────────────┴──────────────┘
copilot-money accounts --json
# [
# {
# "id": "acc_123",
# "name": "Chase Checking",
# "balance": 4210.12,
# "type": "DEPOSITORY"
# }
# ]
copilot-money 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-money networth
# Net Worth
# ┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
# ┃ Category ┃ Amount ┃
# ┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
# │ Assets │ $32,660.45 │
# │ Liabilities│ -$9,703.44 │
# │ Net Worth │ $22,957.01 │
# └────────────┴──────────────┘
copilot-money 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-money 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-money 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-money 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-money config init - Explicit source:
copilot-money config init --source arc|chrome|safari|firefox - Manual entry:
copilot-money config init --source manualor--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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file copilot_money_cli-0.1.1.tar.gz.
File metadata
- Download URL: copilot_money_cli-0.1.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a01be3cc4638a874eae2630a024c24a89b3d232dd18593f82ab32978e797a8b
|
|
| MD5 |
b5225009bc677629b6ea3d820669e0c9
|
|
| BLAKE2b-256 |
420c799877ed40a91e71e51cfd294ade953b0cb48b5d2a7525292bea4e2c2933
|
Provenance
The following attestation bundles were made for copilot_money_cli-0.1.1.tar.gz:
Publisher:
publish.yml on jayhickey/copilot-money-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
copilot_money_cli-0.1.1.tar.gz -
Subject digest:
7a01be3cc4638a874eae2630a024c24a89b3d232dd18593f82ab32978e797a8b - Sigstore transparency entry: 834388939
- Sigstore integration time:
-
Permalink:
jayhickey/copilot-money-cli@1e6efedc37fd4caa15a75c5e0a4a2a741efbc928 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jayhickey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e6efedc37fd4caa15a75c5e0a4a2a741efbc928 -
Trigger Event:
release
-
Statement type:
File details
Details for the file copilot_money_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: copilot_money_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6a99152b1d192affc37ca8a3084ada4a3d91a85d1b8273609dbbe967922b59
|
|
| MD5 |
d3e5be58ae8bc2602a8ece6f0a4625d3
|
|
| BLAKE2b-256 |
8bb711705956fc3e228912ea12649eec006db8d6914d558aab56b8101e16b3de
|
Provenance
The following attestation bundles were made for copilot_money_cli-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on jayhickey/copilot-money-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
copilot_money_cli-0.1.1-py3-none-any.whl -
Subject digest:
5e6a99152b1d192affc37ca8a3084ada4a3d91a85d1b8273609dbbe967922b59 - Sigstore transparency entry: 834388941
- Sigstore integration time:
-
Permalink:
jayhickey/copilot-money-cli@1e6efedc37fd4caa15a75c5e0a4a2a741efbc928 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jayhickey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e6efedc37fd4caa15a75c5e0a4a2a741efbc928 -
Trigger Event:
release
-
Statement type: