# Mokosh server

# 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](/docs/mokosh-server/getting-started): stand up the stack with docker compose, fill the minimum environment, sign the first admin in.
- [Configuration](/docs/mokosh-server/configuration): every environment variable the server reads, grouped by subsystem.
- [Tenancy](/docs/mokosh-server/tenancy): tenants, users, teams, roles, and how the contact plane fits in.
- [Authentication](/docs/mokosh-server/authentication): Bunyip as the identity provider, API tokens, two-factor, login approval.
- [API](/docs/mokosh-server/api): the REST surface, grouped by concern.
- [Billing](/docs/mokosh-server/billing): invoices, quotes, prepaid blocks, overdue, write-offs, Xero / QuickBooks delegation.
- [Time tracking](/docs/mokosh-server/time-tracking): entries, timesheets, work days.
- [Documents](/docs/mokosh-server/documents): invoice and quote PDFs, templates, fonts.
- [Knowledge base](/docs/mokosh-server/knowledge-base): articles, versions, comments.
- [Contacts](/docs/mokosh-server/contacts): contact-company mirror, note editing, mail audiences, contact sync.
- [Integrations](/docs/mokosh-server/integrations): Bunyip, Stripe, PayPal, Xero, QuickBooks, Google and Microsoft 365, Infisical.
- [Operations](/docs/mokosh-server/operations/overview): backups, upgrades, logs, first-run onboarding, delegated invoicing setup, Postgres security, provider migration.
- [Troubleshooting](/docs/mokosh-server/troubleshooting): five concrete failures and their fix.
