Help us improve
Share bugs, ideas, or general feedback.
From claude-commands
Authenticates with the AI Universe MCP server to enable multi-model /secondo commands and Firebase project auth (AI Universe or WorldAI).
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:ai-universe-authThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides authentication setup for the AI Universe MCP server, which powers the `/secondo` command for multi-model AI feedback.
Authenticates with the WorldAI Firebase project to obtain ID tokens, auto-refreshes expired tokens, and provides login/token/status commands for auth workflows.
Foundational Firebase CLI setup, authentication, and project management. Use for checking CLI version, initializing, authenticating, setting projects, and configuring google-services/GoogleService-Info files.
Guides SecondMe third-party app development: OAuth login (Client ID/Secret, token exchange), MCP integration, Agent Memory/Act stream APIs, scaffolding, review submission, hackathons.
Share bugs, ideas, or general feedback.
This skill provides authentication setup for the AI Universe MCP server, which powers the /secondo command for multi-model AI feedback.
IMPORTANT: Always look for auth-cli.mjs in these locations (in order of preference):
| Location | Description | Has node_modules |
|---|---|---|
scripts/auth-cli.mjs | Project-local (recommended) | Needs parent project |
~/.claude/scripts/auth-cli.mjs | User-global fallback | Yes (if installed) |
~/projects/ai_universe/scripts/auth-cli.mjs | Source of truth | Yes |
To run the script, use a directory that has node_modules with express installed:
# From ai_universe project (always works)
cd ~/projects/ai_universe && node scripts/auth-cli.mjs status
# Or from ~/.claude if deps installed
node ~/.claude/scripts/auth-cli.mjs status
The script supports two Firebase projects. Use the correct one for your use case:
| Project | Firebase ID | Use Case | Command |
|---|---|---|---|
| AI Universe | ai-universe-b3551 | /secondo, multi-model synthesis | node scripts/auth-cli.mjs token (default) |
| WorldAI | worldarchitecture-ai | Your Project app auth | node scripts/auth-cli.mjs token --project worldarchitecture-ai |
ai-universe-b3551) - DEFAULT/secondo command for multi-model second opinions# Default - no flag needed
node scripts/auth-cli.mjs login
node scripts/auth-cli.mjs token
worldarchitecture-ai)# Explicit project flag required
node scripts/auth-cli.mjs login --project worldarchitecture-ai
node scripts/auth-cli.mjs token --project worldarchitecture-ai
npm install express)# AI Universe (default) - for /secondo
node scripts/auth-cli.mjs login
# WorldAI - for Your Project
node scripts/auth-cli.mjs login --project worldarchitecture-ai
What happens:
~/.ai-universe/auth-token-<project-id>.jsonnode scripts/auth-cli.mjs status
Output includes:
# Get token (auto-refreshes if expired, does nothing if valid)
TOKEN=$(node scripts/auth-cli.mjs token)
echo $TOKEN
# For WorldAI project
TOKEN=$(node scripts/auth-cli.mjs token --project worldarchitecture-ai)
Token Behavior:
This enables seamless 30+ day sessions.
node scripts/auth-cli.mjs refresh
node scripts/auth-cli.mjs test
node scripts/auth-cli.mjs logout
# Option 1: Run from ai_universe project
cd ~/projects/ai_universe && node scripts/auth-cli.mjs status
# Option 2: Install deps in ~/.claude
cd ~/.claude && npm install express
# Option 3: Copy working script
cp ~/projects/ai_universe/scripts/auth-cli.mjs ~/.claude/scripts/
This means the token was created for a different Firebase project than you're trying to use.
# Check which project your token is for
node scripts/auth-cli.mjs status
# Look for "Firebase Project:" line
# Re-login for the correct project
node scripts/auth-cli.mjs login # AI Universe
node scripts/auth-cli.mjs login --project worldarchitecture-ai # WorldAI
lsof -ti:9005 | xargs kill -9
# Auto-refresh (silent)
TOKEN=$(node scripts/auth-cli.mjs token)
# Or manual refresh
node scripts/auth-cli.mjs refresh
# If refresh token expired, re-login
node scripts/auth-cli.mjs login
~/.ai-universe/auth-token-<project-id>.json (separate file per project)| Command | Project | Authentication |
|---|---|---|
/secondo | AI Universe | node scripts/auth-cli.mjs token (default) |
| WorldAI API | WorldAI | node scripts/auth-cli.mjs token --project worldarchitecture-ai |
The source of truth for auth-cli.mjs is ~/projects/ai_universe/scripts/auth-cli.mjs.
To sync to other locations:
# Sync to project .claude/scripts/
cp ~/projects/ai_universe/scripts/auth-cli.mjs .claude/scripts/
# Sync to user ~/.claude/scripts/
cp ~/projects/ai_universe/scripts/auth-cli.mjs ~/.claude/scripts/