-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add support for Notion Credits (Custom Agents / Workers) #2888
Copy link
Copy link
Open
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Summary
CodexBar's Notion AI provider currently tracks only the standard AI allowance windows shown in Notion as Rolling and Monthly.
Please add support for Notion Credits — the separate credit pool used by features such as Custom Agents and Workers.
Current behavior
CodexBar reads Notion's
getCreditRateLimitStatusdata and correctly shows:However, Notion Credits are not fetched or displayed.
The current provider documentation explicitly notes that Custom Agents and Workers are not covered by the existing allowance and are metered separately via
getAIUsageEligibilityV2.Requested behavior
Add Notion Credits support to the Notion provider, ideally including:
getAIUsageEligibilityV2).Creditstoken rather than overloading a percentage quota token.Why this is useful
Rolling/Monthly AI allowance and Notion Credits are separate limits. A workspace can still have healthy Rolling/Monthly headroom while consuming its Notion Credits through Custom Agents or Workers, so only showing the existing allowance gives an incomplete picture of actual Notion AI capacity.
Technical context
Current Notion provider flow:
/api/v3/getSpaces→ account/workspace resolution/api/v3/getCreditRateLimitStatus→ Rolling + Monthly AI allowanceNotion Credits appear to be exposed separately via:
The implementation should avoid treating these credits as the same thing as the standard
basic_ai_creditsRolling/Monthly allowance.Since these are internal Notion endpoints, the existing unsupported-integration caveat already applies.
UI suggestion
Dropdown example:
Menu Bar Layout could expose a provider-aware token such as:
or
rather than mapping this to
Session %/Weekly %.Environment