When I started building Codapult, I wasn't just trying to put authentication, billing, and a dashboard into a Next.js starter kit. I wanted a foundation that developers could extend with AI coding agents without gradually losing control of the architecture.
After building a production-oriented Next.js 16 SaaS boilerplate around that idea, a few lessons became clear.
1. Giving an agent access to the codebase isn't the same as giving it the right context.
An agent can read files and generate code, but it still needs to understand how the project is supposed to fit together. Where should business logic live? Which adapter handles payments? How does a module connect to the database? Which conventions must remain intact?
Build a SaaS on a full-source Next.js 16 foundation designed for both developers and AI coding agents. Codapult brings authentication, billing, teams, admin, and AI capabilities into a coherent architecture. Adapter-based integrations keep infrastructure replaceable, while the CLI and MCP server help coding agents work with project-specific context. Self-host anywhere, keep control of your architecture, and avoid vendor lock-in.