← Open Source
sakowicz

actual-ai

Categorise transactions in Actual Budget using AI.

ApplicationsProductivitySpecialistsTypeScript
Open on GitHub
Momentum
+1stars in 24 hours+0.2%
532
Stars
59
Forks
+2
This week
7
Contributors
Created 2024-06-09 · Updated 2026-10-16 · #6812 today
Top developers
sakowiczkevingaterabertmelis

sakowicz/actual-ai is ranked 6,812 with 532 stars.

Same-category comparison

sakowicz/actual-ai is ranked 6,812 among these 8 peers; x-glacier/GenerativeAgentsCN is ranked 6,800.

Same-category comparison
NameRankMetrics
PRBonn/kiss-slam6,786
Language:
Python
Stars:
540
Forks:
68
Description:
A LiDAR SLAM system that just works.
1692775560/dsh-Mimir-Academic-research6,792
Language:
TypeScript
Stars:
539
Forks:
18
Description:
An open-source research workbench plugin for the whole research cycle.
see2023/Bert-VITS2-ext6,794
Language:
Python
Stars:
539
Forks:
58
Description:
Animation testing based on Bert-VITS2.
x-glacier/GenerativeAgentsCN6,800
Language:
Python
Stars:
537
Forks:
93
SilentCoderHere/aihub6,824
Language:
Kotlin
Stars:
527
Forks:
51
Description:
All-in-one Kotlin app that aggregates multiple AI assistants in a single tabbed interface, featuring webview integration, Material Design 3, and persistent session management.
jazzenchen/VibeAround6,825
Language:
Rust
Stars:
527
Forks:
54
DonTizi/ReMind6,826
Language:
TypeScript
Stars:
526
Forks:
30
Description:
Your Local Artificial Memory on your Device.
NeptuneHub/AudioMuse-AI-NV-plugin6,830
Language:
Go
Stars:
525
Forks:
17
Description:
AudioMuse-AI Navidrome Plugin enhances music discovery by using sonic analysis to queue similar songs in real time.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageTypeScript
CategoryApplications
SubcategoryProductivity, Specialists
KeywordsAutomation, Data scraping, Finance
Stars532
Forks59
Contributors7
Created date2024-06-09
Updated date2026-10-16
Stars in 1 day1
Stars in 7 days2
Rank6,812
Previous rank17,399
Rank change10,587
7-day stars rank8,873
Previous 7-day stars rank11,538
7-day stars rank change2,665
Total stars rank18,430
Previous total stars rank18,455
Total stars rank change25
README summary

🤖 Actual AI This is a project that allows you to categorize uncategorized transactions for Actual Budget using OpenAI, Anthropic, Google Generative AI, Ollama or any other compatible API (including OpenRouter). 🌟 Features 📊 Classify transactions using LLM The app sends requests to the LLM to classify transactions based on their description, amount, and notes. 🔄 Sync accounts before classification 🕒 Classify transactions on a cron schedule ❌ When a transaction cannot be classified, it is marked in Notes as "not guessed," and it will not

be classified again. ✅ Every guessed transaction is marked as guessed in notes, so you can review the classification. 🌱 Suggest and create new categories for transactions that don't fit existing ones When enabled, the LLM can suggest entirely new categories for transactions it cannot classify, and optionally create them automatically. 🌐 Web search for unfamiliar merchants Using the ValueSerp API, the system can search the web for information about unfamiliar merchants to help the LLM make better categorization decisions. 🔄 Re-run missed

transactions Re-process transactions previously marked as unclassified. 🚀 Usage Sample file: Feature Configuration You can configure features using (JSON array) or (comma-separated list or JSON array): The environment variable accepts a JSON array of feature names to enable: Available features: - Enable web search for merchant information - Allow suggesting new categories for transactions - Run classification when the application starts - Sync accounts before running classification - Run in dry run mode (enabled by default) - Re-process transactions previously marked as unclassified - Disable

Rate Limiter Scheduling With set, the container stays up and runs every scheduled classification in a fresh child process. keeps state in module-level singletons that survive , and in a container running for weeks that state drifts until incremental sync reports no new messages and imports quietly stop. A new process per run keeps that state fresh without needing a restart. Logs from the run appear as usual, and a schedule that fires while the previous run is still going

is skipped. Rate Limit Overrides By default each provider gets a conservative request/token-per-minute limit. OpenRouter Tool Calling By default, model tool-calling is disabled when because some gateway/model combinations can return unstable tool-call responses. You can re-enable it with: Customizing the Prompt To create a custom prompt, modify the environment variable to include or exclude variables as needed. Ensure that the Handlebars syntax is correctly used to handle conditional rendering and loops. Each category

group contains an array of categories. : The absolute value of the transaction amount. : The type of transaction, either 'Income' or 'Outcome'. : The notes or description of the transaction. : The name of the payee associated with the transaction. This is found by matching the payee ID in the transaction with the payee list. : The imported payee name from the transaction. : A boolean indicating if the transaction is cleared. : A boolean indicating if the transaction is reconciled. New Category Suggestions When feature

is enabled, the system will: 1. First try to classify transactions using existing categories 2. For transactions that can't be

Frequently asked questions

How many stars and forks are recorded?

sakowicz/actual-ai has 532 stars and 59 forks.

What is the repository rank?

sakowicz/actual-ai is ranked 6,812.

What language and category are recorded?

sakowicz/actual-ai has 532 stars, uses TypeScript and belongs to Applications.

Which repository is closest in rank?

sakowicz/actual-ai is compared with x-glacier/GenerativeAgentsCN, ranked 6,800 with 537 stars.

README

🤖 Actual AI

[![GitHub Release](https://img.shields.io/github/v/release/sakowicz/actual-ai?label=GitHub)](https://github.com/sakowicz/actual-ai)
[![Docker Image Version](https://img.shields.io/docker/v/sakowicz/actual-ai?label=Docker%20Hub)](https://hub.docker.com/r/sakowicz/actual-ai)
[![Test Coverage](https://codecov.io/github/sakowicz/actual-ai/graph/badge.svg?token=7ZLJUN61QE)](https://codecov.io/github/sakowicz/actual-ai)

This is a project that allows you to categorize uncategorized transactions for Actual Budget using OpenAI, Anthropic, Google Generative AI, Ollama or any other compatible API (including OpenRouter).

🌟 Features

📊 Classify transactions using LLM

The app sends requests to the LLM to classify transactions based on their description, amount, and notes.

🔄 Sync accounts before classification

🕒 Classify transactions on a cron schedule

❌ When a transaction cannot be classified, it is marked in Notes as "not guessed," and it will not be classified again.

✅ Every guessed transaction is marked as guessed in notes, so you can review the classification.

🌱 Suggest and create new categories for transactions that don't fit existing ones

When enabled, the LLM can suggest entirely new categories for transactions it cannot classify, and optionally create them automatically.

🌐 Web search for unfamiliar merchants

Using the ValueSerp API, the system can search the web for information about unfamiliar merchants to help the LLM make better categorization decisions.

🔄 Re-run missed transactions

Re-process transactions previously marked as unclassified.

🚀 Usage

Sample docker-compose.yml file:

services:
  actual_server:
    image: docker.io/actualbudget/actual-server:latest
    ports:
      - '5006:5006'
    volumes:
      - ./actual-data:/data
    restart: unless-stopped

  actual-ai:
    image: docker.io/sakowicz/actual-ai:latest
    restart: unless-stopped
    depends_on:
      actual_server:
        condition: service_healthy
    environment:
      ACTUAL_SERVER_URL: http://actual_server:5006
      ACTUAL_PASSWORD: your_actual_password
      ACTUAL_BUDGET_ID: your_actual_budget_sync_id # This is the ID from Settings → Show advanced settings → Sync ID
      CLASSIFICATION_SCHEDULE_CRON: 0 */4 * * * # How often to run classification.
      LLM_PROVIDER: openai # Can be "openai", "openrouter", "anthropic", "google-generative-ai", "ollama" or "groq"
      FEATURES: '["classifyOnStartup", "syncAccountsBeforeClassify", "suggestNewCategories"]'
#      VALUESERP_API_KEY: your_valueserp_api_key # API key for ValueSerp, required if webSearch tool is enabled
#      OPENAI_API_KEY:  # optional. required if you want to use the OpenAI API
#      OPENAI_MODEL:  # optional. required if you want to use a specific model, default is "gpt-5-mini"
#      OPENAI_BASE_URL:  # optional. required if you don't want to use the OpenAI API but OpenAI compatible API, ex: "http://ollama:11424/v1
#      OPENROUTER_API_KEY:  # optional. required if you want to use OpenRouter
#      OPENROUTER_MODEL:  # optional. default is "deepseek/deepseek-v3.2"
#      OPENROUTER_BASE_URL:  # optional. default: "https://openrouter.ai/api/v1"
#      OPENROUTER_REFERRER:  # optional but recommended by OpenRouter (or OPENROUTER_REFERER)
#      OPENROUTER_TITLE:  # optional. default: "actual-ai"
#      LLM_TIMEOUT_MS:  # optional. request timeout in ms for LLM calls, default: 120000
#      OPENROUTER_ENABLE_TOOL_CALLING:  # optional. "true" to allow model tool-calling on openrouter, default: false
#      LLM_TEMPERATURE:  # optional. temperature for LLM calls, e.g. 1 for models that reject other values
#      ANTHROPIC_API_KEY:  # optional. required if you want to use the Anthropic API
#      ANTHROPIC_MODEL:  # optional. required if you want to use a specific model, default is "claude-3-5-sonnet-latest"
#      ANTHROPIC_BASE_URL:  # optional. default: "https://api.anthropic.com/v1
#      GOOGLE_GENERATIVE_AI_API_KEY:  # optional. required if you want to use the Google Generative AI API
#      GOOGLE_GENERATIVE_AI_MODEL:  # optional. required if you want to use a specific model, default is "gemini-1.5-flash"
#      GOOGLE_GENERATIVE_AI_BASE_URL:  # optional. default: "https://generativelanguage.googleapis.com"
#      OLLAMA_MODEL=llama3.1 optional. required if you want to use an Ollama specific model, default is "phi3.5"
#      OLLAMA_BASE_URL=http://localhost:11434/api # optional. required for ollama provider
#      GROQ_API_KEY:  # optional. required if you want to use the Groq API
#      GROQ_MODEL:  # optional. required if you want to use a specific model, default is "mixtral-8x7b-32768"
#      GROQ_BASE_URL:  # optional. default: "https://api.groq.com/openai/v1"
#      ACTUAL_E2E_PASSWORD:  # optional. required if you have E2E encryption
#      NODE_TLS_REJECT_UNAUTHORIZED: 0 # optional. required if you have trouble connecting to Actual server 
#      NOT_GUESSED_TAG=#actual-ai-miss
#      GUESSED_TAG=#actual-ai

Feature Configuration

You can configure features using FEATURES (JSON array) or ENABLED_FEATURES (comma-separated list or JSON array):

The FEATURES environment variable accepts a JSON array of feature names to enable:

FEATURES='["suggestNewCategories", "classifyOnStartup", "syncAccountsBeforeClassify"]'

# Equivalent:
ENABLED_FEATURES='suggestNewCategories,classifyOnStartup,syncAccountsBeforeClassify'

Available features:

  • webSearch - Enable web search for merchant information
  • suggestNewCategories - Allow suggesting new categories for transactions
  • classifyOnStartup - Run classification when the application starts
  • syncAccountsBeforeClassify - Sync accounts before running classification
  • dryRun - Run in dry run mode (enabled by default)
  • rerunMissedTransactions - Re-process transactions previously marked as unclassified
  • disableRateLimiter - Disable Rate Limiter

Scheduling

With CLASSIFICATION_SCHEDULE_CRON set, the container stays up and runs every scheduled classification in a fresh child process. @actual-app/api keeps state in module-level singletons that survive shutdown(), and in a container running for weeks that state drifts until incremental sync reports no new messages and imports quietly stop. A new process per run keeps that state fresh without needing a restart. Logs from the run appear as usual, and a schedule that fires while the previous run is still going is skipped.

Without a cron schedule, classifyOnStartup classifies once and the process exits — the right shape when an external scheduler owns the timing.

Rate Limit Overrides

By default each provider gets a conservative request/token-per-minute limit. You can override these per deployment with two environment variables — useful when your plan's actual limits differ from the built-in defaults (e.g. Google AI Free Tier sits well below the default 300 RPM):

  • REQUESTS_PER_MINUTE — proactive request-per-minute cap
  • TOKENS_PER_MINUTE — proactive token-per-minute cap

Each variable supports three states:

  • unset (or empty) — fall back to the built-in provider default
  • 0 — disable that axis of proactive rate limiting (the provider's own 429 responses still drive reactive backoff)
  • positive number — use as the custom limit

To turn off rate limiting entirely, add disableRateLimiter to your FEATURES array instead.

OpenRouter Tool Calling

By default, model tool-calling is disabled when LLM_PROVIDER=openrouter because some gateway/model combinations can return unstable tool-call responses. You can re-enable it with:

OPENROUTER_ENABLE_TOOL_CALLING=true

Customizing the Prompt

To create a custom prompt, modify the PROMPT_TEMPLATE environment variable to include or exclude variables as needed. Ensure that the Handlebars syntax is correctly used to handle conditional rendering and loops.

Variables

  1. categoryGroups: An array of category group objects. Each category group contains an array of categories.
    • categoryGroup is object with the following properties:
      • id: The ID of the category group.
      • name: The name of the category group.
      • categories: An array of category objects.
        • category is an object with the following properties:
          • id: The ID of the category.
          • name: The name of the category.
  2. amount: The absolute value of the transaction amount.
  3. type: The type of transaction, either 'Income' or 'Outcome'.
  4. description: The notes or description of the transaction. This is taken from transaction.notes.
  5. payee: The name of the payee associated with the transaction. This is found by matching the payee ID in the transaction with the payee list.
  6. importedPayee: The imported payee name from the transaction. This is taken from transaction.imported_payee.
  7. date: The date of the transaction. This is taken from transaction.date.
  8. cleared: A boolean indicating if the transaction is cleared. This is taken from transaction.cleared.
  9. reconciled: A boolean indicating if the transaction is reconciled. This is taken from transaction.reconciled.

New Category Suggestions

When suggestNewCategories feature is enabled, the system will:

  1. First try to classify transactions using existing categories
  2. For transactions that can't be classified, request a new category suggestion from the LLM
  3. Check if similar categories already exist
  4. If in dry run mode (dryRun is enabled), just log the suggestions
  5. If not in dry run mode, create the new categories and assign transactions to them

This feature is particularly useful when you have transactions that don't fit your current category structure and you want the LLM to help expand your categories intelligently.

Tools Integration

The system supports various tools that can be enabled to enhance the LLM's capabilities:

  1. Enable tools by including them in the FEATURES array
  2. Provide any required API keys for the tools you want to use

Currently supported tools:

webSearch

The webSearch tool uses the ValueSerp API to search for information about merchants that the LLM might not be familiar with, providing additional context for categorization decisions.

To use this tool:

  1. Include webSearch in your FEATURES array
  2. Provide your ValueSerp API key as VALUESERP_API_KEY (required)

This is especially helpful for:

  • New or uncommon merchants
  • Merchants with ambiguous names
  • Specialized services that might be difficult to categorize without additional information

The search results are included in the prompts sent to the LLM, helping it make more accurate category assignments or suggestions.

Dry Run Mode

The dryRun feature is enabled by default. In this mode:

  • No transactions will be modified
  • No categories will be created
  • All proposed changes will be logged to console
  • System will show what would happen with real execution

To perform actual changes:

  1. Remove dryRun from your FEATURES array
  2. Ensure suggestNewCategories is enabled if you want new category creation
  3. Run the classification process

Dry run messages will show:

  • Which transactions would be categorized
  • Which rules would be applied
  • What new categories would be created
  • How many transactions would be affected by each change
Nearby in the ranking
Similar items