Skip to main content

AI Agent Integration

lim is designed from the ground up for AI agents. While it has a CLI and web interface for humans, the primary consumers of lim’s API are AI agents that autonomously handle bookkeeping.

The Vision

Today, a human bookkeeper:
  1. Downloads bank statements
  2. Looks at each transaction
  3. Decides the correct account classification
  4. Types the journal entry into accounting software
  5. Repeats 200-500 times per month
With lim, an AI agent:
  1. Receives bank transactions automatically
  2. Classifies each transaction using the judgment engine
  3. Creates journal entries via MCP tools or REST API
  4. Learns from corrections to improve over time
  5. Handles 95%+ of transactions without human input
The goal: bookkeeping that runs itself. Humans review exceptions and make strategic decisions. The AI handles everything else.

Three Integration Paths

MCP Server

Native Model Context Protocol server. Any MCP-compatible AI agent can read financial data and create entries.

Claude Code Skills

Register all 29 lim command groups as Claude Code skills for natural terminal-based accounting.

REST API

Full REST API for custom integrations, webhooks, and programmatic access.

How Agents Interact with lim

Reading Financial Data

Agents need context to make decisions. lim provides read access to:

Creating Entries

Agents create journal entries through:

The Agent Workflow

A typical AI agent session looks like this:

Security Model

AI agents authenticate the same way as human users:
  • OAuth tokens via WorkOS for interactive agents (Claude Code)
  • API keys for automated agents (cron jobs, webhooks)
All actions are audit-logged with:
  • created_by_type: "agent" or "user"
  • The specific agent/user ID
  • Timestamp and source event
AI agents can create journal entries but cannot close fiscal periods, delete companies, or modify authentication settings. These actions require human authorization.

Getting Started

The fastest way to start is with the MCP server:
This registers lim as an MCP server in your Claude Code configuration. From there, Claude can read your financial data and create journal entries through natural conversation. See the MCP Server guide for detailed setup instructions.