Kalverion_bot — AI Telegram Personal Finance Bot
Repository: ai-bot | Telegram bot: Kalverion_bot
Stop overdrafts before they happen: self-hosted AI finance bot for Telegram
Tired of finance apps that only tell you how you already spent your money? I built Kalverion Bot to focus on what happens next.
Unlike most trackers, this is a self-hosted tool you run on your own infrastructure (like DigitalOcean), giving you control over your financial data.
⭐ If you find this project useful, please consider giving it a star ⭐
|
🛠 Features
📉 Overdraft Warnings: Predictive alerts based on upcoming bills and current balance.
🔮 Cashflow Forecasting: Ask questions like “What will my balance be on 2026-04-03?” to see your financial future.
💸 Debt Management: Track progress on loans and credit cards with payoff planning tools.
🗣 Natural Language: Powered by OpenClaw and custom handlers—no complex menus, just chat.
🔒 Privacy First: Your financial history stays on your server, not in a third-party finance app.
🦞 Built with OpenClaw: AI-powered Telegram interaction on top of a self-hosted finance bot.
|
📖 Commands •
💬 Natural Language •
⚡ Install •
⭐ Star the repo
Key Commands
/add coffee 5
/transfer 100
/debts_list
/debt_compare_graph 100
/forecast_graph
/future_graph 24
/milestones_graph
Why I Built This
I started this project after getting hit with overdraft fees
and realizing I did not have a clear picture of my short-term cashflow.
Most finance apps are good at showing what already happened. This bot focuses on
what will happen next — forecasting balances, warning about
danger windows, tracking recurring expenses, and helping you make better
decisions before problems happen.
⚡ Quick Start
Clone the repo and install dependencies:
git clone https://github.com/bisbeebucky/ai-bot
cd ai-bot
npm install
1. Create a Telegram bot
Open Telegram and search for @BotFather, then run:
/newbot
BotFather will give you a bot token.
2. Set environment variables
export TELEGRAM_BOT_TOKEN=YOUR_TOKEN
export OPENROUTER_API_KEY=YOUR_KEY
If running on Digital Ocean set these in ecosystem.config.cjs
3. Start the bot
node index.js
For DigitalOcean / OpenClaw deployment notes, see INSTALL.md.
🔗 Pairing Telegram with OpenClaw
OpenClaw can connect your Telegram bot without pairing in some setups.
In the current deployment flow, the important piece is making your Telegram token available to the runtime, often through ecosystem.config.cjs.
💬 Natural Language Transactions
The bot can interpret plain English messages and convert them into balanced
double-entry ledger transactions.
I got paid 5000 windfall
bought groceries for 35
paid rent 1200
5 on coffee
It also supports read-only natural-language shortcuts for common finance questions.
See NATURAL_LANGUAGE.md.
🧠 How the AI is used
Kalverion_bot uses AI as a natural-language interpretation and response layer, not as the source of accounting truth.
The model helps with things like:
- understanding plain-English finance messages
- mapping messages to known bot actions
- sorting expenses into categories
- answering read-only finance questions
- generating clearer explanations
The bot’s actual financial state and calculations still come from the app itself:
- ledger-backed balances and transactions
- SQLite data
- forecast logic
- recurring cashflow logic
- debt logic
- shared query and service-layer code
In other words:
- AI handles interpretation
- the bot’s code handles accounting truth
This keeps the system more predictable, auditable, and trustworthy than letting a model write directly to the database or generate raw SQL.
📊 Forecast Your Cashflow
Kalverion_bot simulates your future balance based on current transactions, recurring bills, and debt payments.
⚠️ Danger Window
Current Balance: $576.05
Lowest Balance: $3.67
Date: 2026-04-03
Trigger: Rent
Status: ⚠️ Tight
The bot warns you before an overdraft occurs.
Release
Current release: v1.3.0
Highlights in v1.3.0
- Added natural-language read-only prompts for common finance questions
- Refactored shared query logic into service layers
- Added shared forecast and recurring query services
- Added automated tests for query, forecast, recurring, and simulation logic
See RELEASE.md for release history.
⭐ If this project helps you manage your finances or avoid overdrafts, consider giving it a star.
📖 Commands •
💬 Natural Language •
🏷 Release Notes •
⭐ Star the repo
评论