# FreeSaaS

> Open-source, self-hosted business operating system that AI agents install, configure and operate: CRM, booking, schedule, finance, warehouse, documents, audio quality control, storefront. Plain PHP and MySQL, runs on ordinary hosting; AGPL-3.0-or-later with an optional commercial license.

## Contacts

- Website: https://en.freesaas.ru

## Pages

- [Modules](https://en.freesaas.ru/modules/): live catalog with maturity, dependencies and docs
- [Module catalog (JSON)](https://en.freesaas.ru/catalog.json): the same catalog for programs
- [Solutions](https://en.freesaas.ru/solutions/): detailed use cases: clinics, spa, therms, personal instance
- [One day with FreeSaaS](https://en.freesaas.ru/day/): a comic in seven issues: a working week of a clinic and thermal baths as seen by the IT guy, the director, the front desk, the doctor, a client, the sales manager and the site manager — which modules do what
- [Live demo](https://en.freesaas.ru/demo/): read-only stands with sample data
- [Start with AI](https://en.freesaas.ru/start/ai/): ready prompts for an installing agent
- [Sitemap](https://en.freesaas.ru/sitemap.xml)

## What is inside

- 75 product modules besides the core: 45 release, 11 beta, 19 alpha. Each module is switched on separately.
- **Clients** (`clients`, `crm`, `bonuses`, `certificates`, `contracts`): Client and patient cards, deals and pipelines, loyalty, certificates and contracts.
- **Booking** (`booking`, `orders`, `client_mcp`): Free slots and advance booking from the site, the admin and the client's own AI agent.
- **Schedule** (`calendar`, `workweeks`): Visit calendar and staff day shifts.
- **Team** (`vacations`, `rates`, `procents`, `staff_reports`): Leave, specialist rates and skills, accruals and quality reports.
- **Finance** (`ledger`, `finance`, `funds`, `payments`, `recons`, `remittances`, `acquiring`): Accounts, cash flow, balance/P&L reports, funds, reconciliations, staff settlements and online storefront payments.
- **Banks** (`banks`): Tochka, Alfa, T-Bank, Sber: statements flow into cash movements automatically.
- **Warehouse** (`stocks`, `stickers`, `catalog`, `norms`, `units`): Warehouses, leftovers, receipt/write-off acts, catalog and per-service norms.
- **Procurement** (`suppliers`): Supplier directory for warehouse and purchasing flows.
- **Procedures** (`procedures`, `cabinets`, `tables`, `laundry`, `terminals`, `likespa`): Procedure types and journal, rooms, tables, linen, terminals and the spa instance pack.
- **Documents** (`docs`, `medcard_audio`): Consents, contracts, receipts and medical cards on one engine: template versions, print, QR archive; visit-sheet fill from voice via the staff bot.
- **Audio analytics** (`audio`, `audio_dicts`, `audio_pipeline`, `audio_reports`, `asr`, `audio_llm`, `audio_script_coach`, `audio_phrases`): Conversation recordings, speech recognition, versioned scripts, AI studies and moderation.
- **Polls and feedback** (`polls`, `poll_invites`, `poll_speech`): Post-visit polls, invites and oral feedback captured from conversations.
- **Reports** (`bi`): BI constructor: report families, legend, export and share links.
- **Sites** (`sites`, `client_portal`, `courses`): Storefront and CMS: multiple domains, SEO, articles, themes, shop, client cabinet and courses.
- **Bots & AI** (`bots`, `assistant`, `assistant_groups`, `llm`): Telegram and MAX, built-in assistant, AI in work chats with manager approval, LLM profiles.
- **Integrations** (`amocrm`, `bitrix`, `yclients`, `clientics`, `gcal`): Run alongside familiar systems: amoCRM, Bitrix24, YCLIENTS, Klientiks, Google Calendar.
- **Video analytics** (`video`, `video_label`): Cameras by post, detection, alerts and labeling for model training.
- **Personal** (`wellness`, `liquid_assets`): For a separate personal instance: food and health, personal assets and investments.
- **Platform** (`backups`, `updates`, `comments`, `demo`): Backups and restore, updates, discussions and demo stands.

## Three agent surfaces

- Platform (installer, admin): CLI `php bin/freesaas.php` and HTTPS `/agent/*` with the `X-FreeSaaS-Agent-Token` header — install, modules, migrations, health, repair, updates, storefront themes. https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/remote-api.md
- Staff (inside the business): MCP server `/llm/mcp` with OAuth, or session JSON on the same routes as the UI — clients, booking, finance and the rest, within the permissions of the signed-in employee. https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/connect-mcp.md
- Clients of the business: public MCP `/mcp` on each storefront domain — services, free slots, booking, own bookings. Off by default for every domain. https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/client-mcp.md
- How to pick one: https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/agent-surfaces.md

## Demo stands

- https://demoru.freesaas.ru — Russian stand
- https://demoen.freesaas.ru — English stand
- Stands are read-only tours of the interface; the assistant, LLM and MCP are switched off there. To try the agent layer, install your own instance.

## Start here (humans and agents)

- [GitHub](https://github.com/FreeSaaSProject/freesaas): source code, issues, releases
- [AGENTS.md](https://github.com/FreeSaaSProject/freesaas/blob/main/AGENTS.md): rules for coding agents and the module list
- [QUICKSTART](https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/QUICKSTART.md): shortest path from zero to a working instance
- [install.md](https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agents/install.md): first install by CLI or `POST /agent/bootstrap`
- [Agent Skills](https://github.com/FreeSaaSProject/freesaas/tree/main/.agents/skills): ready skills: fit check, deploy, module configuration
- [agent-native-audit.md](https://github.com/FreeSaaSProject/freesaas/blob/main/docs/agent-native-audit.md): what an agent can and cannot do yet, with numbers

## License

- AGPL-3.0-or-later; a commercial license is available for closed products. https://github.com/FreeSaaSProject/freesaas/blob/main/LICENSE · https://github.com/FreeSaaSProject/freesaas/blob/main/COMMERCIAL-LICENSE.md
