From lugui-ai
One-time setup for the lugui-ai suite — log in on the web with your @lugui.ai account, paste the token shown, and validate it. Self-service, no admin, no Python.
How this command is triggered — by the user, by Claude, or both
Slash command
/lugui-ai:setupFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /lugui-ai:setup Authenticate this machine for the **lugui-ai** suite (used today by page publishing, and by future features). Authentication is a **personal access token** (`lgp_...`) that you obtain yourself via **web login**: you open a URL, sign in with your **@lugui.ai** account, and the page shows you a token to copy. No admin issues it for you. Publishing is done entirely with `curl` — no Python, no libraries. ## Steps for Claude (do these IN ORDER) 1. **Determine the API base URL.** If `~/.lugui/config.json` exists and has a `pages_api`, reuse it. Otherwise use the default ...
Authenticate this machine for the lugui-ai suite (used today by page
publishing, and by future features). Authentication is a
personal access token (lgp_...) that you obtain yourself via web login:
you open a URL, sign in with your @lugui.ai account, and the page shows you a
token to copy. No admin issues it for you. Publishing is done entirely with
curl — no Python, no libraries.
Determine the API base URL. If ~/.lugui/config.json exists and has a
pages_api, reuse it. Otherwise use the default
https://pages-api.coolify.lugui.ai. (Don't overwrite an existing
pages_api unless the user asks.)
Check if already set up — don't make the user log in again for nothing.
If the config already has a token, validate it FIRST:
curl -sS -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer <token>" "<pages_api>/pages"
/lugui-ai:pages:publish ./page.html) and STOP — skip the login.Open the login page in the user's browser at {pages_api}/login.
Detect the OS and run the matching opener (substitute the real {pages_api}):
open "<pages_api>/login" # macOS (Darwin)
xdg-open "<pages_api>/login" # Linux
start "" "<pages_api>/login" # Windows
If the opener isn't available or fails, don't error — just fall back to showing the URL. Then tell the user:
Abri o login no navegador. Logue com sua conta @lugui.ai, copie o token
lgp_...que aparecer e cole aqui. (Se não abriu sozinho, acesse:{pages_api}/login)
Ask the user to paste the token (lgp_xxxxxxxx...).
~/.lugui/config.json.Write / update ~/.lugui/config.json (keep the existing pages_api if
there was one):
{
"pages_api": "https://pages-api.coolify.lugui.ai",
"token": "lgp_..."
}
Lock it down so other users can't read the token:
mkdir -p ~/.lugui && chmod 700 ~/.lugui
# ...write the file...
chmod 600 ~/.lugui/config.json
Validate the new token (same curl as step 2):
/lugui-ai:pages:publish ./page.html.{pages_api}/login, copy a fresh
token, and retry. Do NOT keep a bad token.pages_api URL is reachable.~/.lugui/config.json (it holds the token).{pages_api}/login to get a new one and run /lugui-ai:setup./setupInitializes or resumes project setup via interactive Q&A, creating conductor/ artifacts for product definition, guidelines, tech stack, workflow, and style guides.
/setupWalks an enterprise admin through configuring the Claude Office add-in to call their own cloud (Vertex, Bedrock, Foundry, or gateway), producing a customized manifest.xml for M365 deployment.
/setupChecks local Codex CLI readiness, prompts to install if unavailable via npm, and optionally toggles stop-time review gate.
/setupInteractive setup wizard that detects installed AI providers, configures authentication, and optimizes token usage. Auto-runs on first install and surfaces a status dashboard on manual invocation.
npx claudepluginhub lugui-co/lugui-ai-plugin --plugin lugui-ai