Mokosh server
Mokosh server is a Professional Services Automation (PSA) platform for managed service providers. It is the REST API and persistence layer behind the SPA your technicians and clients use: tenants and users, teams and roles, tickets and time, contacts and companies, invoices and quotes, knowledge base, integrations, and the accounting delegation that keeps books in Xero or QuickBooks.
Who it is for
- MSP operators standing up a self-hosted instance or running a hosted one, who need to configure the stack, invite the first admin, and keep it healthy.
- MSP admins inside a tenant, who set up companies, users, teams, billing rules, templates, and feature switches.
- Technicians who work tickets, log time, write knowledge base articles, and handle contacts and assets.
- Clients who reach the system through the customer portal to file tickets, approve quotes, pay invoices, and read articles shared with them.
- Developers integrating against the REST API from an in-house tool or a vertical automation.
When NOT to use it
- It is not a general CRM. The contact plane assumes an MSP’s working relationship with a client’s staff; it does not model a marketing lead funnel.
- It is not an IT helpdesk. Tickets are tenant-scoped and assume contracts, SLAs, assets and billing rules behind them; a cheap ticket queue is cheaper elsewhere.
- It does not replace Xero or QuickBooks. It owns invoices on the Mokosh side and can hand them off to either; it does not post journal entries or run GL reports.
How this documentation is organized
- Getting started: stand up the stack with docker compose, fill the minimum environment, sign the first admin in.
- Configuration: every environment variable the server reads, grouped by subsystem.
- Tenancy: tenants, users, teams, roles, and how the contact plane fits in.
- Authentication: Bunyip as the identity provider, API tokens, two-factor, login approval.
- API: the REST surface, grouped by concern.
- Billing: invoices, quotes, prepaid blocks, overdue, write-offs, Xero / QuickBooks delegation.
- Time tracking: entries, timesheets, work days.
- Documents: invoice and quote PDFs, templates, fonts.
- Knowledge base: articles, versions, comments.
- Contacts: contact-company mirror, note editing, mail audiences, contact sync.
- Integrations: Bunyip, Stripe, PayPal, Xero, QuickBooks, Google and Microsoft 365, Infisical.
- Operations: backups, upgrades, logs, first-run onboarding, delegated invoicing setup, Postgres security, provider migration.
- Troubleshooting: five concrete failures and their fix.
In this section
- APIEvery route lives under /api/v1. The server is a REST API: JSON in, JSON out, standard HTTP status codes, no RPC. Authenticate with a Bearer token on every…
- AuthenticationMokosh authenticates callers through three parallel mechanisms, each with its own credential type, its own bearer shape, and its own gate. A caller lands in…
- BillingMokosh owns invoices, quotes, payments, credit notes, statements, tax rates, prepaid blocks, and the hooks into Xero and QuickBooks that let it hand issuing…
- Binaries and operator subcommandsThe crate builds two binaries, and one of them doubles as an operator CLI.
- ConfigurationEvery variable the server reads at boot, grouped by subsystem. For an exhaustive variable-by-variable table with the release that added each key and the…
- ContactsA contact is a person at a client’s company. Contacts hold the MSP’s working relationship with the client: who to email about an incident, who approves a…
- DocumentsThe PDFs Mokosh renders (invoices, credit notes, statements, quotes) are the artefacts a client keeps. The server treats them accordingly: identity frozen at…
- Feature togglesPMS-1414, ported from BUNYIP-840. Every major feature ships behind an on/off switch: off in production, on in staging, flipped from an admin surface with no…
- Getting startedThis page is the shortest path from “nothing” to “first admin signed in and clicking around”. It covers a production-style deployment running the published…
- IntegrationsMokosh connects to external systems through a shared integrations catalog. Each integration has its own connect flow, its own credentials, and its own list of…
- Knowledge baseThe knowledge base holds articles the MSP writes once and reads often: how-to guides, runbooks, client-specific documentation, boilerplate responses. Articles…
- Operations
- TenancyEvery row Mokosh stores belongs to a tenant. A tenant is the MSP’s own workspace (the MSP itself in a self-hosted single-tenant deployment, each MSP’s…
- Time trackingTime tracking separates client work from the MSP’s own time, pins a work day to the technician’s own timezone, and (when the Timesheets feature is on) enforces…
- TroubleshootingFive concrete failures operators and admins actually hit, with the underlying cause and the fix.