Documentation/Workspaces/AI apps: hub, tools, and deploy
AI apps: hub, tools, and deploy
How Apps hub, AI Tools, the app Overview page, and AI Operations work together — from Build preview on the AI VM to a lasting HTTPS Site on *.sites.bstrapr.com.
- Apps hub
- AI Tools
- AI Operations
- HTTPS Sites
- About 15 minutes
1What you get
A Bstrapr AI workspace runs OpenHands on a builder VM. Apps you build or import become durable Applications with their own Git remote, tool history, and optional runtime Site. Preview while building stays on the AI VM; production runs on a separate Site after you provision it.
- Builder VM ≠ runtime Site. Preview URLs use *.ide.bstrapr.com/{port}/. Live share URLs use https://app-<id>-<hex>.sites.bstrapr.com/ after Provision Site.
- Landing page is Apps hub (not nested under Tools). Tabs: AI Tools | AI Operations.
- Open an app for Overview (Deployment + pending changes + tools + activity), Deployments, Code changes, and Activity.
2Apps hub
Workspaces → Manage AI workspace (or /dashboard/workspace/ai?workspace=ID). With the workspace Running, the landing view is Apps hub.
- Workspace apps — open an existing Application.
- Import from Git — after Git integration is connected: paste owner/repo (optional branch / app name) or Browse repositories → Connect repository. Each import is a new Application; you can import many and switch anytime.
- Build new app — starts the Build an App flow on AI Tools.
- How you work — Import or Build → Application → AI Tools (Fix / Review / Tests) → App history → AI Operations (deploy that app).
- LLM key, Git token, and Workspace access open from hub popups (not buried only under Tools).
3AI Tools — Build, Fix, Review, Tests
AI Tools runs durable tool flows with a stepper. Fix / Review / Tests skip the Environment step (Describe → Approve → Results). Continue as Goal keeps iterating in the same Goal when work is partial or you want freeform follow-ups.
- Build an App — Choose → Define (name, description up to 20k characters, features) → Environment → Approve plan → Building → Preview → Continue as Goal or Mark complete. Completed needs preview-path proof.
- Sample briefs — on Define, pick Sample (SaaS / Landing / Internal / API) then Use sample brief or Copy sample. Edit to match your product.
- Preview step — Open running application uses a secure preview tab (ticket cookie). URL looks like https://app-<workspace>-….ide.bstrapr.com/<port>/. Partial means outstanding work; read agent activity, then Continue as Goal.
- Fix a bug — pick Application → symptoms → plan → approve. Opens a fix/… branch and PR. Agent stays pinned to that app’s codebase.
- Merge gate — on the app page: Review code on the branch → Generate tests on the branch → Approve & merge. After merge, Site redeploy can start in the background when a Site exists.
- Review code — report only (REVIEW.md); Preview shows the Review report, not a live app.
- Generate tests — writes tests and shows Test results in Bstrapr (passed/failed, command, summary).
- Your applications / Your builds — open App history (dashboard/workspace/ai/app?workspace=ID&app=APP_ID) or resume a run with Open in AI Tools.
4App Overview — preview, links, and Site details
Open an Application → Overview. The Deployment card is the source of truth for “where is my app?”
- No Site yet — App URL is blank (—). Build preview shows the temporary *.ide.bstrapr.com link when a Build run still has a live preview. AI Tools links back to that Build run (preview / Continue as Goal).
- Provision Site — primary button goes to AI Operations for that app (first-time cloud Site).
- Site ready — App URL is https://app-<id>-<hex>.sites.bstrapr.com/ (Bstrapr HTTPS gateway → Tailscale → Site :3000). Direct http://<public-ip>:3000 still works.
- Site details after provision — Runtime site name, public IP, VPN IP, region/size/VM id, app dir, Agent SSH (ssh bstrapr-ai@<vpn-ip>, key auth from the AI workspace), and Root password (Reveal/Copy) for Sites provisioned after password capture. Older Sites may say password was not stored.
- Open Build preview / Open Build conversation / Open deployment conversation when those URLs exist.
- Do not confuse Build preview with App URL. Preview is temporary on the builder; App URL needs a ready Site on the gateway map.
5AI Operations — Provision, Redeploy, health
AI Operations is where deploy and provision live (not the Tools stepper). From the app page use Provision Site or Redeploy to Site, or open AI Operations with the app selected.
- First time — Provision a Site: DigitalOcean cloud config, optional Site name (default app-<id>-<slug>), Git branch, Git version (branch tip / merged delivery / app revision). Bstrapr creates the droplet (Docker + Tailscale), registers the Site, bakes bstrapr-ai + the AI workspace public key (no manual Install on site), auto-grants Site reachability, runs the first deploy, and stores a root console password on the app.
- Later — Redeploy: pick App, Git branch, revision → push to the existing Site. Check health proves HTTP on the Site.
- After deploy — prefer the *.sites.bstrapr.com App URL. Datastores stay loopback-only on the Site. Custom domains can point at the Site public IP later.
- Apps without a Git remote — Sync to Git (or Import) before branch-tip redeploy.
- Deployment conversation — Ops can open or link an OpenHands conversation for that Site deploy.
- Not Connect Device — do not enroll the AI builder VM as a person device on the runtime Site.
6Sample Build App briefs
On AI Tools → Build an App → Define, choose Sample → Use sample brief (or Copy sample). Types: SaaS / web app (CustomerHub), Landing / marketing (LaunchPage), Internal tool (OpsBoard), API service (ItemsAPI).
- SaaS / web app — Auth, customers, dashboard. Suggested name: CustomerHub.
- Landing / marketing — Hero, CTA, lead form. Suggested name: LaunchPage.
- Internal tool — Ops table + workflows. Suggested name: OpsBoard.
- API service — REST + health + tests. Suggested name: ItemsAPI.
7LLM keys vs training
Bstrapr does not train or fine-tune models for you. Under LLM configuration you paste an API key for Claude, Gemini, OpenAI, or DeepSeek — that key is used for inference while the agent builds and fixes apps.
- To change how the agent behaves without training a model, teach it with OpenHands skills: repo AGENTS.md and .agents/skills/*/SKILL.md (see Open AI workspace → Customize).
- Bring-your-own fine-tuned endpoint is not a first-class Bstrapr setting today — use a supported provider API key.
8URL cheat sheet
- Build / Fix preview → https://…ide.bstrapr.com/<port>/ (AI workspace gateway + preview cookie).
- Production App URL → https://app-<id>-<hex>.sites.bstrapr.com/ (only when Site status is ready or degraded and mapped).
- Agent Canvas → Open AI workspace (ws-…ide.bstrapr.com/canvas/…).
- If a sites host 404s while Overview says No Site — expected. Provision a Site first.
9Troubleshooting
- Build plan spinning / description too long → shorten the brief (max 20,000 characters including selected features) and try again.
- Partial after many hours → Goal ended with outstanding checks; open the Build run from Overview → AI Tools, read agent activity, Continue as Goal.
- Preview works, App URL blank or 404 → no ready Site yet, or Site not on the HTTPS gateway map. Use Provision Site / wait until Ready.
- Approve & merge disabled → finish Review code and Generate tests on that Fix branch first.
- Agent cannot SSH to Site → Site reachability grant + Sync SSH to agent; for auto-provisioned app Sites the key is baked in — use ssh bstrapr-ai@<vpn-ip> from Open AI workspace.
- Need root on the Site VM → Overview → Root password (new Sites). Recovery console via the cloud provider if password was never stored.
Exact app names, preview ports, Site IPs, SSH lines, and root passwords appear only in your signed-in dashboard for the workspace and app you selected.
Open AI workspace