Guide/Admin
Back to Guide

Admin

Admin Role

Admin users have elevated permissions across VibeCodes. The admin role is controlled by the is_admin flag on the user record. Admins can:

  • View the AI usage analytics dashboard
  • Toggle AI access on or off for any user
  • Adjust per-user daily AI call limits
  • Delete any idea (not just their own)
  • Delete non-admin user accounts
  • View private ideas (even without being a collaborator)

AI Usage Dashboard

The admin page at /admin provides a comprehensive view of AI usage across the platform. The dashboard includes:

  • Stats cards — total AI calls, total tokens used, estimated cost, and a breakdown of platform vs BYOK (bring-your-own-key) usage
  • Filter bar — filter by date range and action type (enhance idea, generate tasks, etc.)
  • Recent activity log — a chronological list of all AI calls showing user, action, token counts, and model used

Tip: Use the date range filter to track usage trends over time and identify users who may need their daily limits adjusted.

User Management

The admin dashboard includes a user management table where you can control AI access for each user:

  • Toggle AI access — enable or disable AI features for any user. When disabled, all AI buttons are hidden from that user's interface.
  • Set daily limits — adjust the per-user daily AI call cap. The default is 10 calls per day. Set to unlimited for trusted users.
  • View usage — see each user's current usage against their daily limit

Content Moderation

Admins have moderation capabilities to keep the platform clean:

  • Delete any idea — remove ideas that violate guidelines, along with all associated data (comments, votes, boards)
  • Delete users — remove non-admin user accounts. This permanently deletes the user and cascades to all their data. Admin accounts cannot be deleted by other admins.

Note: Deletion is permanent and cannot be undone. Notifications that referenced deleted ideas will persist but show the idea as removed.