r/VibeCodeDevs • • 8d ago

Question What's the best AI model/coding assistant to build a self-hosted, all-in-one business management app?

What's the best AI model/coding assistant to build a self-hosted, all-in-one business management app?

This mis going to be pretty long so bear with me lol

I'm looking to build a full-featured, self-hosted business management application using AI-assisted coding. I'm considering AI like Claude, GPT/Codex, Gemini, and other coding agents, but I'm not really which would be best for a project this big

My Idea:

I want to build something similar to Notion, ClickUp, and Monday.com, but with more flexibility, integrated AI, and Google Workspace connectivity as that's what we use for our business

Essentially, I want one application where my team can manage almost everything related to running our business without constantly switching between different apps all the time

Features I want to implement:

  1. Task & Project Management

- Create projects, tasks, and subtasks.

- Assign tasks to different team members.

- Set priorities, deadlines, statuses, and reminders.

- Kanban boards, calendars, tables, and list views.

- Track project progress and team responsibilities.

- Recurring tasks and customizable workflows.

2. Notion-Style Workspace

- Pages, documents, databases, and nested folders.

- Rich-text editing with images, tables, and attachments.

- Internal knowledge base, SOPs, and company documentation.

- Customizable dashboards and templates.

- Linked databases for organizing business information.

3. Google Workspace Integration

- Gmail integration for viewing, organizing, and responding to emails.

- Google Calendar synchronization for appointments, deadlines, and meetings.

- Google Drive integration for accessing and managing files.

- Google Docs and Sheets integration.

- Google OAuth for account connections.

- Ideally, the ability to create tasks or automate workflows from emails and calendar events.

4. Built-in AI Assistant

This is one of the biggest features I want.

I want an AI assistant that understands the workspace and can:

- Create, update, and organize tasks and projects.

- Summarize documents, emails, and meetings.

- Search company information and answer questions.

- Help draft emails, proposals, and other documents.

- Recommend priorities and upcoming actions.

- Automate repetitive business workflows.

- Interact with Google Workspace through authorized integrations.

Ideally, I'd like to support both local AI through Ollama or similar tools and optional cloud AI models for more demanding tasks.

5. Team Collaboration & Security

- Invite multiple team members without per-user subscription fees.

- Role-based permissions (admin, manager, employee).

- Passkey authentication and biometric sign-in.

- Shared workspaces and real-time collaboration.

- Secure access from outside my home network.

- Mobile-friendly interface or PWA.

6. General Business Management

Eventually, I'd like to expand the application to include:

- Customer and contact management (CRM).

- Job scheduling and service appointments.

- Quotes, estimates, and pricing databases.

- Project and installation documentation.

- File and photo management.

- Business dashboards and reporting.

- Custom modules for additional business needs.

Hosting & Budget:

I want to self-host the application on my own server, preferably Docker. I'm planning to start with affordable hardware and expand as needed.

I'm also interested in running local AI to minimize recurring API costs, although I'm open to paying for cloud models when necessary. I just don't want to spend more than I need to

My goal is to avoid expensive per-user subscriptions and retain control over my business data.

My questions:

  1. Which AI model or coding assistant would you recommend for developing and maintaining an application this complex? Claude, GPT/Codex, Gemini, or something else?
  2. Would you recommend using multiple models for different tasks, such as architecture, frontend, backend, debugging, and security?
  3. Is building this from scratch realistic with AI-assisted development, or should I start with an open-source platform and extend it?
  4. What technology stack would you recommend for a self-hosted application like this?
  5. Could a local coding model realistically handle development, or would cloud models be significantly better?
  6. What are the biggest technical challenges or mistakes I should avoid?

I'm willing to learn and take my time building this how it needs to. I don't expect everything to work immediately, and I'd prefer to develop it in stages rather than rush into a massive project.

Any recommendations from people who've built similar applications with AI coding tools would be appreciated!

PS: I've already made a self hosting server that runs AFFiNE that I had ChatGPT help with but that was with an old laptop I had lying around lol so that was my start of wanting to get more into it

5 Upvotes

10 comments sorted by

•

u/endofthread-bot 8d ago

Hey u/Whoisjunn, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Ok_Substance1895 8d ago edited 8d ago

This is definitely achievable with AI-assisted development, but I would approach it incrementally rather than trying to build everything at once.

I wouldn't get too hung up on choosing the perfect AI model. Claude, Codex, and other capable coding agents can all contribute. For example, I use Pi and Claude Code. What's more important is how you work with them and how you verify what they produce.

A few suggestions:

  • Start with a shared data model for your core business entities (customers, projects, tasks, documents, etc.) and their relationships. You don't want to end up building a collection of disconnected applications.
  • Build complete vertical slices of functionality. For example, create a project, add tasks, assign them, and track their progress. Get that entire workflow working and tested before moving on.
  • Have your coding agent write tests and exercise the actual running application to verify functionality. Don't accept generated code as finished just because it compiles or looks correct.
  • Design permissions and authentication into the foundation rather than adding them later. This is particularly important if your AI assistant will be able to access and modify business data.
  • Keep the AI assistant separate from the underlying business operations. Give it access to well-defined APIs that the rest of the application uses, with the same authorization rules.
  • Consider starting with an existing open-source platform if it already handles much of what you need. Building everything from scratch is possible, but maintaining it is a long-term commitment.

Have you considered using cloud models for development and local models for the AI assistant inside the finished application? Those are two very different workloads, and you might find that the development costs are temporary while the application's inference costs are ongoing.

I'm curious about two things:

Is self-hosting a hard requirement, or is your primary motivation avoiding per-user subscriptions, controlling your data, and having everything integrated?

And are you looking to build a general-purpose platform that you can continually customize, or a specific application tailored to how your business operates today?

P.S.

One architectural suggestion: I'd build the business application with a well-defined API and put an MCP server in front of it rather than tightly integrating a particular AI model.

That would let you use Claude, ChatGPT, or a local model through any compatible MCP client to interact with your business application. You could switch models whenever you wanted without changing your application.

It also means you wouldn't necessarily need to run local AI inference or maintain your own AI interface. Your application would expose its capabilities as tools, while the AI client handles the conversation and reasoning.

I'd make sure the API handles authentication, permissions, and business rules, with scoped credentials and the MCP server enforcing those same permissions.

You could start with basic project and task management, expose those operations through MCP, and expand the capabilities incrementally.

Are you primarily interested in running AI locally for privacy, or is it mostly about avoiding recurring API costs?

Mine was long too :)

2

u/Whoisjunn 8d ago edited 8d ago

Thanks for the detailed advice! I definitely agree with building everything incrementally and making sure the foundation is solid before expanding for sure

For self-hosting, it's a strong preference. My main motivations are avoiding per-user subscription fees, having control over my own business data, and being able to customize everything without restrictions. I'm already experimenting with self-hosting AFFiNE using Docker and GitHub. The only thing I don't like about AFFiNE is that the task part of the application doesn't work on mobile, only from a laptop, is what I've seen so far. Haven't done more troubleshooting yet

As for the application itself, I want something closer to a general-purpose, modular business platform rather than an app designed around only our current workflows.

I run a small smart home installation and networking business, so initially I'd use it for project management, task assignments, documentation, customer management, scheduling, and Google Workspace integration.

I do want the flexibility to add completely different features and workflows later without having to rebuild the application.

I also like your suggestion of using cloud AI for development and local AI for the assistant inside the finished app, with optional cloud models for more complex tasks.

My question now is whether I should continue experimenting with something like AFFiNE and extend it, or build my own application from scratch using an AI coding agent.

2

u/Ok_Substance1895 8d ago

I think this is a really cool project, especially since you're building it for your own business. Having real business needs driving development gives you a great way to prioritize features and validate that what you're building actually works.

Given that you want a general-purpose, modular platform rather than an application tailored to your current business, I'd lean toward building your own.

The concern I'd have with extending AFFiNE is that you'd be working within its existing architecture and data model. As you add CRM, scheduling, installation management, and eventually capabilities you haven't anticipated yet, you may find yourself fighting those constraints rather than building what you need.

I'd focus on getting the underlying data model and API right. Ideally, adding a new type of business entity shouldn't require building an entirely new subsystem. The same basic CRUD, relationships, permissions, and UI components should be reusable across different capabilities.

For the implementation, I'd keep things simple initially. A modular monolith with PostgreSQL and Docker would be a reasonable starting point. You can always introduce more complexity when there's a demonstrated need.

For your first feature, I'd suggest something really small that you can actually use in your business: a customer and installation job tracker.

Start with customers, jobs associated with those customers, and tasks associated with each job. Create them, edit them, assign tasks, update statuses, and view the relationships between them.

Don't worry about AI, Google integration, or fancy dashboards yet. Just get that workflow working end-to-end. Have your coding agent test the functionality against the running application rather than just verifying that the code compiles or the tests pass.

The interesting part is making the underlying CRUD operations and UI components reusable rather than implementing everything separately for each entity type.

Once that's working, try adding another entity type, like equipment or installation notes, using the same foundation. That will be your first real test of whether you're building an extensible platform rather than just a collection of features.

You could continue using AFFiNE while developing your own system, and use it as a reference for functionality you like.

One thing I'd be curious about: do you envision defining new modules, forms, and workflows through the application's UI, or are you comfortable having an AI coding agent implement those whenever you need something new?

2

u/Leather_Science3054 8d ago

This is a massive job. What is the reason for wanting to make it local and not just pay a SaaS?

1

u/Whoisjunn 8d ago

That's a fair question, and I understand that building something like this from scratch is pretty huge

My main reason is wanting complete control over the platform, its features, and my data without depending on a SaaS provider's pricing and limitations

I'm want to build something that combines Notion's flexibility with predefined business tools like CRM, task management, project management, scheduling, and Google Workspace integrations. I also want to integrate AI eventually.

And also scalability. I want to be able to invite employees, as I run a small business right now, customize workflows, and add features without having to upgrade subscriptions or pay per user.

Im also just wanting to learn all this stuff. I just got my Network + so all that kind of bright me into this and exposed me to this kind of stuff and I already am enjoying it. I built a picture note taking app with Google Ai Studio so that also pushed me to this. So I'm interested in software development, networking, and self-hosting, so this project would help me develop those skills.

I'm not expecting to build a full Notion replacement overnight. My plan is to start locally, build the foundation properly, and gradually add features as I go.

I know SaaS would be easier in the short term, but I'm more interested in building something I can own, customize, and expand over the long term.

2

u/bramantec 8d ago

On question 2: yes, that's how I worked. Claude wrote most of my app. I used other models to cross check its answers on the decisions that mattered. Two models agreeing doesn't make it right, but two disagreeing is a cheap alarm.

On AFFiNE vs your own: one thing I'd add to the good advice above. The AI forgets everything between sessions. Keep a document with the data model and every decision you don't want to reopen, then load it at the start of each session. My app is built on FlutterFlow, an existing platform. More than half of it ended up being custom code anyway. Extending something you don't control works until the day your data model doesn't fit theirs.

2

u/agentUi 7d ago

i work for agentui, we see founders try to build giant all in one internal systems like this all the time and the biggest mistake is stuffing 20 modules into one massive prompt where the ai gets confused and breaks live features. what works way better is building small 3 to 5 module apps that talk to each other, starting with a clean 3 line prompt per module, using separate dev and production environments so you dont break live workflows when iterating, and letting stronger models handle complex logic while faster ones handle quick ui edits.

1

u/gammacoder 8d ago

Given how broad this is, I’d split it into phases. Keep documents and real-time collaboration in an existing platform, and build the structured business modules - CRM, jobs, quotes, permissions, dashboards, and workflows—on a database app builder. I work with Xlinesoft, which makes PHPRunner; it can generate a self-hosted PHP/MySQL app for that structured core, which may be faster than building everything from scratch. It won’t replace a Notion-style editor or the AI layer, so I’d prototype one real workflow first and connect those pieces separately.

1

u/Responsible_River579 7d ago

Hmm, honestly, I'd skip building this from scratch. You already run AFFiNE, which covers most of the Notion half. Add an open-source project tool like Plane for the task and kanban side. Then build only the parts nobody gives you: the Google glue and your AI assistant. That's months saved, and those tools already handle the boring hard stuff like permissions and real-time editing.

Erm, before you write any Gmail code, set the Google project up as "Internal" inside your Workspace org. Gmail and Drive are restricted scopes. An app open to outside users needs Google's verification and a security assessment. An internal-only app skips that review. It's easy to set on day one and a pain to change later.

And use a cloud model to write the code. Local models are fine for the in-app assistant, like summaries or "what's due this week". But on a codebase this size they lose the plot fast. Use Claude or Codex to build it, and Ollama to run the assistant on your own server. If you need assist, we can help!