Lesson 4 of 7 · HQ fundamentals
Deploy a Private HQ App
Build a small web app with HQ, make it visible only to your company, and check that outsiders can’t get in.
- Written path
- 6 steps
Before You Begin
HQ is signed in to a company that’s set up for your team (see Lesson 2).
You know roughly what you want the page to show.
You know which company should own it and who should see it.
You can open a private or incognito browser window to test it.
Step-by-step walkthrough
Step 1: Describe the app
Run /deploy and describe what you want. Stick to information that’s fine for your team to see, and don’t ask the page to show any API keys.
CommandType exactly as shown/deployCreate a mini site that summarizes approved company information without exposing credentials.ExpectedHQ starts building the app.
Step 2: Pick the company, if HQ asks
HQ usually knows the company from the folder you’re in. If you’re in more than one company, it shows you a preview and asks which one should own the app before it publishes anything.
PromptSend in your AI sessionDeploy this to [company name].ExpectedThe app belongs to the right company.
Step 3: Make it company-only
Tell HQ that only your company should be able to see it.
PromptSend in your AI sessionPlease make it company-only, so only members signed in to [company name] can see it.ExpectedHQ locks the app so people have to sign in as a member of your company.
Step 4: Wait for it to go live
Keep the session open while HQ builds the app, shows you a preview, runs its safety checks, and publishes it.
ExpectedHQ tells you the app is live, only your company can see it, and it tested the sign-in page.
Step 5: Open it while signed in
Open the link HQ gives you in your usual browser, where you’re signed in.
Go toOpen this placeOpen the app link in your usual browserExpectedThe app loads, and no API keys are visible.
Step 6: Make sure outsiders can’t get in
Open a private browser window and go to the same link without signing in.
Go toOpen this placeOpen the app link in a private browser windowExpectedYou get a sign-in page instead of the app.
You’re done when
Your teammates can open the app after signing in, a private window gets a sign-in page, and no API keys show up on the page.
Hit a snag? Here’s the fix.
HQ deployed to the wrong company
Say “deploy this to [company name]” and run it again. Re-deploying the same project updates the same link.
The page opens without asking anyone to sign in
Ask HQ to redeploy it company-only. Every link has exactly one access level, and public is the default.
A teammate sees a sign-in wall they can’t get past
They need to sign in with the email that’s a member of your company. If they aren’t a member yet, invite them first.
Something else going on? The HQ knowledge base walks through the most common fixes, or reach out and we’ll help you get unstuck.