# KostCloud

> A cloud app for boarding house (kos) owners in Indonesia: rooms, tenants, payments, cash flow and reports in a separate workspace per owner, with an MCP server the owner's AI agent can use.

A kos owner needs a few answers every day: which rooms are free, who lives where, who has paid up to when, what came in and went out this month, and whose lease ends soon. KostCloud keeps those answers in one workspace per owner. Owners get it through the AgentBuff marketplace, sign in with their AgentBuff account, and can hand the same daily work to their own AI agent over MCP.

- Recording a payment is how a tenant gets a room, and a full room refuses the payment whether it comes from the panel or from an agent.
- Every MCP tool resolves the owner from the bearer token, so an agent only sees the kos of the person who issued the token.
- When marketplace access ends, the panel and the MCP endpoint freeze and the kos data stays in place.

- 14 MCP tools, scoped to one owner
- 4 report types, each as PDF and Excel
- 30 and 7 days before a lease ends, a reminder

- Role: Founder & CEO, AgentBuff
- Company: AgentBuff
- Period: Since Jul 2026
- Stack: Laravel 12, PHP 8.3, MySQL 8, Alpine.js, Tailwind CSS, Laravel MCP, Sanctum, Docker Compose
- Live app: kos.agentbuff.id (https://kos.agentbuff.id)
- Showcase on GitHub: nugrahalabib/agentbuff-kostcloud-showcase (https://github.com/nugrahalabib/agentbuff-kostcloud-showcase)

## The problem

Running a boarding house (kos) is a stream of small records: which rooms are free, who lives where, who has paid up to which month, what the building cost this month, and whose lease ends next week. Each answer is simple on its own. Together they decide whether rooms stay full and whether money arrives on time.

KostCloud began as an app built for a single boarding house. That app was shaped around one owner: tenants had their own accounts and booked rooms online, admins had more rights than the owner, and a chat assistant sat inside the panel. It could not serve a second owner.

The rebuild turned it into a service for many owners. Every table that holds kos data now carries the owner it belongs to, public reservations and tenant logins were removed, the owner got full rights in the panel, and the built-in assistant gave way to an **MCP endpoint**, so each owner can use whichever AI agent they already have.

*What changed in the rebuild*

| Before | In KostCloud |
| --- | --- |
| One boarding house per installation, locked to a single owner | Many owners on one service, each in a separate workspace |
| Tenants booked online and had their own accounts | Tenants are internal records and only get a private biodata link |
| A chat assistant built into the owner panel | An MCP server with 14 tools that any AI agent can connect to |
| Placement logic repeated in several payment paths | One allocation service used by the panel, approvals and MCP |
| Owner sign-in with Google only | Owner sign-in with AgentBuff, with access checked against the marketplace |

The rules that matter most in daily work moved into one place. A tenant is placed in a room only when a payment is recorded, an extension continues from the end of the paid period, and a full room refuses a new tenant whether the request comes from the panel or from an agent.

## Who uses it

*Roles in KostCloud*

| Who | What they do |
| --- | --- |
| Kos owner | Signs in with AgentBuff, sets up room types and rooms, records tenants and payments, reads cash flow and reports, and creates MCP tokens for an AI agent |
| Admin staff | Signs in with the email and password the owner gave them and does the daily work on the same kos; every page they open lands in the owner's audit trail |
| Tenant | Has no account; receives a private link and fills in their own biodata and documents from a phone |
| AI agent | Connects with the owner's bearer token and can read the dashboard, add rooms and tenants, record payments and pull report data for that kos only |
| AgentBuff | Signs the owner in, answers whether the owner still has access, and can create the MCP token for the owner's agent automatically |

## From marketplace to first payment

**One owner's path in KostCloud** (People and the agent work through the same services, so the rules are the same for both.)
1. Get KostCloud: From the AgentBuff marketplace, sign in with AgentBuff
2. Set up: Four-step checklist and a guided tour
3. Record tenants: A private link lets tenants complete their biodata
4. Record payment: Places the tenant and sets the paid period
5. Watch the kos: Dashboard, cash flow, notifications, audit trail
6. Hand work to an agent: The same tasks over MCP, logged as agent actions

A new owner gets a workspace on the first sign-in. The dashboard opens with a four-step checklist that ticks itself as room types, rooms, tenants and the first payment appear, and a guided tour explains each part of the screen. The tour runs once per page and can be replayed from the Panduan button.

## Inside the product

**Dashboard and rooms**
The executive dashboard shows income, pending income, expenses, the net result and a projection for next month, next to a monthly cash flow chart and room occupancy. Rooms are grouped by floor and carry a status: available, occupied or maintenance. Room types hold monthly and daily prices, capacity, facilities and photos.

*Rooms by floor with the tenant, payment state and move-in date of each room.*

**Tenants**
Tenants are records kept by the owner, not accounts. The list shows room, contact, payment state and due date, with counters for active tenants, new tenants, leases ending this week and late payers. From a tenant's page the owner creates a private link and sends it, for example over WhatsApp, so the tenant fills in their own biodata and documents. Identity documents open only for the owner and admins of that kos.

*Tenant list with room, contact, payment state and due date. Names are invented.*

*The biodata form a tenant opens from the private link.*

**Payments**
Recording a payment is how a tenant gets a room. The form fills the amount from the room price and the number of months, asks for a proof image, and on save places the tenant and sets the paid period. A second payment for the same tenant continues from the end of the first, so two months plus three months gives five. Methods are cash, bank transfer or card machine, and large proof photos are compressed in the browser before upload.

*A manual payment for a demo tenant, with the amount filled from the room price.*

*After saving: the tenant is placed, and an extension starts where the paid period ended.*

**Cash flow and reports**
The cash flow page splits income, operating expenses and capital spending for a month, with PDF and Excel export. The report generator builds financial, room status, tenant or full reports for a month or a whole year, with a preview in the browser. A daily check flags leases that end in 30 or 7 days, and notifications also collect payments, agent actions and admin activity.

*Cash flow for one month with expense analysis by category, demo figures.*

*Notifications: a lease that ends in 30 days and payments recorded by an AI agent.*

**Team and access**
The owner adds admins, switches them off and resets their passwords, and reads an audit trail of what each admin opened or changed, exportable as PDF. Each owner picks one of seven base colors and a light or dark theme, and admins inherit the owner's color.

*Team and access: demo admins and the audit trail of one admin session.*

*The same dashboard in the dark theme with the blue base color.*

## An agent that sees one kos

KostCloud has no AI inside. The owner keeps the agent they already use, and the app holds no AI keys. An agent connects to the `/mcp` endpoint with a bearer token that the owner created, and the server works out the owner from that token on every call.

*Real responses from a local run: the 14 tools, a summary, an extension and a refused placement.*

- **Read and report**: dashboard summary, rooms, room types, tenants, transactions and report data.
- **Create and update**: add rooms and tenants, change a room's status, record a payment.
- **Delete, with guards**: a room must be empty, a tenant must have moved out, a room type must be unused.
- **Same rules**: tools write through the same services as the web forms, so a full room refuses an agent too.

There is no approval queue in KostCloud, so the control sits with the owner in three places: the owner decides which agent gets a token, every agent action appears in notifications and in the audit trail **marked as an AI agent action**, and any token can be revoked from the MCP page at once.

## AgentBuff as the door

As Founder and CEO of AgentBuff, I lead the product and connected KostCloud to the AgentBuff marketplace: the **access gate**, **Sign in with AgentBuff** and the **automatic MCP connection**. Sign-in, access checks and token installation come from the marketplace, so KostCloud keeps no billing logic of its own.

**How the owner's agent gets connected**
1. Sign in with AgentBuff: OpenID Connect with PKCE; the app checks issuer, audience, expiry and nonce, and a first-time owner gets a new workspace.
2. Access gate: On later requests the app asks AgentBuff whether access is still active and caches the answer.
3. Automatic MCP token: AgentBuff proves itself with a short-lived ES256 assertion; a replayed token id is refused, and the owner's previous automatic token is revoked.
4. Installed on the agent: The new token goes to the owner's agent, which can then work on that one kos.

*When access ends, the panel and /mcp answer with a frozen state. The data stays.*

## How it is built

- Tenancy by owner: Kos data carries owner_id, and admins resolve to the owner they work for, so every query is scoped to one kos.
- One allocation service: Panel payments, approvals and the MCP tool place tenants through the same code inside one database transaction.
- Private files: Payment proofs stream from private storage and open only for the owner or admins of the same kos.
- Separate sign-in paths: Owners cannot use the password form; admin sign-in is rate limited per email and address, and failed attempts are logged.
- Reports as files: Reports are generated as PDF and as Excel, so the owner can share them or keep working in a spreadsheet.
- Simple to run: Docker Compose with the app and MySQL 8, plus a daily job that looks for leases about to end.

**At a glance**
- Product: App on the AgentBuff marketplace
- For: Boarding house owners and their admins in Indonesia
- Live since: July 2026, kos.agentbuff.id
- MCP tools: 14
- Reports: Financial, room status, tenant and full, as PDF and Excel
- Sign-in: AgentBuff for owners, email and password for admins
- Stack: Laravel 12, PHP 8.3, MySQL 8, Alpine.js, Tailwind CSS

**Run your kos from one place** KostCloud is live at kos.agentbuff.id, and the showcase on GitHub walks through every screen.

Source: https://nugrahalabib.com/work/kostcloud
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
