CPM — Context & Prompt Manager

Modular prompts. One interface. Full control.

A local-first SDK and dashboard to create and edit prompt modules, preview results in real time, and control model, temperature, and cost — using your own OpenAI key.

npm install @brinpage/cpm
Open docs
Runs locally at http://localhost:3027. BYOK.
CPM modular context graph

Install in under a minute

Three simple steps: add the SDK, set your key, and launch the local dashboard.

1

Add the SDK

bash
# Install
npm install @brinpage/cpm
2

Link your provider (.env)

env
# .env
OPENAI_API_KEY=sk-xxxxxx
3

Run the dashboard

bash
npx brinpage cpm
# then open http://localhost:3027

Key concepts

Base Prompt
Always on

Global rules that define voice, safety, and behavior. Loaded on every request.

On-demand Modules
Attach when needed

Style/Tone, Facts, Playbooks, Citations… keep prompts lean by adding only what’s relevant.

Live Preview
See before you send

Preview the final assembled context in the dashboard while you edit.

What is CPM?

CPM is a minimal SDK plus a local developer dashboard. It helps you manage modular prompt context (rules, tone, facts) and adjust provider options (model, temperature) with instant feedback — without exposing your key or data.

  • • Create modules for Base Prompt (always-on), Style/Tone, Facts, Playbooks, etc.
  • Live preview of the final context as you edit.
  • Model & parameters control from the dashboard.
  • Cost & requests panel to keep an eye on usage.
  • Light/Dark themes for comfortable work.
CPM developer dashboard

Compatibility

Runtime

Node 18+ / 20+

Package managers

npm / pnpm / yarn

Frameworks

Next.js App Router, others

OS

macOS · Linux · Windows

Models

OpenAI (today)

Themes

Light / Dark

Ready to try CPM?

Install the SDK and open the dashboard to start tuning in minutes.