Skip to content

feat(ai-settings): show remaining free MIND allotment - #10

Merged
huhn511 merged 1 commit into
mainfrom
feat/free-llm-allotment
Jun 20, 2026
Merged

feat(ai-settings): show remaining free MIND allotment#10
huhn511 merged 1 commit into
mainfrom
feat/free-llm-allotment

Conversation

@huhn511

@huhn511 huhn511 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

What

The "Your AI" panel now surfaces the free-allotment state when the coder would run on the bridge's built-in key:

  • has balance → "… built with the free built-in AI — N free MIND left. Add your own key for a faster, smarter AI."
  • spent → "You've used your free AI allotment. Add your own key below to keep building."

Uses the new freeBalance from the bridge's GET /api/profile/ai. When it's null (user on their own key, or ledger off) the existing copy renders unchanged.

Depends on

Tested

tsc --noEmit clean.

🤖 Generated with Claude Code

…ent prompt

When the coder runs on the bridge's built-in key and the ledger is on, the
"Your AI" panel now shows the remaining free MIND ("… N free MIND left") and,
at zero, prompts the user to add their own key. Uses the new `freeBalance`
from the bridge's GET /api/profile/ai; null (own key, or ledger off) renders
the existing copy unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huhn511
huhn511 merged commit 17eeb32 into main Jun 20, 2026
1 check passed
@huhn511
huhn511 deleted the feat/free-llm-allotment branch June 20, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant