/iblai-vibe:iblai-vibe-accountfrom ibl.ai vibe
Adds an organization settings page to a Next.js app with a sidebar grouping tabs under Workspace, Integrations, Finance, AI & data, and System. Activates when users mention organization settings, account page, invites, onboarding, or deployed apps.
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.
Add an account/organization settings page whose sidebar groups its tabs under five headings: Workspace (Organization, Management, Invites, Onboarding, Apps), Integrations (API, Secrets, Network), Finance (Monetization, Billing), AI & data (Benchmarks, Memory) and System (Advanced). A group whose tabs are all gated off disappears, so a small organization sees three or four headings, not five.

Template: the page this skill creates is bundled as
assets/account-page.tsx. For a navbar with links to it, run/iblai-vibe-navbarfirst.
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Before running this skill, ask the user:
Are you starting a new project from scratch? vibe-starter (https://github.com/iblai/base/tree/main/skills/start/iblai-vibe-ops-init/assets/vibe-starter) already ships the /account page wired up, alongside auth, navbar, and profile/notifications. Want to use that instead?
If yes, copy it from the installed iblai-vibe-ops-init skill's
assets/vibe-starter/ (in the vibe repo it lives under skills/start/), or
fetch it from the vibe repo when those assets are not installed. Tell the
user which path you took, then skip this skill:
cp -a <skills-dir>/iblai-vibe-ops-init/assets/vibe-starter/. .
# or, without local assets:
git clone --depth 1 https://github.com/iblai/base.git vibe-tmp && cp -a vibe-tmp/skills/start/iblai-vibe-ops-init/assets/vibe-starter/. . && rm -rf vibe-tmp
pnpm install --ignore-scripts # skips package lifecycle (postinstall) scripts
If they prefer to add the account page to an existing app, continue below.
/iblai-vibe-auth)@iblai/mcp in .mcp.json)Check for an iblai.env in the project root with PLATFORM, DOMAIN and
TOKEN. If it is missing, tell the user: "You need an iblai.env with your
platform configuration. Download the template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
Copy assets/account-page.tsx into
app/(app)/account/page.tsx (the only file this skill creates), or use the
reference implementation in Step 3. The page reads userData,
tenant/current_tenant and tenants from localStorage; admin status comes
from the tenants array.
The SDK Account component has no outer background. Wrap it in a white
container so it renders as a card against the gray page background
(--sidebar-bg: #fafbfc).
// app/(app)/account/page.tsx
"use client";
import { useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import { Account } from "@iblai/iblai-js/web-containers/next";
import { useSubscriptionConfig } from "@iblai/iblai-js/web-utils";
import config from "@/lib/iblai/config";
import { resolveAppTenant } from "@/lib/iblai/tenant";
export default function AccountPage() {
const router = useRouter();
// The platform's main organization (`main` unless the provider says
// otherwise), which the Billing tab keys the free trial and plans on.
const { mainTenantKey: platformMainOrg } = useSubscriptionConfig();
const [username, setUsername] = useState("");
const [email, setEmail] = useState("");
const [tenantKey, setTenantKey] = useState("");
const [tenants, setTenants] = useState<any[]>([]);
const [isAdmin, setIsAdmin] = useState(false);
const [ready, setReady] = useState(false);
useEffect(() => {
try {
const raw = localStorage.getItem("userData");
if (raw) {
const parsed = JSON.parse(raw);
setUsername(parsed.user_nicename ?? parsed.username ?? "");
setEmail(parsed.user_email ?? parsed.email ?? "");
}
} catch {}
const resolved = resolveAppTenant();
setTenantKey(resolved);
try {
const tenantsRaw = localStorage.getItem("tenants");
if (tenantsRaw) {
const parsed = JSON.parse(tenantsRaw);
setTenants(parsed);
const match = parsed.find((t: any) => t.key === resolved);
if (match) setIsAdmin(!!match.is_admin);
}
} catch {}
setReady(true);
}, []);
if (!ready || !tenantKey) {
return (
<div className="flex flex-1 items-center justify-center">
<p className="text-sm text-gray-400">Loading account settings...</p>
</div>
);
}
return (
<div className="mx-auto w-full flex-1 overflow-auto px-4 py-8 md:w-[75vw] md:px-0">
<div className="rounded-lg border border-[var(--border-color)] bg-white overflow-hidden">
<Account
tenant={tenantKey}
tenants={tenants}
username={username}
email={email}
mainPlatformKey={platformMainOrg}
isAdmin={isAdmin}
authURL={config.authUrl()}
currentPlatformBaseDomain={config.platformBaseDomain()}
currentSPA="agent"
onInviteClick={() => {}}
onClose={() => router.push("/")}
targetTab="organization"
showPlatformName={true}
useGravatarPicFallback={true}
/>
</div>
</div>
);
}
get_component_info("Account") lists every prop; these are the ones apps use.
<Account> Props| Prop | Type | Description |
|---|---|---|
tenant | string | Platform key |
tenants | Tenant[] | Full list of user platforms from localStorage |
username | string | Username |
email | string | User email (from userData in localStorage) |
mainPlatformKey | string | Main org key — config.mainTenantKey() |
onInviteClick | () => void | Called by the Invite buttons on Management's Users and Teams tabs, only for a user who is not shown the Invites tab; for one who is, those buttons open that tab |
onClose | () => void | Cancel/close callback |
authURL | string | Auth service URL |
isAdmin | boolean | Controls tab visibility -- most tabs require true |
| Prop | Type | Description |
|---|---|---|
targetTab | string | Initial tab: organization, management, invites, onboarding, apps, api, secrets, virtualMachine (Network), monetization, billing, datasets (Benchmarks), memory, advanced — a tab this viewer may not open falls back to their first visible one. The retired integrations still opens Secrets |
helpUrl | string | Help-center address the API page's banner links to ("Help"); without it there is no link |
currentPlatformBaseDomain | string | Base domain for custom domain settings |
currentSPA | string | Current app identifier (e.g., "agent") |
showBenchmarks | boolean | Show the Benchmarks tab (default false; each app opts in) |
showGradebookTab | boolean | Show the Gradebook tab in the profile preview that Management → Users opens for a selected user |
onTabChange | (tabId: string) => void | Fires with "billing" / "monetization" when either opens and with "" when you leave them — mirror it into your URL so those two tabs are linkable |
userActiveApp | UserApp | null | The app whose plan Billing should show |
currentPlan | string | Current plan name, for the Billing header |
defaultSupportPhone | string | Initial support phone on the Organization tab when metadata has none |
enableSupportPhone | boolean | Show the support-phone field at all |
onboardingBasePath | string | Base URL for the copyable per-agent link on the Onboarding tab (<onboardingBasePath>/onboarding/<agent-id>); defaults to the browser's origin |
enableCatalogInvite | boolean | Adds the Courses and Programs invite tabs to the Invites tab (default false) |
enableRbac | boolean | Turn on RBAC permission checks for Management. Only ever pass this together with rbacPermissions — see the warning below |
rbacPermissions | object | The caller's effective permissions, from POST /dm/api/core/rbac/permissions/check/. Defaults to {} |
onLoadGroupPermissions | (permissions: object) => void | Optional; the Teams tab calls it with group-scoped permissions so you can merge them back in |
showPlatformName | boolean | Show platform name badge in sidebar |
useGravatarPicFallback | boolean | Use Gravatar when no org logo |
enableRbacwithoutrbacPermissionshides Management entirely.checkRbacPermission(perms, resource, enableRbac)returnstruewhen RBAC is off, but denies everything when it is on and the permissions object is empty, so the Management tab disappears even for an org admin. Pass both (load them withPOST rbac/permissions/check/, see/iblai-vibe-rbac) or neither. Single-org apps whose admin routes are already admin-gated pass neither, as vibe-starter does; the ibl.ai OS's organization settings dialog passes both.
Account and Profile share one shell — a 280px sidebar (organization
logo, name, key and role chip over grouped navigation) beside a content
column with a fixed header carrying the active tab's title and description.
Below lg the sidebar becomes a compact identity row and a scrolling strip
of pills, the active one solid blue (the profile side:
/iblai-vibe-profile).
Three things are specific to Account:
<button> carrying aria-current="page" when active, inside
nav[aria-label="Organization settings"] (the small-screen strip is
"Organization settings (mobile)") — that is the selector to write e2e
tests against, since Profile uses role="tab" instead. Arrow keys,
Home and End still move between them.targetTab falls back. Asking for a tab this viewer may not open —
a watcher sent to organization, say — lands on the first tab they can
actually see, and it re-runs once tenants arrives and the paywall and
permission checks settle.PlatformAccountSheet opens on
tab="invites" or tab="onboarding", and UserProfileModal on
targetTab="invites" or "onboarding". Neither opens on Apps
(PlatformAccountTab has no apps); open them on another tab and pick
Apps in the sidebar. Both forward enableCatalogInvite.| Tab | Group | targetTab id | Requires |
|---|---|---|---|
| Organization | Workspace | organization | isAdmin === true |
| Management | Workspace | management | enableRbac unset (every viewer, admin or not: with RBAC off each check passes), or enableRbac plus a rbacPermissions object granting one of /platforms/<org>/#can_manage_users, /groups/#list, /roles/#list, /policies/#list, /usergroups/#list, /watchedgroups/#list |
| Invites | Workspace | invites | /platforms/<org>/#can_invite, held by an admin (with RBAC off that check passes) or, with enableRbac on, by any user. With RBAC off a user who is not an admin never sees it |
| Onboarding | Workspace | onboarding | isAdmin === true — it used to be a Management sub-tab that anyone who could open Management saw |
| Apps | Workspace | apps | isAdmin === true — the platform's hosting routes are admin-only, so the tab is hidden rather than failing |
| API | Integrations | api | isAdmin === true and /apitokens/#list (with RBAC off that check passes) — the organization's Platform API Tokens |
| Secrets | Integrations | secrets | isAdmin === true — keys from other services: LLMs, Services, Environment Variables |
| Network | Integrations | virtualMachine | isAdmin === true — the addresses agents' virtual machines may reach (see /iblai-vibe-virtual-machine) |
| Monetization | Finance | monetization | isAdmin === true (or enableRbac on), the organization has monetization enabled and the caller holds /platforms/<org>/#can_sell_items (with RBAC off that check passes automatically) |
| Billing | Finance | billing | The organization's paywall is on (show_paywall) and the caller is an admin or holds /platforms/<org>/#can_sell_items (with RBAC off that check passes, so every viewer sees it) — Credits (the plan picker / Change Plan, Add Credits, Auto Recharge), Spend Limits, Agent Limits, User Limits (see /iblai-vibe-billing) |
| Benchmarks | AI & data | datasets | showBenchmarks and isAdmin === true — the organization's benchmarks (questions and expected answers for evaluating agents), on the same screens as the Evals tab's Manage Benchmarks (see /iblai-vibe-agent-evals) |
| Memory | AI & data | memory | isAdmin === true — organization-wide global and per-agent memories (see /iblai-vibe-memory) |
| Advanced | System | advanced | isAdmin === true — organization-wide switches, among them Allow users to control chat privacy, the gate that turns Incognito on for the organization (PATCH …/chat-privacy-config/, admin-only; see /iblai-vibe-incognito) |
Every tab but Management, Invites, Monetization and Billing needs
isAdmin; the rows above say when those four open to other users. Secrets
is split into LLMs, Services and Environment Variables, and the
Memory tab into Global and Agent memories.
InviteUserDialog (/iblai-vibe-invite), inside the settings page.
enableCatalogInvite adds Courses and Programs tabs.user_onboarding_form), and
each agent card shows the agent's image, or its first letter./iblai-vibe-ops-deploy),
two columns on wide screens: the name, its state (Live, Deploying,
Building, Deploy failed, Build failed, Build canceled, Not deployed
yet), the live address as a link, and each custom domain marked
Verified or Verification required ("Runs on our shared domain —
nothing to set up." when it has none). Delete asks first: the app
goes offline and every domain attached to it is removed. With no apps
it says "Apps you deploy appear here." Hooks (@iblai/iblai-js/data-layer):
useGetHostingProjectsQuery, useGetHostingProjectDomainsQuery,
useDeleteHostingProjectMutation; REST in /iblai-api-hosting.The rail sorts keys by whose they are: a key from another service goes under Secrets, a key ibl.ai makes for your own software under API.
API — "Let your own software work with ibl.ai." A banner (with a
Help link when you pass helpUrl), Add API Key, and the keys:
Name, Permission Mode, Created, Expires ("Never" when it has none), with a
pencil and a bin per key. Add API Key asks for a name, an optional
expiry date and a Permission Mode — Owner permissions (the key can do
what you can do) or Token policies (only what the policies and groups
you pick allow) — and shows the key once. These are the same keys as an
agent's API tab (/iblai-vibe-agent-api); REST in /iblai-api-token.
Secrets — "Keys from other services, like OpenAI or Stripe, that ibl.ai and your agents use." Three sub-tabs, each with a sentence, an Add button and a table (LLMs and Services list each key's name and its masked start):
/iblai-vibe-agent-virtual-machine). Add Service asks for that
service's own fields./iblai-vibe-virtual-machine).A list the viewer may not read hides its own tab. REST:
/iblai-api-integration.
Network — the networks agents' virtual machines may reach
(/iblai-vibe-virtual-machine).
API and Secrets on their own. The ibl.ai OS opens these two from its sidebar without the settings rail. Both are exported:
"use client";
import { ApiTab, SecretsTab } from "@iblai/iblai-js/web-containers";
export function ApiPage({ tenantKey, username }: { tenantKey: string; username: string }) {
return <ApiTab tenantKey={tenantKey} username={username} helpUrl="https://help.example.com" />;
}
export function SecretsPage({ tenantKey, username }: { tenantKey: string; username: string }) {
return <SecretsTab tenantKey={tenantKey} username={username} />;
}
ApiTab also takes enableRbac and rbacPermissions (listing needs
/apitokens/#list, adding /apitokens/#create). UserProfileDropdown fills
helpUrl from its own Help item.
Management is itself tabbed — Users, Groups, Roles,
Policies, Teams, Alerts and Applications. The first six
each show when the matching permission is granted (can_manage_users,
/groups/#list, /roles/#list, /policies/#list, /usergroups/#list or
can_invite, /watchedgroups/#list); Applications needs none. A pure
watcher (/watchedgroups/#list, not an admin) gets only Users, listing
the users they may watch. The Invite buttons on Users and Teams open the
Invites tab, or call onInviteClick for a user who is not shown it.
Picking a user in Users opens their profile in a read-only preview — the
same Profile component as /iblai-vibe-profile, minus Security, with the
Usage tab showing that user's AI spend. showGradebookTab is the one
customization this path forwards.
| Shot | |
|---|---|
| Workspace | Organization · Invites · Onboarding · Apps · Delete an app · Advanced |
| Management | Users · Groups · Roles · Policies · Teams · Alerts · Applications |
| Invites | Invite from Management opens the Invites tab · with enableCatalogInvite: Courses · Programs |
| Integrations | API · Add API Key · Secrets: LLMs · Add LLM · Services · Add Service · Environment Variables · Network |
| Memory | Global · Agent |
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build -- must pass with zero errorspnpm test -- vitest must pass/account in the browser as /iblai-vibe-ops-test says: open it,
use every control this skill added, read the console, check the phone width.showBenchmarks; an admin sees Invites,
Onboarding and Apps under Workspace — then open each tab the sidebar
lists; none may 404 or come up blank.@iblai/iblai-js/web-containers/next (uses next/image)mentorReducer and mentorMiddlewareinitializeDataLayer(): 5 args (v1.2+)@reduxjs/toolkit: Deduplicated via webpack aliases in next.config.tscurrentPlatformBaseDomain: Must be {config.platformBaseDomain()} — uses the config helper, not a raw env var. This is correct and intentional.Account uses bg-white and bg-gray-50
internally. Do NOT override them; wrap it in the white container (Step 3).h-full); the sidebar and the content panel only scroll independently
when that parent is bounded — h-[80vh] or min-h-[640px] is enough.
The reference wrapper is full width with px-4 on a phone, md:w-[75vw] above.account-page.png (opens in a new tab)account-settings/account-settings-advanced.png (opens in a new tab)account-settings/account-settings-api-add.png (opens in a new tab)account-settings/account-settings-api.png (opens in a new tab)account-settings/account-settings-apps-delete.png (opens in a new tab)account-settings/account-settings-apps.png (opens in a new tab)account-settings/account-settings-invites.png (opens in a new tab)account-settings/account-settings-management-alerts.png (opens in a new tab)account-settings/account-settings-management-applications.png (opens in a new tab)account-settings/account-settings-management-groups.png (opens in a new tab)account-settings/account-settings-management-onboarding.png (opens in a new tab)account-settings/account-settings-management-policies.png (opens in a new tab)account-settings/account-settings-management-roles.png (opens in a new tab)account-settings/account-settings-management-teams.png (opens in a new tab)account-settings/account-settings-management-users-invite-courses.png (opens in a new tab)account-settings/account-settings-management-users-invite-programs.png (opens in a new tab)account-settings/account-settings-management-users-invite-users.png (opens in a new tab)account-settings/account-settings-management-users.png (opens in a new tab)account-settings/account-settings-memory-agent.png (opens in a new tab)account-settings/account-settings-memory-global.png (opens in a new tab)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