Swiss accounting software
  • PHP 74.6%
  • Vue 15.2%
  • Python 4.4%
  • JavaScript 3.4%
  • Shell 1.6%
  • Other 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexandre Bianchi baa31f0326
Merge pull request #196 from Scanix/maintainers/qualify-preservation-ancestry-20261201
Record the v3.13 RC.14 source ancestry for promotion
2026-12-01 07:03:16 +01:00
.githooks fix(hooks): replace gitlab/main drift guard with origin/main file-diff check 2026-05-17 19:14:44 +02:00
.github Require the released preservation version in the feature release ancestry 2026-12-01 01:25:30 +01:00
.specify feat: establish CE boundary and plugin extensions 2026-09-03 14:03:13 +02:00
.vscode release: prepare Gaeld CE 3.6.0 2026-08-20 19:10:22 +02:00
app Carry the verified maintenance fixes into the preservation candidate 2026-12-01 01:24:18 +01:00
bootstrap Port company archive packages and recovery coverage to v3.12 qualification 2026-11-23 17:33:29 +01:00
config Port preservation proof and independent verification into v3.13 qualification 2026-11-23 17:34:52 +01:00
contract Preserve historical unitless archives and verify localized invoice units 2026-12-01 00:44:18 +01:00
database Merge commit '1453999c' into qual/kevin-172-187-20261201 2026-12-01 00:49:30 +01:00
docker Carry forward the managed PostgreSQL update for preservation 2026-12-01 00:56:41 +01:00
docs Carry the verified maintenance fixes into the preservation candidate 2026-12-01 01:24:18 +01:00
lang Merge commit '1453999c' into qual/kevin-172-187-20261201 2026-12-01 00:49:30 +01:00
plugins/example-plugin feat: establish CE boundary and plugin extensions 2026-09-03 14:03:13 +02:00
public fix: reset stale sessions and retire service worker 2026-09-04 13:13:13 +02:00
resources Merge commit '1453999c' into qual/kevin-172-187-20261201 2026-12-01 00:49:30 +01:00
routes Merge journal attachment preservation into the v3.13 candidate 2026-11-25 02:48:42 +01:00
scripts Require the released preservation version in the feature release ancestry 2026-12-01 01:25:30 +01:00
specs Keep the regular IBAN for bank transfers and pin the account on issue 2026-11-30 17:36:57 +01:00
storage chore(security): keep gitlab-ci off public mirror; untrack local test PDFs 2026-05-05 01:41:41 +02:00
tests Require the released preservation version in the feature release ancestry 2026-12-01 01:25:30 +01:00
.dockerignore Port preservation proof and independent verification into v3.13 qualification 2026-11-23 17:34:52 +01:00
.env.example feat: add explicit marketing consent and safe conversion runtime 2026-11-16 14:25:49 +01:00
.env.production.example feat: add shared read-only MCP server and Team integration contract 2026-11-12 22:27:44 +00:00
.gitattributes fix: prepare clean CE archives and refresh release dependencies 2026-10-20 14:08:45 +02:00
.gitignore Port preservation proof and independent verification into v3.13 qualification 2026-11-23 17:34:52 +01:00
.gitleaks.toml Recognize enrolled public fingerprints in signed release receipts 2026-12-01 03:24:02 +01:00
.gitleaksignore Recognize verified public signing fingerprints in managed receipts 2026-12-01 00:26:38 +01:00
.nvmrc chore: migrate to pnpm and upgrade Node.js to 24 2026-04-02 15:15:52 +02:00
AGENTS.md fix(mcp): retain legacy client negotiation on the read-only endpoint 2026-11-23 22:00:59 +01:00
artisan Initial commit: Gäld accounting application (Laravel 12 + Inertia + Vue 3) 2026-03-16 17:10:09 +01:00
boost.json chore: add ai tool 2026-05-07 14:22:15 +02:00
CHANGELOG.md Require the released preservation version in the feature release ancestry 2026-12-01 01:25:30 +01:00
CODE_OF_CONDUCT.md chore: GitHub community files, CHANGELOG, CONTRIBUTING, SECURITY, composer update, nginx config 2026-04-01 17:40:08 +02:00
composer.json feat(invoicing): optional letter template for invoice PDFs; spell out country and payment terms 2026-11-30 10:44:33 +01:00
composer.lock Merge branch 'refs/heads/maintainers/pr167-pdf-pagination' into maintainers/pr168-letter-template 2026-12-01 00:40:15 +01:00
CONTRIBUTING.md feat: establish CE boundary and plugin extensions 2026-09-03 14:03:13 +02:00
deploy.php.example feat: establish CE boundary and plugin extensions 2026-09-03 14:03:13 +02:00
docker-compose.yml fix(docker): add build context to worker service 2026-04-15 13:20:49 +02:00
gaeld Prepare release notes for the security-patched managed installer 2026-11-23 18:43:01 +01:00
INSTALL.md release: finalize v3.9.0 metadata 2026-11-15 20:28:27 +01:00
LICENSE chore(license): relicense community edition under AGPL 2026-04-09 09:11:52 +02:00
package.json deps(npm): bump the npm-compatible group with 4 updates 2026-11-30 20:35:34 +00:00
phpstan-baseline.neon Refresh compatible Composer dependencies and correct accounting types 2026-11-23 15:53:36 +01:00
phpstan.neon Port preservation proof and independent verification into v3.13 qualification 2026-11-23 17:34:52 +01:00
phpunit.ee.xml release: prepare v3.9.0 MCP and accounting fixes 2026-11-15 20:11:30 +01:00
phpunit.xml release: prepare v3.9.0 MCP and accounting fixes 2026-11-15 20:11:30 +01:00
pint.json feat: OCR receipt scanning, org invitations & member management, cookie consent, quick-create contacts 2026-03-25 12:00:19 +01:00
pnpm-lock.yaml Update Sentry build dependency glob to 14.0.6 2026-12-01 04:05:56 +01:00
pnpm-workspace.yaml Update Sentry build dependency glob to 14.0.6 2026-12-01 04:05:56 +01:00
README.md Reconcile preservation qualification with the tested develop upgrades 2026-11-24 05:50:28 +01:00
RELEASE.md Prepare the v3.12 archive package history and customer upgrade notes 2026-11-23 18:43:34 +01:00
SECURITY.md docs(release): align v3.0.0 docs and CI to develop branch and sail commands 2026-05-05 01:23:59 +02:00
tailwind.config.js Initial commit: Gäld accounting application (Laravel 12 + Inertia + Vue 3) 2026-03-16 17:10:09 +01:00
vite.config.js Port managed CE installer and recovery tools onto the current public line 2026-11-23 17:30:31 +01:00

Gäld

CI License: AGPL v3 PHP 8.4+ Laravel 13

Open-source accounting for Swiss freelancers and small businesses.

Proper double-entry bookkeeping, Swiss QR-Bill invoicing, VAT reporting, and bank reconciliation — built with Laravel and Vue, AGPL-3.0-or-later licensed, fully self-hostable.

Download the current Community Edition and its signed artifacts from GitHub Releases. Before upgrading, read the versioned changelog and release runbook.

Website · Documentation · Hosted version · Release runbook

This repository contains the public Community Edition (CE). The hosted SaaS and Enterprise Edition (EE) plugin are maintained in private repositories and are not required for self-hosted CE installations. The CE is a complete accounting product under AGPL-3.0-or-later; no SaaS subscription or private registry access is required to install, operate, export, or contribute to it.


What it does

Gäld covers the full accounting workflow for a small Swiss business:

  • Double-entry accounting — journal, ledger, and trial balance with strict debit/credit balance enforcement
  • Invoicing — professional PDFs with Swiss QR-Bill payment slip (ready to print and send)
  • Expense tracking — log expenses, attach receipts, categorise by supplier
  • Swiss VAT (MWST) — correct rates preconfigured, VAT report ready for the tax authority
  • Bank reconciliation — import CAMT.053 files from your bank, match transactions against invoices and expenses
  • Contacts — shared customer and supplier directory across all modules
  • Financial reports — profit & loss, balance sheet, trial balance
  • REST API — integrate journal entries, contacts, invoices, expenses, and CAMT.053 imports from external applications
  • Multi-language — English, French, German, Italian (EN / FR / DE / IT)
  • Plugin system — extend functionality without touching the core codebase

Getting started

The v3.13 preservation candidate adds PDF/A-2b validation, detached CMS signatures, RFC 3161 timestamps, protected storage, independent verification and renewal. The profile is in qualification. Provider acceptance, operational ownership and accounting/legal review remain open. Preservation guide

Archive fiscal-year records and original supporting documents by company. Each dated package includes an inventory with hashes and can be exported for recovery. Archive package operating guide

Install self-hosted CE on Linux Docker, Apple Silicon Docker or a dedicated Ubuntu 24.04 LTS ARM64 host using systemd. Existing CE Sail installations on v3.8.28, v3.9.0 and v3.10.0 can adopt the managed Docker setup. Managed installation and recovery

Sail development environment

Install Docker Engine with Docker Compose v2 and start Docker Desktop or the Docker service before running setup. The command checks Docker immediately and prints an actionable error if the selected Docker context is unavailable; it does not install or launch Docker Desktop for you.

On Linux, your user must be allowed to access Docker. If docker info reports permission denied, run sudo usermod -aG docker "$USER", start a new login session (or run newgrp docker), and verify with docker info.

./gaeld setup

The setup script builds the Docker image, starts all services (PostgreSQL, Redis, Meilisearch, Mailpit), waits for health checks, and runs the interactive installer — with progress indicators at each step.

Add --demo for a non-interactive setup with sample data:

./gaeld setup --demo

Visit http://localhost:8080. The install wizard walks you through creating your organisation and admin account.

Other useful commands:

./gaeld artisan migrate    # Run migrations
./gaeld doctor             # Diagnose configuration and service health
./gaeld logs               # Tail application logs
./gaeld worker             # Tail queue worker logs
./gaeld status             # Show container status
./gaeld down               # Stop everything

For manual installation, upgrades, reverse-proxy configuration, and backup requirements for managed CE, use the installation guide. INSTALL.md describes the existing source and development workflows.


Tech stack

Layer Technology
Backend Laravel 13
Runtime PHP 8.4+, Node.js 22+, pnpm 11
Frontend Inertia.js + Vue 3
Database PostgreSQL
Cache / Queue Redis
Docs Docusaurus

Architecture

The codebase follows a domain-driven structure. Each business domain is self-contained under app/Domains/:

Accounting/     — chart of accounts, journal entries, ledger
Banking/        — bank accounts, CAMT import, transaction reconciliation
Contacts/       — customers and suppliers
Expenses/       — expense recording and reporting
Invoicing/      — invoices, payments, QR-Bill generation
Organizations/  — multi-org support, tenant isolation
Reporting/      — read-only financial reports (P&L, balance sheet, cash flow)
Users/          — authentication, profiles

All ledger mutations go through LedgerService, which enforces double-entry integrity. The Reporting domain is a read-only projection — it never writes to the ledger.


Configuration

Optional features are toggled in .env:

FEATURE_BANK_SYNC=false
FEATURE_AUTO_RECONCILIATION=false
FEATURE_AUTOMATION=false
FEATURE_MULTI_CURRENCY=false
FEATURE_API_ACCESS=true

The Community Edition includes a versioned REST API at /api/v1. It supports organization-scoped bearer tokens, account and journal-entry operations, contacts, invoice and expense workflows, and CAMT.053 bank imports. See the public API documentation for request and response examples.

API tokens use the canonical abilities listed by GET /api/v1/meta/abilities, such as accounting.view, invoicing.create, and banking.import. The wildcard * grants all mapped API operations; omitting abilities or sending an empty array has the same effect. Older resource names such as accounts:read remain accepted and are normalized to their canonical permissions. Token expiration accepts 1 to 365 days and is stored as an exact expiration timestamp. Creating or revoking personal tokens through the REST API requires an unrestricted (*) token. Restricted tokens cannot mint broader credentials or revoke other credentials; token management through the authenticated web settings remains available.

The shared CE/EE MCP server is available at /mcp when FEATURE_MCP_ACCESS=true and FEATURE_API_ACCESS=true. It is disabled by default. In SaaS mode, the organization must have both the dedicated mcp_access entitlement and API access. MCP is included in Team and in an unexpired Team trial, not Cloud Free, Solo or a Solo trial. A global flag cannot bypass the subscription check. The same server remains available in self-hosted CE without an EE subscription. Bearer-token clients can use the 2026-07-28 discovery handshake or initialize with 2025-11-25, 2025-06-18, 2025-03-26, or 2024-11-05 on the same HTTP endpoint. OAuth onboarding is separate work.

Every request checks the current organization and subscription again, including requests in an existing MCP session. A scheduled cancellation retains access until the paid end date; expiry, an immediate cancellation, or an effective downgrade removes hosted MCP access. Re-upgrading to Team restores access for otherwise valid tokens. Downgrades do not delete tokens, invoices, expenses or reports, and do not change the established data-export policy. Operators must deploy the EE plan migration before enabling the two installation flags. See the public MCP contract for the edition boundary.

Create a personal read-only token for an organization owner with:

vendor/bin/sail artisan gaeld:token ORGANIZATION_UUID --mcp --name="AI assistant"

The token defaults to invoicing.view and expenses.view, expires after 30 days (also subject to Sanctum's configured global expiration), and is shown only once. Use --abilities=expenses.view-own to restrict it to the owner's own expenses, or --expires-in-days=7 for a shorter explicit lifetime. Existing personal API tokens with only these read abilities are also accepted. Organization tokens, wildcard tokens, and tokens with write abilities are rejected.

Configure the client to use the installation's /mcp HTTP endpoint with Authorization: Bearer YOUR_TOKEN. The tools are list_invoices, get_invoice, list_expenses, get_expense, get_profit_and_loss, get_balance_sheet, and get_aging_report. Tools enforce both token scopes and the user's current organization permissions; removing membership or revoking the token removes access. Lists accept date ranges and document filters, use pages of at most 50 records, and do not calculate global monetary totals. Amounts are decimal strings with a currency on each document. Files and receipt paths are not returned. Requested accounting data is transmitted to the chosen AI provider; its data handling policy applies.

Reports require the explicit token scope reporting.view and the user's reporting.view and accounting.view permissions. Existing tokens and the default --mcp scopes are unchanged. For example, create a report token with:

vendor/bin/sail artisan gaeld:token ORGANIZATION_UUID --mcp --name="Reports" --abilities=reporting.view --abilities=invoicing.view --abilities=expenses.view

Profit and loss accepts inclusive from/to dates (at most two years) or an authorized fiscal_year_id. The balance sheet accepts as_of_date or an authorized fiscal_year_id and includes the current fiscal year result. Both use posted ledger entries in the organization's base currency and share the application's report calculations. Monetary totals remain decimal strings.

Aging accepts type (receivables or payables), as_of_date, optional currency (defaults to the organization's currency), page, and per_page. Receivables additionally require invoicing.view; payables require full expenses.view in both the token and the user's permissions. Own-expense access never grants organization-wide payable totals. The selected currency is filtered before calculating totals; no currencies are combined or converted. Totals cover all matching items, while details are paginated at 50 items at most. Receivables deduct recorded payments; payables include VAT. Aging uses current document statuses and recorded balances, with document dates filtered at the cutoff: it is not a historical reconstruction. Expense dates are used to age payables because expenses have no contractual due date. Responses identify these rules and the service cache lifetime of up to 30 minutes.


Plugin system

Drop a plugin into /plugins/. A plugin is a standard Laravel service provider with a manifest:

plugins/my-plugin/
├── plugin.json           — name, version, provider class
├── src/
│   └── MyServiceProvider.php
├── routes/web.php        — optional
└── migrations/           — optional

Plugins are auto-discovered on boot. See plugins/example-plugin/ for a minimal working example.


Contributing

Issues and pull requests are welcome. Please read CONTRIBUTING.md before submitting a PR.

./vendor/bin/sail artisan test                      # run the test suite
./vendor/bin/sail bin pint                         # fix code style
./vendor/bin/sail bin phpstan analyse --memory-limit=2G

Please keep pull requests focused and include tests for new behaviour.


License

AGPL-3.0-or-later — see LICENSE.