Dshamir builds the plumbing to run Mike as a metered service

Two new features point at a paid, multi-tenant future: per-user credit limits and workflows you can carry between instances.

workflowmulti-tenant

Dshamir pulled in monthly credit metering across the chat features. Each user gets a usage ceiling; once they hit it, the system stops the AI call and tells them they're out, then resets the counter when the month rolls over. It's the kind of guardrail you only build if you're planning to charge people - or at least cap how much any one account can consume.

The same work adds portable workflows: you can export a saved workflow to a file and import it somewhere else. For teams running their own copies of Mike, that means moving a configured process between a test setup and production, or sharing it across instances, without rebuilding it by hand.

So what Worth a look for anyone weighing whether to run Mike as a hosted, billed product rather than a single in-house deployment.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from Dshamir/AI-Legal, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
e889c1dd feat: credit enforcement on chat, workflow export/import Dshamir 2026-05-23 ↗ GitHub
commit body
- Wire up monthly credit checking and incrementing for both chat
  streaming routes. Credits checked before LLM call (429 if exceeded),
  incremented after successful response. Auto-resets when past reset
  date. Limit via MONTHLY_CREDIT_LIMIT env var (PR #157).
- Add GET /workflows/:id/export (.mikeworkflow.json download) and
  POST /workflows/import endpoints for portable workflow transfer
  between environments (PR #59).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1a09a245 fix: use valid audit action type for workflow import Dshamir 2026-05-23 ↗ GitHub
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-525.md from inside the repo you want the changes in.

⬇ Download capture-thread-525.md