Add Aside subscription credit usage provider
Summary
Add Aside as a subscription-credit provider so CodexBar can show the user's current plan, included monthly credits, remaining percentage/balance, and next renewal date.
This is separate from the recently added support for using Aside as a Chromium cookie-import source. The request is to track the Aside product's own subscription credits.
User-visible data available in Aside
Aside's Settings → Plan & Usage page currently exposes the fields CodexBar needs for a useful credit snapshot:
- plan name
- monthly included-credit grant
- remaining percentage
- next refresh/renewal date
- add-on credit balance
- per-task/model credit usage history
A live paid account confirms that these fields are populated and update with usage. Payment-card details are not needed and should not be read or displayed by CodexBar.
Requested display
- Provider name: Aside
- Primary metric: remaining included credits or remaining percentage
- Reset: subscription credit refresh date
- Identity enrichment: plan name, when available
- Optional balance: separately purchased add-on credits
- Optional details: monthly task/model usage, if a supported source exposes it
The included monthly grant and purchased add-on credits should remain separate rather than being combined into an inferred quota.
Authentication/data-source question
Aside's UI clearly retrieves structured billing/usage data, but I could not find a documented public usage API or CLI contract. The installed app also uses an authenticated local daemon for its own UI, but depending on that private interface without agreement from Aside would be brittle and may create an inappropriate credential boundary.
Could the maintainers indicate which integration shape would be acceptable?
- a documented Aside API/token, if one exists or becomes available;
- an explicitly supported read-only local daemon contract;
- an opt-in browser-session fetch using Aside's own authenticated billing surface; or
- defer until Aside publishes a stable usage interface.
I am happy to follow up with a provider implementation and focused parser/strategy tests once the supported source and auth boundary are agreed.
Environment checked
- macOS
- Aside 1.0.928.1
- Aside paid subscription with monthly credits
- CodexBar 0.67.0 locally; current upstream documentation and provider list were also checked
Related
- #4215 added Aside to the browser-cookie catalog for other providers; this request is for Aside's own subscription usage.
- Provider authoring guide: https://github.com/steipete/CodexBar/blob/main/docs/provider.md
Codex review: this still needs some work.
Summary Keep this issue open: Aside’s own subscription credits remain unsupported, and the repository disables automatic closing; implementation needs an agreed data source and authentication boundary.
Reproducibility: Source confirms the missing provider, but this is a feature request; the paid-account observation is reporter-supplied, and no live account or credential probe was run.
Maintainer decision needed
- Question: Should Aside support require a documented API or explicitly supported local contract, or may it use an opt-in authenticated billing-session fetch?
- Recommendation: Require a supported contract: Prefer a documented usage API or explicitly supported read-only local contract; defer implementation until its authentication scope and redacted response fixtures are available.
- Why: The report identifies useful account fields but supplies no verified source contract, and the related browser ruling does not authorize accessing Aside’s own billing credentials.
Next step Choose the acceptable Aside usage and authentication contract, then obtain redacted response fixtures before implementing the provider.
Security Needs attention: The proposed billing integration needs authentication-boundary approval; no current vulnerability is established.
Review details
Best possible solution:
Use an approved read-only source through existing provider hosts, preserving separate credit pools and Aside-only identity.
Do we have a high-confidence way to reproduce the issue?
Source confirms the missing provider, but this is a feature request; the paid-account observation is reporter-supplied, and no live account or credential probe was run.
Is this the best way to solve the issue?
Existing descriptor and plugin hosts are suitable once a source is approved; relying on an unverified private daemon now would leave the central authentication and maintenance questions unresolved.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- No supported Aside usage endpoint, response schema, or authentication contract has been established.
- Private daemon or browser billing access needs an approved credential scope and a way to exclude payment-card data.
Codex review notes: model internal, reasoning medium; reviewed against 6e118bdb5782.
Label changes
Label changes:
- add
P3: This is optional provider coverage with an unresolved source contract, rather than a regression or blocked supported workflow. - add
issue-rating: 🌊 off-meta tidepool: Current issue advisory state selects this label. - add
clawsweeper:no-new-fix-pr: Current issue advisory state selects this label. - add
clawsweeper:needs-product-decision: Current issue advisory state selects this label. - add
clawsweeper:needs-security-review: Current issue advisory state selects this label.
Label justifications:
P3: This is optional provider coverage with an unresolved source contract, rather than a regression or blocked supported workflow.
Evidence reviewed
Security concerns:
- [low] Establish a scoped billing authentication contract The proposed private daemon and browser-session paths lack a verified usage-only contract; approve exact credential access and response fields before implementation, excluding payment-card information. Confidence: 0.95
What I checked:
- Requested capability and unresolved source: The complete issue body requests Aside’s own monthly and purchased credits and explicitly asks maintainers to choose between API, supported daemon, browser session, or deferral. The only comment is a review-status bot message; no integration ruling is recorded.
- Current provider registration: The complete UsageProvider enum and first-party descriptor manifest contain no Aside provider; searches of shipped source, plugin resources, provider documentation, and tests found Aside browser support rather than subscription fetching. (
Sources/CodexBarCore/Providers/Providers.swift:21, 6e118bdb5782) - Related browser work is distinct: The maintainer discussion at https://github.com/steipete/CodexBar/issues/4215#issuecomment-5964997754 addresses browser discovery. Merged https://github.com/steipete/CodexBar/pull/4235 adds Aside cookie discovery for Muse and Cursor, without fetching Aside subscription usage. (
docs/provider.md:49, bc7e2011d5db) - Existing browser coverage: The test injects an Aside browser session into Muse’s import order; it establishes the intended browser-source boundary, not an Aside billing parser. (
Tests/CodexBarTests/BrowserCookieImportSupportTests.swift:16, 6e118bdb5782) - Prepared screenshot inspected: The downloaded screenshot belongs to the related Muse cookie-import report and shows its Chrome guidance and missing-session error; it supplies no visual evidence of Aside’s Plan & Usage fields. (
/home/runner/work/clawsweeper/clawsweeper/artifacts/event/codex/proof-scratch/4409/proof-image-1.png) - Provider and privacy contract: The authoring guide requires provider-local identity, opt-in browser cookies, timeout-bounded fetching, and shared credential and HTTP hosts. Existing plugins support scoped API and cookie integration, so no missing core API is established yet. (
docs/provider.md:216, 6e118bdb5782)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
- Maintainer-only repair and merge flows require explicit commands such as
@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review. - Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Reviewed October 10, 2026, 7:29 AM ET / 11:29 UTC.
Thanks @ccomaeng. Aside is a reasonable candidate for a bundled plugin provider, and the cookie-import groundwork for Aside already exists. What is missing is the data source: CodexBar only reads endpoints it can identify (the provider's own console or API endpoints are fine, unidentified relays are not), so I need to know what the Plan & Usage page actually calls.
Could you open the browser's developer tools on Settings → Plan & Usage, and post for each request the page makes to Aside's own backend: the method and path (host and path only, no query values), the response status, and the response body with identifiers, emails, names and tokens replaced by placeholders but with the exact field names and number/string types kept? Two or three requests are usually enough: the one carrying the plan name and included credits, the one carrying remaining percentage or balance and the renewal date, and the add-on balance if it is separate. Please do not post cookies or headers. With that in hand the provider is a small plugin plus fixture tests, and I will queue it.
Thanks @steipete. I captured the actual requests while reloading Settings → Plan & Usage in my signed-in Aside installation on October 11, 2026.
An important source-boundary finding: this page is an Aside extension page, and the captured requests go to Aside's local daemon, http://127.0.0.1:21420, rather than directly to a remote Aside console/API host. No remote HTTP(S) host appeared in this page capture. I have not verified the daemon's upstream requests, a remote billing endpoint, or a supported third-party authentication contract. The port below is the observed port, not a claim that it is a stable integration contract.
Two requests cover the requested snapshot:
| Method | Host | Path (query values excluded) | Status |
|---|---|---|---|
| GET | 127.0.0.1:21420 | /trpc/billing.getSummary | 200 |
| GET | 127.0.0.1:21420 | /trpc/billing.getSubscription | 200 |
The response paths below are relative to result.data:
| Purpose | Field | Observed JSON type |
|---|---|---|
| Plan | subscription.plan.name / slug | string / string |
| Included monthly grant | credit.monthly_grant_micros | string |
| Credit balance | credit.balance_micros | string |
| Remaining / used | credit.remaining_percent / used_percent | number / number |
| Next credit refresh | credit.refresh_at | string (ISO timestamp) |
| Purchased add-on balance | credit.add_on_balance_micros | string |
| Conversion metadata | credit.credit_micros_per_usd | number |
| Subscription billing period end | subscription.currentPeriodEnd | string (ISO timestamp) |
The UI showed Pro, 1,800 monthly credits, 50% remaining, and 0 add-on credits. Credit refresh is distinct from subscription renewal: this annual subscription shows a monthly credit refresh in October 2026 but a subscription period end in September 2027. The grant/balance *_micros values are JSON strings; they should not be treated directly as the UI's credit count or combined with the add-on pool. The conversion formula was subsequently cross-checked against installed code below; multi-account and nonzero-add-on balance behavior remain unverified.
Below are redacted captured response bodies, retaining all field names, nesting, and JSON types. joined_at is replaced with a string placeholder. The generic payment-method discriminator type: "card" is retained for schema compatibility; other payment-method strings are placeholders and payment-method numbers are numeric 0 stand-ins, not observed card values. No request/response headers, cookies, query values, tokens, account IDs, names, emails, referral URLs, or task history are included. Empty invoices were observed as [].
/trpc/billing.getSummary — redacted response
{
"result": {
"data": {
"joined_at": "<REDACTED_DATE>",
"subscription": {
"plan": {
"slug": "pro",
"name": "Pro",
"tier": 1
},
"status": "active",
"interval": "year",
"currentPeriodStart": "2026-09-14T14:26:30.000Z",
"currentPeriodEnd": "2027-09-14T14:26:30.000Z",
"cancelAtPeriodEnd": false,
"features": [
"ai_assistant",
"memory",
"custom_skills",
"priority_models"
]
},
"credit": {
"add_on_balance_micros": "0",
"balance_micros": "9056282",
"credit_micros_per_usd": 1000000,
"monthly_grant_micros": "18000000",
"remaining_percent": 50,
"used_percent": 50,
"refresh_at": "2026-10-14T14:26:30.000Z"
},
"addOn": {
"autoReload": {
"defaultChargeCents": 1000,
"defaultSpendLimitCents": 10000,
"defaultThresholdCents": 500,
"minChargeCents": 500,
"minSpendLimitCents": 1000
},
"creditMicrosPerUsd": 1000000,
"discountTiers": [
{
"discountPercent": 10,
"minimumChargeCents": 100000
},
{
"discountPercent": 5,
"minimumChargeCents": 20100
}
],
"maxChargeCents": 400000,
"minChargeCents": 1000,
"presets": [
{
"creditCents": 5000,
"creditMicros": "50000000",
"discountPercent": 0
},
{
"creditCents": 25000,
"creditMicros": "250000000",
"discountPercent": 5
},
{
"creditCents": 100000,
"creditMicros": "1000000000",
"discountPercent": 10
}
]
}
}
}
}
/trpc/billing.getSubscription — redacted response
{
"result": {
"data": {
"joined_at": "<REDACTED_DATE>",
"subscription": {
"plan": {
"slug": "pro",
"name": "Pro",
"tier": 1
},
"status": "active",
"interval": "year",
"currentPeriodStart": "2026-09-14T14:26:30.000Z",
"currentPeriodEnd": "2027-09-14T14:26:30.000Z",
"cancelAtPeriodEnd": false,
"features": [
"ai_assistant",
"memory",
"custom_skills",
"priority_models"
]
},
"credit": {
"add_on_balance_micros": "0",
"balance_micros": "9056282",
"credit_micros_per_usd": 1000000,
"monthly_grant_micros": "18000000",
"remaining_percent": 50,
"used_percent": 50,
"refresh_at": "2026-10-14T14:26:30.000Z"
},
"addOn": {
"autoReload": {
"defaultChargeCents": 1000,
"defaultSpendLimitCents": 10000,
"defaultThresholdCents": 500,
"minChargeCents": 500,
"minSpendLimitCents": 1000
},
"creditMicrosPerUsd": 1000000,
"discountTiers": [
{
"discountPercent": 10,
"minimumChargeCents": 100000
},
{
"discountPercent": 5,
"minimumChargeCents": 20100
}
],
"maxChargeCents": 400000,
"minChargeCents": 1000,
"presets": [
{
"creditCents": 5000,
"creditMicros": "50000000",
"discountPercent": 0
},
{
"creditCents": 25000,
"creditMicros": "250000000",
"discountPercent": 5
},
{
"creditCents": 100000,
"creditMicros": "1000000000",
"discountPercent": 10
}
]
},
"autoReload": {
"canAutoReload": true,
"enabled": false,
"lastError": null,
"maxSpendCents": 10000,
"periodStart": "2026-10-01",
"reloadChargeCents": 1000,
"spentCents": 0,
"thresholdCents": 500,
"thresholdMicros": "5000000"
},
"paymentMethod": {
"type": "card",
"brand": "<REDACTED_PAYMENT>",
"expMonth": 0,
"expYear": 0,
"last4": "<REDACTED_PAYMENT>"
},
"invoices": []
}
}
}
billing.getSubscription also carries payment information, whereas the captured billing.getSummary response already covers all the requested snapshot fields without that payment block. The page also made a batched GET to /trpc/referrals.getGuestPasses,billing.getUsage (200); its referral/task-history body is deliberately excluded because it is not needed for this snapshot.
The official subscription help describes the UI fields, while the developer help describes CLI/MCP/REPL access. Neither of those pages establishes these billing RPCs as a supported third-party usage API, and plan marketing defaults should not replace the account's returned grant.
Would this identified local-daemon source be acceptable for an opt-in provider, or do you need Aside to expose/confirm its remote read-only billing contract first? These fixtures establish the observed local response shape; they do not establish approval or stability of that private interface.
Follow-up cross-check (October 11, 2026)
I also inspected the installed Aside daemon and Agent Manager component code (1.26.1010.2149; desktop app 1.0.928.1). This adds source evidence, separately from the live local Network capture above:
| Observed local RPC | Upstream path found in installed code | Remote status/body capture |
|---|---|---|
| billing.getSummary | /billing/v2/subscription | Not directly captured |
| billing.getSubscription | /billing/subscription | Not directly captured |
The API client defaults to https://api.aside.com, with an ASIDE_API_URL environment override. I have not inspected the running process's environment or verified its effective remote host on the wire. Thus these are code-derived upstream mappings, not newly observed remote requests. The call sites do not specify a method override; I am not assigning the local 200 status to either remote request. They use the app's authenticated API client and refresh flow; no credentials were extracted or posted.
Additional parser/display details:
- The local RPC outputs are parsed through schemas. The summary schema selects
joined_at,subscription,credit, andaddOn; it excludes payment method, invoices, and account-specific auto-reload settings. The schema defaults a missingcredit.add_on_balance_microsto the string"0", so local output must not be represented as an exact, unmodified upstream response. subscriptioncan be null; itsinterval,currentPeriodStart, andcurrentPeriodEndcan also be null. The paid-account fixtures above do not cover those branches. Percent fields are constrained to integer numbers from 0 to 100, the conversion rate to a positive integer, and micro-credit balances/grants to digit strings.- The UI initially queries the summary, then requests the subscription with a fresh flag and prefers that result when its update timestamp is at least as recent. The three common blocks (
subscription,credit,addOn) were identical across the two captured responses. - The UI uses
credit.remaining_percentdirectly,credit.refresh_atfor the credit refresh date, and a separate conversion helper for the monthly grant and add-on balance. The installed helper uses integer arithmetic:(micros * 100 + floor(credit_micros_per_usd / 2)) / credit_micros_per_usd, truncating the integer quotient. This verifies the observed"18000000"grant at rate1000000displays as 1,800 credits, and"0"add-on balance as 0 credits. Decimal strings should be parsed with integer-safe arithmetic. Formatting rounds to whole display credits. - The generic payment discriminator in the fixture is now retained as
"card", while card details remain redacted. This avoids turning that schema discriminator into an invalid placeholder. Redacted payment numbers remain stand-ins and should not be treated as real payment data.
The zero-add-on account still does not establish how balance_micros behaves when purchased credits are nonzero, nor whether a third-party client may use the private remote or local contracts. For an initial display, the directly returned percentage and refresh timestamp avoid inventing a balance-pool calculation. A supported authentication boundary still needs confirmation.
Thanks @ccomaeng. The latest capture identifies GET http://127.0.0.1:21420/trpc/billing.getSummary and supplies plan, monthly grant, remaining credit, credit refresh date, and add-on balance. Credit refresh must remain distinct from annual subscription renewal. The remaining blocker is checking that the Aside daemon is running: the plugin API supports loopback HTTP but exposes no process/port-ownership guard, and the capture does not establish a verified daemon executable identity. Keeping this open pending that host capability and identity contract; browser cookies are unnecessary for this source.
Thanks @ccomaeng for the detailed captures. They do establish the local GET /trpc/billing.getSummary shape, including the distinction between monthly credit refresh and annual renewal. We're closing the bundled-provider request because the daemon's stable identity/ownership contract remains unresolved. For a user-managed setup, an aside-credits.js plugin can read an explicitly approved loopback origin; it cannot discover or verify the owning process. A stable daemon identity/authentication contract or verified Aside remote billing access would be grounds to reconsider bundled support.