An Open Banking CLI
Project description
💲 leggen
A self hosted Open Banking Dashboard, API and CLI for managing bank connections and transactions.
Having your bank data accessible through both CLI and REST API gives you the power to backup, analyze, create reports, and integrate with other applications.
🛠️ Technologies
Frontend
- React: Modern web interface with TypeScript
- Vite: Fast build tool and development server
- Tailwind CSS: Utility-first CSS framework
- shadcn/ui: Modern component system built on Radix UI
- TanStack Query: Powerful data synchronization for React
🔌 API & Backend
- FastAPI: High-performance async API backend (integrated into
leggen server) - EnableBanking: Open Banking data access for connecting to banks
- APScheduler: Background job scheduling with configurable cron
📦 Storage
- SQLite: for storing transactions, simple and easy to use
✨ Features
🎯 Core Banking Features
- Connect to banks using EnableBanking (30+ EU countries)
- List all connected banks and their connection statuses
- View balances of all connected accounts
- List and filter transactions across all accounts
🔄 Data Management
- Sync all transactions with SQLite database
- Background sync scheduling with configurable cron expressions
📡 API & Integration
- REST API: Complete FastAPI backend with comprehensive endpoints
- CLI Interface: Enhanced command-line tools with new options
🔔 Notifications & Monitoring
- Discord and Telegram notifications for filtered transactions
- Configurable transaction filters (case-sensitive/insensitive)
- Account expiry notifications and status alerts
- Comprehensive logging and error handling
🚀 Quick Start
Prerequisites
- Create an Enable Banking account at https://enablebanking.com/
- Create an application in the Enable Banking Customer Portal as the image below. The redirect URL must use HTTPS and must end with
/bank-connected. Enable Banking does not support HTTP. - Set up your bank accounts following the Enable Banking Setup Guide
Installation
Docker Compose
# Clone the repository
git clone https://github.com/elisiariocouto/leggen.git
cd leggen
# Create your configuration
mkdir -p data && cp config.example.toml data/config.toml
# Edit data/config.toml with your EnableBanking credentials
# Start all services
docker compose up -d
Configuration
Create a configuration file at ./data/config.toml:
[enablebanking]
application_id = "your-application-id"
key_path = "/path/to/private-key.pem"
# url = "https://api.enablebanking.com"
[database]
sqlite = true
# Optional: Background sync scheduling
[scheduler.sync]
enabled = true
hour = 3 # 3 AM
minute = 0
# cron = "0 3 * * *" # Alternative: use cron expression
# Optional: Discord notifications
[notifications.discord]
webhook = "https://discord.com/api/webhooks/..."
enabled = true
# Optional: Telegram notifications
[notifications.telegram]
token = "your-bot-token"
chat_id = 12345
enabled = true
# Optional: Transaction filters for notifications
[filters]
case_insensitive = ["salary", "utility"]
case_sensitive = ["SpecificStore"]
📖 Usage
Web Interface
Access the React web interface at http://localhost:3000 after starting the services.
API Service
Visit http://localhost:3000/api/v1/docs for interactive API documentation.
CLI Commands
leggen status # Check connection status
leggen bank add # Connect to a new bank
leggen balances # View account balances
leggen transactions # List transactions
leggen sync # Trigger accounts sync
For more options, run leggen --help or leggen <command> --help.
⚠️ Notes
- This project is in active development
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 leggen-2026.2.0.tar.gz.
File metadata
- Download URL: leggen-2026.2.0.tar.gz
- Upload date:
- Size: 54.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101e0c708016be9e9a3ed13b549340db73fd06d04051c1c1ad218eb6f290a2c9
|
|
| MD5 |
807681f3ee81463a9365a97b4e434cde
|
|
| BLAKE2b-256 |
3f5baf40e826ab75911662c9fec45e869d3c84a05f084011af964040e5c23b7f
|
File details
Details for the file leggen-2026.2.0-py3-none-any.whl.
File metadata
- Download URL: leggen-2026.2.0-py3-none-any.whl
- Upload date:
- Size: 75.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6725af63441ab931df51db19a9d0659e9913c5adbf9b6d69077fe6fe0320d26
|
|
| MD5 |
5590fb089f158b7fe46860910352f869
|
|
| BLAKE2b-256 |
a236913824401788055deccaa189f2952b20b5e0e57a5ba3c1c5059b29689ca3
|