- Token mode (Cursor)
- Credit mode (Claude / Gemini)
How token mode works
When the active agent iscursor, each message you send consumes one token from your monthly quota. This is the simplest billing model: you know exactly how many interactions you have left before your period resets.Key fields in the Convex users table
Quota per plan
Reset cycle
Message quotas reset monthly. ThelastMessageReset timestamp is updated each time a reset occurs. A new subscription payment (via RevenueCat webhook or Stripe webhook) also triggers a quota top-up, tracked by lastGrantedTransactionId to prevent double grants.Running out of messages
WhenmessagesRemaining reaches zero, new session creation is blocked until the quota resets at the start of the next billing period or you upgrade to a higher plan.Cost tracking per session and message
Regardless of billing mode, Vibra Code records granular cost data for every session and every message in Convex.Session-level tracking (sessions table)
Message-level tracking (messages table)
These fields are populated by the
run-agent Inngest function after each AI turn and are available in real time via Convex subscriptions.
Checking your balance
Your current message quota or credit balance is visible on the Profile tab in the mobile app. The profile screen readsmessagesRemaining (token mode) or creditsUSD (credit mode) directly from your Convex user record and updates in real time as sessions run.