Accounted
Open-source Swedish accounting software for sole traders (enskild firma) and limited companies (aktiebolag). Double-entry bookkeeping that complies with Swedish accounting law, built to be operated by you or by your AI agent.

Use Accounted · Self-host · Documentation · What's new · Contribute
Why Accounted?
Compliant by construction. Accounted implements double-entry bookkeeping under Swedish accounting law (Bokföringslagen). Voucher immutability, sequential voucher numbering, period locks, and 7-year document retention are enforced by database triggers, not by convention. See the architecture guide for the engine, enforcement, and audited correction paths.
Agent-native. The full bookkeeping engine is exposed as 150+ MCP (Model Context Protocol) tools with scoped API keys or OAuth, so an AI agent can do the books in Accounted: categorize transactions, draft vouchers, reconcile periods, and prepare declarations. Posting is staged for human approval, so the agent proposes and you decide.
Yours to run. AGPL-3.0 licensed and fully self-hostable with Docker and Supabase. Use the hosted version at app.accounted.se or run your own.
Features
- Double-entry bookkeeping: BAS 2026 chart of accounts, draft/commit workflow, sequential voucher numbering
- Invoicing: Create, send, and track invoices with mixed VAT rates and PDF generation
- Bank reconciliation: PSD2 bank feeds, 4-pass automatic matching
- VAT declaration: SKV 4700 form mapping, per-rate breakdown, EU/export handling
- Tax reports: NE-bilaga, INK2, SRU export for Skatteverket
- Payroll: Salary runs, payslips, and AGI (arbetsgivardeklaration) employer declarations
- Supplier invoices: Registration, payment tracking, input VAT deduction
- Supplier payment files (betalfil): Batch supplier payments into ISO 20022 pain.001 files for upload to the bank, rendered byte-identical on every download
- E-invoicing (Peppol): Send and receive Peppol BIS Billing 3 e-invoices through Qvalia, a certified Swedish Access Point; received documents land in the supplier invoice inbox
- Skattekonto: Tax account transactions synced from Skatteverket or imported from statement files, linked to the booked 1630 movements for reconciliation
- Document archive: SHA-256 integrity, 7-year retention enforcement, full archive ZIP export
- Inkorg: One inbox for receipts, supplier invoices and emailed documents; an invoice and its receipt become one purchase, booked in one step
- Digital mailboxes: Kivra and Billo: read incoming mail into the Inkorg, send invoices and payslips
- Document signing: Send a PDF for signing with BankID; every signature gets a signeringsbevis
- SIE import/export: Standard Swedish accounting interchange format
- Agent access (MCP): 150+ bookkeeping tools over the Model Context Protocol, with scoped API keys and staged approvals; connects to Claude, ChatGPT, Grok, Gemini, Microsoft Copilot Studio and Cursor over OAuth 2.1
- Claude connector and plugin: Connect Claude.ai or Claude Code over OAuth 2.1 and install approval-gated workflow skills (
/accounted:bookkeep, /accounted:vat, /accounted:year-end, ...) from the Accounted plugin; the same plugin installs in Codex and Cursor
- Command line:
npm install -g accounted runs every tool from a terminal, a script or a coding agent's shell, with the same permissions and staged approvals
- Extension system: Opt-in plugins for AI document extraction, bank sync, email, calendar, and more
Agent skills
Accounted's workflows and its Swedish accounting knowledge ship as Agent Skills: folders with a SKILL.md that Claude Code, Codex, Cursor, OpenClaw and other agents load when the task calls for them. There are three sets.
Bookkeeping flows
The Accounted plugin bundles the MCP connection with these flows. Each one works from the company's live data and stages every write for your approval. They need an Accounted account, hosted or self-hosted; the sign-in screen creates one.