Payverge is a self-hostable restaurant system with AI built into real operations. Guests scan a QR code, order, split the bill and pay. Staff run the floor, the kitchen display, reservations and delivery. Owners get an AI waiter for guests, an ops assistant for the shift and a director console that proposes changes they preview and apply. Payments go through Stripe, PayPal, MercadoPago or USDC on-chain, and Argentine venues can issue ARCA (AFIP) fiscal receipts.
It is a Go/Gin + PostgreSQL 18 backend and a Next.js 15 frontend, shipped as Docker images with a one-command installer.
To try it without installing anything, use the live demo: enter a seeded restaurant as the owner, as kitchen or waiter staff, or as a guest at a table, no sign-up. Anyone can see what you change there, and it all resets every night at 03:00 UTC. To run a public demo of your own, see docs/self-hosting/public-demo.md.
Captured from a local --demo install. The venues and their
data are fictional. The AI screens show what an install with no model key
shows. The staff AI screens are stamped to say no model is connected; the
guest helper says so itself. How these were made and how to
recapture them: docs/assets/screenshots/README.md.
![]() Storefront. / is the venue page when one venue is primary. |
![]() Owner dashboard. Takings, open bills and the day's briefing. |
Guest, on a phone:
Staff and owner:
AI, on an install without a model key:
| Area | What you get |
|---|---|
| Guest ordering | QR menus per table, multi-language guest UI (21 locales), allergen and dietary info, ordering from the table |
| Bills and payments | Bill splitting (by item, equal shares, custom amounts), tips, receipts, Stripe / PayPal / MercadoPago plugins, USDC payments verified on-chain |
| Kitchen and floor | Kitchen display (KDS), table and space layout, staff roles with per-permission RBAC, shared-terminal PIN clock-in, thermal printing |
| Reservations | Public booking pages, availability, confirmation emails |
| Delivery | Delivery zones, drivers, order tracking |
| Back office | Menu management, inventory and recipes, CRM, loyalty, analytics, accounting exports |
| Fiscal | ARCA/AFIP electronic receipts for Argentina (docs/fiscal/) |
| AI | AI waiter, ops assistant, director console, menu AI (docs/ai/) |
| Self-hosting | One-command install, runtime configuration (one image for any domain), local or S3 storage, SMTP or API email, any OpenAI-compatible LLM |
The AI features ran against real service, so they are built around one rule: the model never decides a fact, a price or an action on its own. Prices come from the menu snapshot, tool calls are validated server-side, director changes are previewed and can be undone, and every AI feature has a daily budget and a no-model fallback.
- docs/ai/README.md: the surfaces, the design rule, what happens with no model configured, and the known gaps.
- Per feature: AI waiter, ops assistant, director console, menu AI.
- Cross-cutting: providers, cost and budgets, guardrails, evals.
AI is optional. Without a provider, everything else works and the AI surfaces are hidden or fall back. To turn it on, see docs/self-hosting/ai.md (OpenRouter, Ollama, vLLM or any OpenAI-compatible endpoint).
browser ──> Caddy (TLS, one origin)
├── /api/v1/*, /media/* ──> backend (Go, Gin, GORM) ──> PostgreSQL 18
└── everything else ──> frontend (Next.js 15) ──(server-side)──> backend
- docs/architecture/overview.md, then request flow, money flow, realtime (SSE), plugins and data and migrations.
- docs/adr/: the decisions behind the shape of the system.
- docs/code-tour.md: eight stops through the code that matters most, in about twenty minutes.
You need a Linux server with Docker Engine and the Compose plugin, and a domain pointing at it. Download the installer from the latest release, read it, run it:
curl -fsSLO https://github.com/stdevMac/payverge/releases/latest/download/install.sh
less install.sh
bash install.shIt asks for the domain, the admin email and whether to load demo restaurants,
writes .env with fresh secrets, starts the stack behind Caddy with a Let's
Encrypt certificate, and prints the admin password once. Everything else
(flags, upgrades, backups, restore, Cloudflare, building from source) is in
deploy/README.md.
The installer only automates deploy/docker-compose.yml.
To do it by hand, take deploy/ from a release (the
payverge-deploy-<version>.tar.gz asset, or a clone checked out at its tag;
main can be ahead of the newest release), fill in .env.example as .env,
and run docker compose up -d. See
deploy/README.md § Configuration.
Templates for Coolify, Dokploy, Render and Railway are in
deploy/platforms/. They have not been tested on
those platforms yet; see docs/self-hosting/platforms.md
for how they differ from the compose stack.
With the installer downloaded as above:
bash install.sh --domain localhost --admin-email [email protected] --demoFrom a clone of this repository, run the copy in deploy/ instead. Add
--build to build the images from your checkout rather than pull them:
./deploy/install.sh --domain localhost --admin-email [email protected] --demoCaddy serves https://localhost from its own local CA; see
deploy/README.md § Local trial for trusting it
and for alternate ports.
| URL | What it is |
|---|---|
/dashboard |
Operator sign-in and your venues. Sign in with the admin email and the password the installer printed. |
/ |
Your published venue page. With several published venues it lists them; set PRIMARY_VENUE to pin one. Until a venue is published, / sends you to /dashboard. |
/b/<slug> |
Any published venue's page. |
/t/<code> |
A table's QR code target: menu, ordering, bill and payment. |
/business/<id>/dashboard |
A venue's dashboard. |
/admin |
Platform admin. |
Every setting is an environment variable. Start with
deploy/README.md § Configuration, then the
topic pages in docs/self-hosting/:
admin and signups,
storage,
email (EMAIL_PROVIDER is log, smtp,
resend or postmark; Resend uses EMAIL_API_KEY and
RESEND_WEBHOOK_SECRET),
AI providers,
frontend runtime config,
WhatsApp.
A running instance reports its effective, non-secret configuration at
GET /api/v1/instance.
Payverge can be set up and run with help from AI agents, not only inside the product:
tools/payverge-admin-mcp: a dependency-free MCP server that gives Claude Code, Claude Desktop, Codex, Cursor or any MCP client tools to configure a restaurant and diagnose an instance. Every write previews first..claude/skills/: playbooks a coding agent follows to install, configure a restaurant, rebrand, add a locale, add a payment integration, upgrade and troubleshoot.- docs/agents/README.md: how the in-app AI, the MCP tools and the skills fit together.
Contributors working with a coding agent should read AGENTS.md (and CLAUDE.md for Claude Code).
Requirements: Docker, Go (version in backend/go.mod), Node (version in
.nvmrc).
Full stack from this checkout (development mode):
cp .env.example .env
docker compose --env-file .env up -d --buildThe frontend is on http://localhost:3000 and proxies /api/v1 and /media to
the backend on http://localhost:8080. PostgreSQL is internal to compose.
Health checks:
curl http://127.0.0.1:8080/api/v1/health/live
curl http://127.0.0.1:8080/api/v1/health/ready
curl http://127.0.0.1:3000/api/healthBackend (backend/):
make run # dev server on :8080
make quick-test # -short suite, no race detector (fast loop)
make test # -short suite with -race, as CI runs it (no Docker)
make test-docker # every test, including the Testcontainers suites (needs Docker)
make lint # golangci-lint
make fmt # gofmt
make eval-offline # offline AI evaluation suitesFrontend (frontend/):
npm install
npm run dev # :3000
npm run lint
npm run typecheck
npm run test # Jest
npm run buildDocs are a plain Markdown tree under docs/ with no build step; start at
docs/README.md. For the repository conventions (money wire
contract, migrations, performance gate, hygiene rules) read
AGENTS.md and docs/ONBOARDING.md.
Payverge was built and run in production for real restaurants in 2025-2026. It is now community-maintained, with no SLA and no hosted service. Fixes and releases happen when maintainers have time. Plan your deployment accordingly: you own its backups, upgrades and security.
Questions and help: GitHub Discussions. Bugs go to issues; .github/SUPPORT.md says what to include.
Apache-2.0. See NOTICE and docs/licensing/ for third-party licences.
The Payverge code in the default build links no GPL module
(make check-gpl-free checks this). The published container images are built
on upstream base images (Alpine-based node for the frontend, distroless
Debian for the backend) whose operating-system packages keep their own
licences, some of them GPL; their source is available from the respective
distributions. The optional
WhatsApp channel is a separate build (-tags whatsapp) that links a
GPL-licensed library, so that binary is GPL-3.0-encumbered and you are
responsible for compliance; see docs/self-hosting/whatsapp.md
and ADR 0008.
The images also link two libraries licensed under LGPL-3.0-or-later: the
backend uses go-ethereum's library packages (none of its GPL-3.0 cmd/
packages), and the frontend's image optimisation loads the prebuilt libvips
libraries from sharp-libvips. NOTICE gives their source locations
and how to substitute your own build; the licence texts are in
LICENSES/.
"Payverge" and the logo are trademarks; the code licence does not grant them. Forks should rebrand. See TRADEMARKS.md.
Report vulnerabilities privately as described in .github/SECURITY.md, which also lists the known limitations to account for when you deploy.
See .github/CONTRIBUTING.md, the code of conduct and support.















