Skip to main content

What is OpenKSeF?

Beta

OpenKSeF is in beta. The project is actively developed -- there may be changes in the API, database structure, and configuration. Use in test environments or with full awareness of the current state of the project.

OpenKSeF is an open-source system for synchronizing and browsing invoices from the Polish National e-Invoice System (KSeF). It enables automatic invoice downloading, browsing through a web portal or mobile app, and managing multiple companies from a single instance.

Who is it for?

OpenKSeF is designed for:

  • Developers and administrators -- who want to run their own instance and have full control over invoice data
  • Accountants and business owners -- looking for a simple, free tool to browse invoices from KSeF
  • IT teams in companies -- that need a self-hosted solution compliant with Polish regulations

What can OpenKSeF do?

FeatureDescription
Invoice synchronizationAutomatic background downloading of invoices from KSeF
Web portalReact SPA with dashboard, invoice list, company management
Mobile app.NET MAUI for Android and iOS with push notifications
Multi-tenantMultiple companies on a single instance, per-user data isolation
Push notificationsSignalR (local) + relay/Firebase (remote) + email
SecurityKeycloak (OIDC), KSeF token encryption (AES-256), HTTPS
Self-hostingDocker Compose -- one command and you're ready

Architecture

┌─────────────────────────────────────────────────┐
│ Docker Compose │
│ │
│ ┌──────────┐ ┌──────────┐ ┌───────────────┐ │
│ │ API │ │ Worker │ │ Portal (React)│ │
│ │ (.NET 8) │ │ (.NET 8) │ │ │ │
│ └────┬─────┘ └────┬─────┘ └───────────────┘ │
│ │ │ │
│ ┌────┴──────────────┴────┐ ┌───────────────┐ │
│ │ PostgreSQL │ │ Keycloak │ │
│ │ │ │ (OIDC) │ │
│ └────────────────────────┘ └───────────────┘ │
│ │
│ ┌──────────────────────────────────────────┐ │
│ │ nginx Gateway (:8080) │ │
│ │ / portal /api/ API /auth/ Keycloak │ │
│ └──────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘


┌───────────────┐ ┌──────────────┐
│ Mobile app │ │ KSeF │
│ (MAUI) │ │ (MF API) │
└───────────────┘ └──────────────┘

Web portal

Portal dashboard

Invoice list

Invoice detail

Payment data and QR

Mobile app

Invoice listInvoice detailsPayment QR code
Invoice listInvoice detailsPayment QR

Next steps