vas3k / TaxHacker
- суббота, 21 марта 2026 г. в 00:00:02
Self-hosted AI accounting app. LLM analyzer for receipts, invoices, transactions with custom prompts and categories
TaxHacker is a self-hosted accounting app designed for freelancers, indie hackers, and small businesses who want to save time and automate expense and income tracking using the power of modern AI.
Upload photos of receipts, invoices, or PDFs, and TaxHacker will automatically recognize and extract all the important data you need for accounting: product names, amounts, items, dates, merchants, taxes, and save it into a structured Excel-like database. You can even create custom fields with your own AI prompts to extract any specific information you need.
The app features automatic currency conversion (including crypto!) based on historical exchange rates from the transaction date. With built-in filtering, multi-project support, import/export capabilities, and custom categories, TaxHacker simplifies reporting and makes tax filing a bit easier.
Important
This project is still in early development. Use at your own risk! Star us to get notified about new features and bugfixes ⭐️
Snap a photo of any receipt or upload an invoice PDF, and TaxHacker will automatically recognize, extract, categorize, and store all the information in a structured database.
TaxHacker works with a wide variety of documents, including store receipts, restaurant bills, invoices, bank statements, letters, even handwritten receipts. It handles any language and any currency with ease.
TaxHacker automatically detects currencies in your documents and converts them to your base currency using historical exchange rates.
Adapt TaxHacker to your unique needs with unlimited customization options. Create custom fields, projects, and categories that better suit your specific needs, idustry standards or country.
Take full control of how TaxHacker's AI processes your documents. Write custom AI prompts for fields, categories, and projects, or modify the built-in ones to match your specific needs.
TaxHacker is 100% adaptable and tunable to your unique requirements — whether you need to extract emails, addresses, project codes, or any other custom information from your documents.
Once your documents are processed, easily view, filter, and export your complete transaction history exactly how you need it.
Keep complete control over your financial data with local storage and self-hosting options. TaxHacker respects your privacy and gives you full ownership of your information.
TaxHacker can be easily self-hosted on your own infrastructure for complete control over your data and application environment. We provide a Docker image and Docker Compose setup that makes deployment simple:
curl -O https://raw.githubusercontent.com/vas3k/TaxHacker/main/docker-compose.yml
docker compose upThe Docker Compose setup includes:
New Docker images are automatically built and published with every release. You can use specific version tags (e.g., v1.0.0) or latest for the most recent version.
For advanced setups, you can customize the Docker Compose configuration to fit your infrastructure. The default configuration uses the pre-built image from GitHub Container Registry, but you can also build locally using the provided Dockerfile.
Example custom configuration:
services:
app:
image: ghcr.io/vas3k/taxhacker:latest
ports:
- "7331:7331"
environment:
- SELF_HOSTED_MODE=true
- UPLOAD_PATH=/app/data/uploads
- DATABASE_URL=postgresql://postgres:postgres@localhost:5432/taxhacker
volumes:
- ./data:/app/data
restart: unless-stoppedConfigure TaxHacker for your specific needs with these environment variables:
| Variable | Required | Description | Example |
|---|---|---|---|
UPLOAD_PATH |
Yes | Local directory for file uploads and storage | ./data/uploads |
DATABASE_URL |
Yes | PostgreSQL connection string | postgresql://user@localhost:5432/taxhacker |
PORT |
No | Port to run the application on | 7331 (default) |
BASE_URL |
No | Base URL for the application | http://localhost:7331 |
SELF_HOSTED_MODE |
No | Set to "true" for self-hosting: enables auto-login, custom API keys, and additional features | true |
DISABLE_SIGNUP |
No | Disable new user registration on your instance | false |
BETTER_AUTH_SECRET |
Yes | Secret key for authentication (minimum 16 characters) | your-secure-random-key |
You can also configure LLM provider settings in the application or via environment variables:
OPENAI_MODEL_NAME and OPENAI_API_KEYGOOGLE_MODEL_NAME and GOOGLE_API_KEYMISTRAL_MODEL_NAME and MISTRAL_API_KEYWe use:
brew install gs graphicsmagick)Set up your local development environment:
# Clone the repository
git clone https://github.com/vas3k/TaxHacker.git
cd TaxHacker
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration
# Make sure to set DATABASE_URL to your PostgreSQL connection string
# Example: postgresql://user@localhost:5432/taxhacker
# Initialize the database
npx prisma generate && npx prisma migrate dev
# Start the development server
npm run devVisit http://localhost:7331 to see your local TaxHacker instance in action.
For a production build, instead of npm run dev use the following commands:
# Build the application
npm run build
# Start the production server
npm run startWe welcome contributions to TaxHacker! Here's how you can help make it even better:
All development happens on GitHub through issues and pull requests. We appreciate any help.
If TaxHacker has helped you save time or manage your finances better, consider supporting its continued development! Your donations help us maintain the project, add new features, and keep it free and open source. Every contribution helps ensure we can keep improving and maintaining this tool for the community.
TaxHacker is licensed under the MIT License.