CaseMark hands every user their own AI key

CaseMark's fork lets each person plug in their own Anthropic or Gemini credentials instead of riding on a shared, firm-wide key.

securityinfrastructure

There's now a Models section under each user's account where they paste in their own key for the AI provider they want to use. The fork stores it encrypted, then quietly tests it against the provider before trusting it, so a typo or a dead key gets flagged as unverified rather than failing silently mid-matter. Pull a key and it's soft-deleted - the underlying secret is wiped while the record stays for audit.

The more interesting part is what happens when a user has no key of their own. CaseMark closed that door for production: the server will not quietly fall back to its own shared credentials, and a related fix stopped the interface from leaking the tail end of the server key. The behaviour is now fail-closed by default rather than fail-open.

So what Worth a look for any firm that wants per-user accountability and cost control over AI usage, instead of one shared key everyone hides behind.

View this fork on GitHub →

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

Commits in this thread

5 commits from CaseMark/mikeoss-casedotdev, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
c0ed073a Add BYOK model provider settings kveton 2026-05-04 ↗ GitHub
2032ca81 Address BYOK review feedback kveton 2026-05-04 ↗ GitHub
b3098e8b Tighten BYOK review fixes kveton 2026-05-04 ↗ GitHub
54f5b8b8 Polish BYOK provider feedback kveton 2026-05-04 ↗ GitHub
3967ef8c Merge pull request #2 from CaseMark/codex/settings-byok-storage Scott Kveton 2026-05-04 ↗ GitHub
Add BYOK model provider settings

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-31.md from inside the repo you want the changes in.

⬇ Download capture-thread-31.md