/iblai-vibe:iblai-vibe-pricingfrom ibl.ai vibe
Configures billing for an ibl.ai app: how the organization is charged (free trial, plans, prepaid credits, auto-recharge, LLM keys, spend caps) and which rail to use for charging end users (platform credits, Stripe paywall, or Stripe Connect item-level monetization).
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
First time here? If
iblai.envhas noARCHITECTURE=, run/iblai-vibe-startfirst (four questions; two minutes) — it decides single-org / multi-org / headless and who signs in, and every skill reads the answer.
One page that answers two questions before any billing skill is run:
Read this, pick a rail with the table in §2, then open the skill that wires it. This skill builds nothing itself.
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md. Terms: docs/glossary.md.
The platform meters usage in credits, not seats. Everything below is managed in os.ibl.ai (Admin mode → settings → Billing) and readable from your app with the SDK / REST surface in §4.
| Concept | What it means for you | Where |
|---|---|---|
| Credits | A prepaid, rechargeable balance. Agent usage (LLM calls, RAG, voice, …) draws it down. When it is spent, agents pause — the balance is a hard ceiling you set — and the app shows the next step: Billing for an admin, the plan picker for a free-trial user, a contact-your-admin notice for everyone else (/iblai-vibe-credit-exhaustion). | Billing → Credits (Add Credits) |
| Plan | A free trial first (sign-up lands you on the main organization with trial credits). Upgrade opens the plan picker — Free ($0, no card; your own workspace), Pro, Max, Ultra (monthly credit allowances, through Stripe; ibl.ai/pricing). Once on a plan, Change Plan moves between them: a dearer plan is swapped in and charged today, a cheaper one is swapped in and priced from the next renewal; only Free waits for the end of the period. | Billing → Credits, the navbar widget |
| Payment method | Kept by Stripe. Add Credits takes one on the way when none is on file (Stripe's customer portal, then back to the page to complete the charge); Auto Recharge needs one on file first. | Billing → Credits |
| Auto Recharge | Opt-in. Threshold, recharge amount, and an optional spending limit (defaults when enabled empty: $5 threshold / $16 recharge; spending limit Unlimited unless set). | Billing → Manage Usage |
| Your own LLM keys | Admins add provider keys (OpenAI, Anthropic, Google, Azure per-deployment, …) under Integrations → Secrets → LLMs. Agents can then choose those models. Costs attributed to each provider/model appear in Analytics → Costs. | Integrations → LLMs; /iblai-vibe-agent-llm |
| Spend caps | Admin ceilings on LLM cost at three scopes — the whole org, one agent, one user on one agent — per day/week/month/year, enforced as Block Requests (HTTP 429, the chat is refused) or Alert Only; near-limit alerts at 80 % and 95 % by default. The tightest applicable cap governs. | Billing → Spend Limits / Agent Limits; /iblai-vibe-billing, /iblai-vibe-agent-billing |
IBLAI_API_KEY as an LLM key | Your Platform API Token is also a standard OpenAI-style key on https://asgi.data.<domain>/api/ai-mentor/orgs/<org>/v1 (Authorization: Bearer). Calls made with it are your org's usage. Server-side only. | /iblai-vibe-ops-init, iblai-api-inference |
Rule of thumb for a new app: set an org-wide monthly spend cap in Alert Only mode on day one, then tighten to Block once you know the real number (the Spend Limits tab shows actual spend this month and all time before you set anything).
| A · Platform credits | B · App paywall (your Stripe) | C · Item monetization (Stripe Connect) | |
|---|---|---|---|
| What is sold | ibl.ai credits / plan tier to the org's own members | Entry to the whole app — one-time or subscription | Access to specific items: an agent, course, program, pathway, or custom item, with pricing tiers |
| Whose Stripe | ibl.ai's | Yours — linked from the app with Connect with Stripe, or a restricted key stored on the org as the stripe integration credential (never typed into a chat) | Your Stripe Connect Express account, ibl.ai-managed |
| Commission | — | None | ibl.ai commission per sale |
| Webhooks | — | None (verified polling by the platform) | Webhook-reconciled subscriptions |
| Buyer sees | CreditBalance widget + the plan picker (UpgradePackageModal) + Stripe checkout | Your /paywall page → Stripe's form in a modal → into the app | PaywallModal per item, guest/public buy, PurchasesTab in Profile |
| Admin sees | Billing tab | /paywall/setup: free / one-time / monthly, then Connect with Stripe | MonetizationTab in Account: paywall config, prices, subscribers, revenue |
| Needs an operator flag | show_paywall | none | enable_monetization |
| Choose when | Your org resells ibl.ai usage to its own admins/trial users | "One app, one price, my customers" (the iblai/vibe-agent model) | A marketplace of agents/courses with per-item prices, trials, subscriptions, and revenue reporting |
| Skill | /iblai-vibe-credit, /iblai-vibe-billing, /iblai-vibe-credit-exhaustion | /iblai-vibe-monetization-app-paywall | /iblai-vibe-monetization (family index) |
Decision in three questions:
A is not a way to charge your end users for your product; it is how an org
tops up its own credits.
| Rail | Prerequisite | How to check |
|---|---|---|
| A | show_paywall on the org | JSON.parse(localStorage.tenants).find(t => t.key === org).show_paywall |
| B | A Stripe source on the org — an account linked with Connect with Stripe (the admin does it at /paywall/setup), or a stripe integration credential holding a restricted key and its publishable key; a backend that serves …/providers/stripe/connect/ | GET $CONNECT → source is connected or key with a non-empty publishable_key; 404 old backend ($CONNECT defined in /iblai-vibe-monetization-app-paywall Step 1) |
| C | enable_monetization on the org; Connect Express onboarding complete (is_ready_for_payments) | /iblai-vibe-monetization-onboard |
Flags are set by an ibl.ai operator — there is no in-app toggle. If a flag is off, none of that rail's UI renders even when the code is correct.
SDK hooks (verified in @iblai/data-layer 1.13.x): useGetCreditTransactionsQuery,
useGetTenantSpendCapQuery, useGetAgentSpendCapQuery, useGetUserSpendCapQuery,
useGetSpendCapStatusQuery (safe to show end users: zone + percent, never dollars),
useDeleteTenantSpendCapMutation / …AgentSpendCap… / …UserSpendCap….
Components: CreditBalance, BillingTab, UpgradePackageModal (the plan picker), ContactAdminModal (all @iblai/iblai-js/web-containers); the credits flows' hooks — use402ErrorCheck, useShowFreeTrialDialog, useUserIsOnTrial, useStripeUpgrade — and SubscriptionConfigProvider (@iblai/iblai-js/web-utils, see /iblai-vibe-credit-exhaustion).
REST (server-side, Authorization: Api-Token $IBLAI_API_KEY):
| Need | Call | Reference |
|---|---|---|
| Org credit account | GET /dm/api/billing/account/?platform_key={org} | iblai-api-billing |
| Transactions | GET /dm/api/billing/transactions/?platform_key={org} | same |
| Org cap | PUT/GET/DELETE /dm/api/ai-mentor/orgs/{org}/spend-caps/tenant/ | iblai-api-spend-caps |
| A user's cap status (safe to show end users) | GET /dm/api/ai-mentor/orgs/{org}/spend-caps/status/{user_id}/[?mentor=] | same |
| Costs by provider / model / user | GET /dm/api/analytics/financial/?platform_key={org}&metric=total_costs&date_filter=30d | iblai-api-analytics |
Details of every endpoint and error code for rails B and C:
references/rails.md.
/iblai-vibe-credit — the navbar credit widget (rail A)/iblai-vibe-billing — org Billing page: plan, credits, spend limits, agent limits/iblai-vibe-credit-exhaustion — what the app shows when credits run out; the free-trial gate; an embedded OS agent handing it to the page/iblai-vibe-agent-billing — one agent's cap and per-user caps/iblai-vibe-monetization-app-paywall — rail B end to end/iblai-vibe-monetization — rail C family index/iblai-vibe-admin — who may see billing (admins only)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job