Cofounder

Managed Setup

One setup run gives your company a code repository, a hosted app, a database with sign-in, analytics, a company inbox, a Stripe test sandbox, and a roadmap.

Setup gives your company the accounts and projects a working app needs, in one run. It creates real accounts and projects (GitHub, Vercel, and the rest) at no cost to you, so during onboarding your agent starts it as soon as your company is created and named.

Set Up One Resource

Set up a repository, hosting project, or production database without starting or changing an onboarding setup run. Each operation affects only its named resource:

| Resource | MCP start / status | CLI start / status | API start / status | | --- | --- | --- | | Repository | code_repository_setup / code_repository_setups_get | cofounder code repository setup --idempotency-key <key> --no-wait / cofounder code repository setups get --job-id <id> | POST /cofounder-cli/v1/company/resource-setup/repository / GET /cofounder-cli/v1/company/resource-setup/repository/{job_id} | | Hosting | hosting_setup / hosting_setups_get | cofounder hosting setup --idempotency-key <key> --no-wait / cofounder hosting setups get --job-id <id> | POST /cofounder-cli/v1/company/resource-setup/hosting / GET /cofounder-cli/v1/company/resource-setup/hosting/{job_id} | | Database | database_setup / database_setups_get | cofounder database setup --idempotency-key <key> --no-wait / cofounder database setups get --job-id <id> | POST /cofounder-cli/v1/company/resource-setup/database / GET /cofounder-cli/v1/company/resource-setup/database/{job_id} |

The CLI waits by default in an interactive terminal. Add --no-wait to return the job ID immediately, then use it with the matching status command to check progress. Retry with the same --idempotency-key value to reuse the setup job.

If a matching resource already exists, setup returns it unchanged. Existing repository imports stay linked and are not reseeded or converted. Hosting and database setup can succeed while returning a result status of pending; this means provider readiness, such as address verification, is still in progress.

Each operation affects only its named resource. They do not automatically connect resources, configure cross-resource settings, or deploy an app. You can import a repository separately. Hosting and database setup do not change a repository or one another.

Other independent setup tools are email_provision (cofounder email provision), email_app_email_setup (cofounder email setup), phone_provision (cofounder phone provision), and payments_setup (cofounder payments setup). These tools are separate from repository, hosting, and database setup.

Set up analytics independently

Use analytics_setup to create or reuse your company's product or marketing analytics project and install its production tracking variables on managed hosting. This also retries missing analytics after company setup, without restarting the other setup steps.

cofounder analytics setup --hosting-resource-id <hosting_resource_id> \
  --purpose product --idempotency-key analytics-repair-1 --no-wait
cofounder analytics setups get --job-id <job_id>

Find the hosting resource ID with resources_list or cofounder resources list. Check progress with analytics_setups_get. Reuse the same key when repeating a call. After a failed setup, resolve its reported cause and use a new key to try again. An account that requires authorization needs support to restore access first. Setup returns the remaining tracking-code, deployment, and event-verification steps.

MCPCLIAPI

What You Get

The combined onboarding setup creates the following resources:

WhatWhat it's for
A GitHub repositoryHolds your app's code, so changes can be built, reviewed, and undone.
Vercel hosting, with a first deployPuts your app online at a link you can share.
A connected signup formSaves each signup from the starter site's waitlist form as a contact. Setup creates a key only that site can use and adds and to its Production environment.
A Supabase database with sign-inSaves your customers' accounts and data and lets people log in. Setup sets the sign-in redirect links, puts the database settings into your hosting, and applies your app's first database migrations.
PostHog analyticsShows who signs up and what they use, once your app sends tracking events.
A company email inboxLets customers reach you, and sends email as your company.
A Stripe test sandboxLets you try checkout before any real money moves.
A roadmapThe shared plan for what to work on next.

What changes the list:

  • PostHog analytics: your website needs to send tracking events before analytics can show activity. If an existing managed website is missing its analytics project, set up analytics independently.
  • Repository choice: an existing GitHub repository gets hosting, a database, and the rest, but no new repository and no first deploy. See Choose Your Repository.
  • Stripe country: the sandbox is made only when you pass your business country with --stripe-country <CC> (stripe_country on MCP). Without it, setup status marks that step not_applicable. Add a sandbox later with cofounder payments setup --method sandbox --provider stripe --country <CC>, without running setup again. A run's Stripe country can't be changed afterwards.
  • Earlier setups: a new company gets one app on one main branch, with no separate staging environment. A company that already had a repository, hosting, or a database from an earlier setup keeps its layout: an app and a marketing site, each with its own repository, hosting, and analytics, plus a staging environment for each.
  • Sign-in email: new runs configure Supabase Auth email for the app's primary Supabase project. Sign-up, sign-in, and password reset emails go out from the company's shared sender under the company name. Setup waits for sender verification and reports failures in setup status. Older runs keep their recorded selections. Check the installed configuration with the email tools. A successful setup doesn't confirm that email reaches an inbox.

A company phone number isn't part of setup. Adding one buys a real number, which has a recurring cost and is released only when the company is deleted. On the CLI, add --phone to setup (with --country, default US, and --area-code to choose the number). It's requested right after setup starts, not as a setup step, so if it fails, retry with cofounder phone provision, not setup retry. On MCP, call phone_provision separately.

To require specific capabilities, use setup start-profile. For a company inbox, pass --required-capability company-email with the inbox's address:

cofounder company setup start-profile --profile managed-app-v1 \
  --required-capability company-email \
  --company-email '{"local_part":"hello"}'

Choose Your Repository

Before setup, decide which code to use:

  • To use your existing GitHub repository, pass --repository-source github. Setup prepares hosting and a database but creates no starter repository and deploys no app code. Then run cofounder repo import and connect GitHub. If only one repository is available, it's picked for you. Otherwise, choose one.
  • To use a local folder, pass --repository-source local. Setup creates a managed repository with no starter theme. Afterwards, preview with cofounder repo upload <folder> --dry-run, review the changes, then run cofounder repo upload <folder> --yes --expected-head <base_sha> using the preview's revision. The upload replaces the repository's files. Its history and your folder's Git metadata stay intact. No personal GitHub connection is needed.
  • To start new code, pass --repository-source managed for the managed starter. New starters get a random visual theme, kept across retries. You don't need to pick a business type.
cofounder company setup --repository-source github
cofounder company setup status
cofounder repo import

On MCP, pass repository_source: "github", "local", or "managed" to company_setup_start. The first setup saves your choice. Retries keep it. Leaving it out resumes the saved choice, or uses managed for a new setup.

After import or upload, follow the returned next_steps to fix the code, configure Vercel and Supabase, add missing secrets securely, deploy, and check the app. When setup created a PostHog project, an imported or uploaded app may still need tracking code added. After a local upload, clone the repository into a new folder with cofounder repo clone <new-folder> and keep working there. Uploading needs an agent that can read files on your computer.

Run Setup

Setup needs a confirmed company name, because the company inbox is created under it. A company created through cofounder company create already has one. A company that still carries a placeholder name is refused before anything is created, with an error asking you to set the name. Set it, then start setup:

cofounder company settings update --name "Acme Salon Software"
cofounder company setup --stripe-country US
cofounder company setup status

Setup returns right away and keeps running. setup status shows each step until it finishes. company status is the one-line version. To watch live, run cofounder watch company. Your app is live once its deploy is ready and its link loads.

If a Step Fails

Don't start setup over. Take the run_id from setup status and pass it to cofounder company setup retry <run-id>, which picks up from the failed step and keeps the run's original choices. Running setup again on a finished or failed run returns that run unchanged.

If setup status says the company email needs a company name, set it with cofounder company settings update --name <name>, then retry the run.

For billing failures, run cofounder company billing resources retry --binding-id <id>.

Commands

Setup:

MCPCLIAPI
,
,

Resources setup made, and choosing which one commands use. See Company resources.

MCPCLIAPI
,

Renaming the company doesn't rename its resources. The rename tells your agent to relabel the ones still named after the old name; that changes their display names, not repository, project, domain, or inbox addresses.

On the CLI, cofounder company resources show <primitive> <selector> looks one up by type.

Access for people to the managed GitHub repositories and Vercel projects:

MCPCLIAPI
,