Modular prompts. One interface. Full control. A lightweight SDK to build AI-powered workflows in your Next.js apps — with modular prompts, unified API routing and zero backend config.

Three steps: add the SDK, link to BrinPage Cloud, and launch the local dashboard.
# Install
npm install @brinpage/cpm
BRINPAGE_API_KEY=your-cloud-key
BRINPAGE_BASE_URL=https://cloud.brinpage.com
No provider keys in your project. Requests are routed via BrinPage Cloud.
npx brinpage cpm
# runs on http://localhost:3027
Minimal setup for Next.js (App Router). All configuration—providers, models, temperature, max tokens, embeddings—is managed in the CPM Dashboard and synced via BrinPage Cloud. Your code just initializes the client and calls cpm.chat() or cpm.ask().
Want the full setup, tips, and troubleshooting? Visit the CPM Installation guide.
Open Installation GuideConnectConnectonce.once.BuildBuildanywhere.anywhere.
CPM treats prompts as components: a Base + stackable Modules. Declare what your task needs; CPM builds the final prompt deterministically—the same inputs always produce the same output prompt.

Run the dashboard on :3027. Switch models, tune parameters, and inspect every request — all connected through BrinPage Cloud. No provider setup. No lock-in.
Less repeated context. Smarter routing. Fewer retries thanks to preflight validation.
Cost ≈ (prompt + response) × retries. CPM minimizes both.
