Skip to content

Add support for Notion Credits (Custom Agents / Workers) #2888

Description

@fakepooh

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 getCreditRateLimitStatus data and correctly shows:

  • Rolling (6-hour)
  • Monthly (billing period)

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:

  1. Fetching the current Notion Credits allowance / usage from the relevant Notion internal endpoint (currently getAIUsageEligibilityV2).
  2. Showing Notion Credits in the Notion dropdown card alongside Rolling and Monthly.
  3. Exposing the remaining/used credits to Menu Bar Layout, preferably through a dedicated Credits token rather than overloading a percentage quota token.
  4. Preserving the existing workspace selection behavior so credits are read for the same selected Business/Enterprise workspace.
  5. Graceful handling when the endpoint is unavailable, changes shape, or the workspace has no credit-based features enabled.

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 allowance

Notion Credits appear to be exposed separately via:

/api/v3/getAIUsageEligibilityV2

The implementation should avoid treating these credits as the same thing as the standard basic_ai_credits Rolling/Monthly allowance.

Since these are internal Notion endpoints, the existing unsupported-integration caveat already applies.

UI suggestion

Dropdown example:

Rolling        42%
Monthly        18%
Notion Credits 7,850 remaining

Menu Bar Layout could expose a provider-aware token such as:

Credits

or

Notion Credits

rather than mapping this to Session % / Weekly %.

Environment

  • macOS
  • CodexBar with Notion AI provider enabled
  • Notion Business/Enterprise workspace
  • Custom Agents / Workers using Notion Credits

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper 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.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions