Skip to content

Connect GitHub (one-click repo)

The Build Studio’s Create GitHub repo option pushes your generated starter (constitution, spec, agent prompt, recipe, package.json) straight to a brand-new repository — no zip, no terminal.

  1. Make a GitHub account (free): go to github.com/signup, enter an email, password, and username, and verify your email. That’s it.
  2. In the Build Studio, finish steps 1–2, then on Generate pick Create GitHub repo.
  3. Click Connect GitHub & create repo. GitHub asks you to authorize the app with permission to create a public repository — review and approve.
  4. You’re returned to the Studio; click Create. Your new repo opens with all the starter files in it. Clone it and point your agent at it.

The one-click needs one GitHub OAuth app and two Worker secrets — registered once, for the whole deployment. This is the app’s identity (the name builders see on GitHub’s authorization screen), not a personal access token: it simply lets any builder authorize with their own account. Until these are set, the Studio shows a “not configured” message and offers the .zip instead.

  1. Register an OAuth app: GitHub → Settings → Developer settings → OAuth Apps → New OAuth App.
    • Homepage URL: https://wecanjustbuildthings.dev
    • Authorization callback URL: https://wecanjustbuildthings.dev/api/github/callback
  2. Copy the Client ID and generate a Client secret.
  3. Add them as Worker secrets (Cloudflare dashboard → your Worker → Settings → Variables and Secrets), or via CLI:
    Terminal window
    npx wrangler secret put GITHUB_OAUTH_CLIENT_ID
    npx wrangler secret put GITHUB_OAUTH_CLIENT_SECRET
  4. Redeploy. /api/github/status will report configured: true and the one-click activates.