# Cofounder Docs > CofounderOS lets your own agent run your company through MCP or the cofounder CLI. This document contains the full content of all documentation pages for AI consumption. --- ## Introduction **URL:** https://docs.cofounder.co/introduction **Description:** Give your AI agent the tools to run a company. Connect Claude, ChatGPT, Codex, Cursor, or any coding agent to CofounderOS through MCP or the cofounder CLI. CofounderOS gives your AI agent the tools to run a company: code and deploys, databases, domains, email, phone, payments, the CRM, and ads. You make the decisions. Your agent does the work and asks before it spends money or sets anything up. ## Connect Your Agent The fastest way is to paste this prompt into your agent's chat. It adds Cofounder, signs you in, and walks you through setup: ```text Add the Cofounder MCP server at https://api.cofounder.co/mcp, sign in to Cofounder, then follow https://app.cofounder.co/mcp-onboarding/skill.md to onboard me. Before company setup, ask whether I want to use an existing GitHub repository, upload a local folder, or start with a new repository. If you are ChatGPT on the web and cannot add a server from chat, send me to https://app.cofounder.co/os/setup/chatgpt to connect it myself, then continue. ``` To set it up yourself, use MCP or the CLI. Both give your agent the same tools and guides. - **MCP** works in Claude, ChatGPT, Codex, Cursor, and VS Code. Add this server URL; there's nothing to install: ```text https://api.cofounder.co/mcp ``` - **CLI** works for agents that run commands in a terminal, and for scripts and CI: ```sh npm install --global @generalintelligence/cofounder@latest vercel@59.19.0 cofounder auth login ``` Then tell your agent: ```text Get started with Cofounder. ``` It signs you in, finds or creates your company, and suggests a first task. [Connect an Agent](/get-started/connect-an-agent) has a prompt for terminal agents, one-click installs, and setup for each app. ## What Your Agent Can Do Your agent works on every part of the company: - Start it. Your agent [creates the company](/guide/create-a-company), learns your pitch and market, and sets up the repository, hosting, database, and inbox in one [managed setup](/guide/managed-setup) run. - Build and ship. It works on your product's code, [deploys it](/guide/deploy-and-operate), runs the database, and connects a [domain](/guide/domains). - Sell and talk to customers. It [sends email](/guide/communicate-and-sell), receives texts, keeps the [CRM](/guide/crm) up to date, finds prospects, and books meetings. - Grow. It runs [ads](/guide/ads), publishes social posts, improves [search rankings](/guide/seo), and makes images and video with [Media](/guide/media). - Money and paperwork. It takes [payments](/guide/payments), tracks spend, and [incorporates](/guide/incorporate) the company. Before it acts, your agent reads Cofounder's guides. They tell it what to check first, which steps need your approval, and how to report what it did ([How Your Agent Works](/get-started/how-your-agent-works)). You follow along and answer its questions in the [dashboard](/dashboard/overview) at [app.cofounder.co/os](https://app.cofounder.co/os). ## Company Resources A resource is something your company uses, like a database, code repository, email inbox, domain, or phone number. Cofounder tracks each one and tells your agent which are ready to use and which need attention. ## MCP, CLI, and API Every operation is available through MCP, the `cofounder` CLI, and a REST API for your own scripts. Guide pages list all three side by side: | MCP | CLI | API | | --- | --- | --- | | `company_create` | `cofounder company create` | `POST /cofounder-cli/v1/company` | A few commands exist in only one place. `auth` and `doctor`, for example, are CLI-only. Pages mark these where they come up. If you used Cofounder as a browser product, start with [Migrating from the Web App](/migrating-from-web-app). --- ## Migrating from the Web App **URL:** https://docs.cofounder.co/migrating-from-web-app **Description:** Used Cofounder 2 or Cofounder Canvas? Your account and companies carry over, and your own agent now runs them through MCP or the CLI. If you used Cofounder 2 or Cofounder Canvas, you keep the same account and companies. Your companies, files, connections, and billing carry over unchanged. What changes is who does the work: your own agent, through MCP or the `cofounder` CLI. To check on things yourself, use the [dashboard](/dashboard/overview) at app.cofounder.co/os. ## Where Things Went | Web app | CLI / MCP | | --- | --- | | Workspace and departments | The company: same scope, one selection | | Library tab | `cofounder library`, `library_*` tools: same files | | Managed services (GitHub, Vercel, Supabase) | `repo`, `code`, `deploy`, `hosting`, `database` command families | | Agent tasks | Roadmap nodes: `roadmap_get`, `roadmap_nodes_prompt_get` | | Past agent conversations | Read-only `cofounder chat sessions` commands and `chat_sessions_*` tools | | Settings | `cofounder company settings get`, `cofounder user settings update` | ## Read Past Conversations Your agent can read your old Cofounder conversations to see what was decided and plan what to do next. ```bash cofounder chat sessions list cofounder chat sessions list --scope org cofounder chat sessions get --session-id cofounder chat sessions messages list --session-id ``` The MCP tools are `chat_sessions_list`, `chat_sessions_get`, and `chat_sessions_messages_list`. - Lists show your own conversations in the selected company. `--scope org` adds other people's conversations in that company. - Results come in pages. Pass the returned cursor with `--cursor` to read older ones. - Message pages hold up to `--limit` messages (default 20), newest first. A long turn can span pages. Lower `--limit` if a page is too big. - `chat sessions get` returns the conversation's details, not its messages. Read messages with `chat sessions messages list`. - `--include-prior-context` shows messages from before a conversation's most recent context reset. These tools only read. Old Cofounder agents can't be restarted, so your own agent does all new work. ## First Steps There's nothing to move, since your data stayed where it was. 1. [Connect your agent](/get-started/connect-an-agent) or [install the CLI](/get-started/connect-an-agent#connect-through-the-cli) and sign in with the account you already have. 2. Run `cofounder company list`. Your companies are already there. 3. Run `cofounder company resources list`. So is everything you set up. The [Quickstart](/get-started/quickstart) shows your agent running a company from there. --- ## Ownership, Access, and Continuity **URL:** https://docs.cofounder.co/ownership-access-continuity **Description:** FAQ on ownership, account access, portability, and continuity for existing managed workspaces. ## Ownership, Access, and Continuity For existing managed workspaces. The linked Terms, Privacy Policy, and Trust Center remain the sources for legal and security commitments. ## 1. Who owns my code, configurations, and other work? Does Cofounder retain any rights? See License and Ownership in our current [Terms of Service](https://cofounder.co/terms). That is the written ownership and license clause to review, including for investor or customer diligence. Account ownership, access, and the work needed to move a running service are separate operational questions covered below. ## 2. Who controls the accounts behind my workspace? Resources provisioned under Cofounder's provider organizations are platform-managed. Connecting an account you already own does not by itself transfer that account to Cofounder. | Resource | Standard model | | --- | --- | | Managed GitHub repositories | Repositories in a Cofounder-managed GitHub organization. Repository access is separate from ownership of the organization. | | Managed Vercel projects | Projects in a Cofounder-managed Vercel team. Project access is separate from ownership of the team. | | Managed Supabase | A project provisioned in a Cofounder-managed organization. An imported customer-owned project is a different arrangement. | | Domains, registrar, DNS | Depends on whether the domain was purchased or transferred through Cofounder, or connected from an outside registrar. Attaching a domain to a website does not establish registrar ownership. | | Resend, Sentry, Google Cloud/OAuth, Lemon Squeezy, and other integrations | A provider's use by Cofounder itself does not establish that you have a separate account with that provider. Ownership and permissions depend on the account actually connected to your application. A service mentioned in a plan is not necessarily provisioned or active. | Use the [Managed Setup guide](/guide/managed-setup), your connected integrations, and the [Domains settings](/dashboard/settings) to identify the applicable setup. ## 3. What direct access can I get, and can I use my own resources? You can request access to your managed GitHub repositories. Repository access lets you work with and copy the code and Git history; GitHub administrator access is not included. Managed Vercel access requests are available from Settings > Advanced. An invitation must be accepted before it establishes access. Managed Supabase currently does not include a customer dashboard invitation. Supported workspaces can import an existing [GitHub repository](/guide/deploy-and-operate#bring-your-own-repository) or [Supabase project](/cookbook/import-a-repo-and-ship). Follow the relevant guide; connecting one customer-owned resource does not transfer the rest of the managed stack. ## 4. Can Cofounder's systems or staff access my resources, including after launch? Yes. Managed operations can require access to code and repository history, deployment configuration, database records, and credentials, including privileged database credentials. Encrypted credential storage does not mean the platform is unable to use the credential. Agents can use credentials made available to their execution environment. See [Secrets and Environment Files](/advanced/secrets-and-env-files). Our staff access customer accounts only for support purposes. This access is limited to authorized internal administrators. Creating a support session requires a reason and records the administrator, target user, and session timing. This describes the support-session control; it is not a claim that every provider-console action, log read, or backup operation uses the same approval and audit mechanism. Publishing your application does not itself revoke the access required to operate it. The [Privacy Policy](https://cofounder.co/privacy-policy) governs information use, sharing, and AI training. ## 5. How do I limit or revoke access? For accounts you control, disconnect the integration in Cofounder and revoke its provider-side authorization when you want to end access. Remove unneeded repository/project grants and rotate credentials that should no longer work. For agent secret access, turn off Development environment for the relevant secret. Existing deployments or processes can retain previously supplied values until they are updated or restarted. Managed infrastructure still needs platform access while Cofounder operates it. Complete a transfer or replacement of the relevant service before removing access it needs to run. Revoking a credential stops future use of that credential; it is separate from deleting previously stored data, logs, or backups. ## 6. Which privacy and security documents are available? Our standard reference materials are the [Terms of Service](https://cofounder.co/terms), [Privacy Policy](https://cofounder.co/privacy-policy), and [Trust Center](https://app.vanta.com/generalintelligencecompany.com/trust/83ujq4tjimq5672jhljqs4). We do not currently publish a standalone DPA, a complete subprocessor register and change-notification policy, a custom per-workspace data-flow inventory, or a managed-infrastructure SLA as part of the standard offering. The FAQ does not add those documents or commitments. Use the Trust Center for the security information and materials available there. ## 7. Who is responsible for vendor agreements, processing roles, and customer disclosures? For Cofounder-managed services, Cofounder operates the managed provider resources. Customer-connected accounts remain under the customer's relationship with that provider. See Third Party Providers in the [Terms of Service](https://cofounder.co/terms) and Our Technology / Sharing Information in the [Privacy Policy](https://cofounder.co/privacy-policy) for the governing service and processing terms. Whether your business needs a vendor DPA, a particular processing role, regional restrictions, international-transfer safeguards, or specific notices depends on your own use and agreements. These are not additional commitments supplied by this FAQ. For a Cofounder-managed service issue, contact our support team; for customer-owned accounts, use the provider's own support and notice channels as applicable. We do not supply a separate vendor-by-vendor contractual responsibility or international-transfer schedule through this FAQ. If a requirement is mandatory, identify that specific requirement before relying on the standard offering. ## 8. What can I take with me, and what is required to run independently? Repository access lets you copy the code and Git history. Downloadable [Library files](/dashboard/apps) and managed Vercel staging environment exports are also available. Downloading code alone does not move a database, its stored files, hosting accounts, or domain registration. A company admin can ask their agent to invite an email address to the company's managed Vercel team and projects (`hosting_access_invite` on MCP). Transferring the product hosting, managed Supabase project/data, or domain registration must be resolved for the actual resources involved; Vercel access does not transfer the whole workspace. Independent operation requires the corresponding provider accounts, data and files, deployment configuration, domain/DNS control, and replacement credentials. Once the destination works, revoke the old grants and rotate credentials. Confirm the available transfer/export method and any agreed assistance before cancelling or removing access. ## 9. What happens on cancellation, and what are the deletion, backup, and log-retention rules? Subscription cancellation and company deletion are separate actions. See Billing, Credits and Payments and Termination in the current [Terms of Service](https://cofounder.co/terms) for service access, export, and deletion provisions. A code download or credential revocation is not a deletion request. This FAQ does not add a separate backup/log-retention schedule or restoration guarantee. Any specific retention or recovery requirement needs an applicable published policy or an express agreement. ## 10. What happens to managed resources if credit runs out? Managed database and website hosting are charged to the company's credit balance from metered usage. When the balance runs out, a charge is left unpaid, or a payment is reversed, billing locks. The managed database is paused and keeps its data, the website stops serving and deploying, and your GitHub repository access becomes read-only. Adding credit lifts the lock and restores them. An active subscription with auto-recharge keeps the balance funded. See [When Credit Runs Out](/guide/watch-it-run#when-credit-runs-out). ## 11. What support or additional contractual assurances are included? For access, security, or offboarding questions, contact [support](mailto:support@generalintelligencecompany.com). State the affected resource and the action you need. Support availability and obligations are governed by the [Terms of Service](https://cofounder.co/terms); this FAQ does not promise a migration service, completion date, uptime SLA, or incident-notification deadline. If your use requires the additional enterprise documents or contractual commitments described above, Cofounder's standard offering may not meet your needs. A public interest page, live pilot, or production launch does not add those commitments. --- ## Pricing **URL:** https://docs.cofounder.co/pricing **Description:** Credits, rollover, and monthly cost estimates. Plans start at $40 a month, and the whole fee is usage credit. Spend it on paid actions like ads, domains, research, and generated media. Unused credit rolls over monthly, and most businesses never need a top-up. ## Monthly services | Service | Price | | --- | --- | | Agent email inbox | First inbox free, $2/month each after | | Agent phone number | $3/month per number | ## Hosting and databases Monthly examples assume 30 days. | Service | Price | | --- | --- | | Basic database | ~$15.55/month running all day | | Disk space | First 8 GB free, then ~$0.15/GB/month | | File storage | ~$0.025/GB/month | | Data sent to users | $0.108/GB, or $0.036/GB cached | | Database logs | $0.60/GB recorded | | Website and app hosting | Varies with traffic and builds | ## Paid actions | Service | Price | | --- | --- | | Google and Meta ads | Ad spend + 10% ($100 of ads uses $110) | | Domain purchases | Cost price, no margin | | Image generation | ~$0.01–$0.34 per image | | Video generation | ~$0.91–$3.84 per 5–8s 720p clip | | Web searches | ~$0.12 per 100 quick, $0.60 per 100 detailed | | Deeper research | ~$0.01–$0.36 per task by depth | | Prospect research | ~$0.01–$0.36 per search by depth | | Prospect enumeration | $0.30–$2.40 per search + $0.036–$0.18 per match | | Contact lookups | ~$1.20 per 100 lookups | ## Estimate your month *Estimates in USD; actual charges depend on usage and current pricing.* --- ## Agent Spend **URL:** https://docs.cofounder.co/advanced/agent-spend **Description:** Let your agent pay other merchants one purchase at a time, with you approving each purchase in Link. When your agent needs to pay someone else (a service, a merchant, an API), it asks you to approve that one purchase in Link. Once you approve, the agent gets a one-time card or payment token for exactly that purchase: request → you approve in Link → one-time card or token → agent pays You connect your Link account on the first request and approve every purchase yourself. Money moves only when the agent pays with the approved card or token. Company billing pays for Cofounder itself. To buy Cofounder credits, see [Pay Cofounder with MPP](/advanced/mpp-payments), which also covers using the credits for a company research report. ## Ask for a Purchase ```sh cofounder link spend-request create --amount 2500 --currency usd \ --merchant-name "Acme Fonts" --merchant-url https://acmefonts.example \ --context "Annual webfont license for the marketing site: one family, two weights, self-hosted." cofounder link spend-request retrieve --wait ``` - `--amount` is in minor units (cents), so `2500` is $25.00. - `--context` says what's being bought and why, in at least 100 characters. - The first request connects your Link account. `create` waits for that unless you pass `--no-wait`. - `retrieve --wait` returns the card once you approve. ## Pay Merchants That Charge Over HTTP 402 `cofounder link mpp decode --challenge
` reads the network id and amount from the merchant's `WWW-Authenticate` header. Request `--credential-type shared_payment_token` with that `--network-id`, then pay with `cofounder link mpp pay`. ## Pay a Stripe Checkout Without the Card Form Some Stripe checkouts hide an "I am an AI agent" checkbox. Ticking it shows a `link_pay_token` field and a `data-stripe-merchant-account` id. On those pages, an agent with browser automation can skip the card form: 1. Request `--credential-type link_pay_token --merchant-account-id `. 2. Once you approve, run `cofounder link spend link-pay-token create` right before paying. The token is valid for up to 30 minutes. 3. Put the token in the `link_pay_token` field and submit when the customer's saved Link card replaces the card form. If the page has no such field, use a card request. ## One Step at a Time The `link spend` commands run each step as a separate call, matching MCP: | MCP | CLI | API | | --- | --- | --- | | `link_spend_create` | `cofounder link spend create --request-id --amount 2500 --currency usd --context ` | `POST /cofounder-cli/v1/link/spend-requests` | | `link_connections_get` | `cofounder link connections get --connection-id ` | `POST /cofounder-cli/v1/link/connections/{connection_id}/poll` | | `link_spend_get` | `cofounder link spend get --spend-request-id ` | `GET /cofounder-cli/v1/link/spend-requests/{spend_request_id}` | | `link_spend_card_create` | `cofounder link spend card create --spend-request-id ` | `POST /cofounder-cli/v1/link/spend-requests/{spend_request_id}/card` | | Not on MCP | `cofounder link spend shared-payment-token create --spend-request-id ` | `POST /cofounder-cli/v1/link/spend-requests/{spend_request_id}/shared-payment-token` | | `link_spend_link_pay_token_create` | `cofounder link spend link-pay-token create --spend-request-id ` | `POST /cofounder-cli/v1/link/spend-requests/{spend_request_id}/link-pay-token` | If `create` says authorization is needed, give the founder the link it returns. Run `connections get` at the interval it suggests until Link is connected, then run `create` again with the same `--request-id` and details. **Never retry an unclear result with a new request id.** `spend get` shows where approval stands but never includes the card. Once approved, `card create` returns the one-time card. A shared payment token is a secret, so don't print or save it. --- ## API Keys and Scripting **URL:** https://docs.cofounder.co/advanced/api-keys-and-scripting **Description:** Give agents, CI jobs, and scripts their own company API key so they run without a browser login, and parse the CLI's JSON output. A company API key lets agents, CI jobs, and scripts act for one company without anyone signing in. Put it in `COFOUNDER_API_TOKEN` and the CLI and API use it. ## Create and Manage Keys | MCP | CLI | API | | ------------------------- | ------------------------------------ | ---------------------------------------------------- | | `company_api_keys_create` | `cofounder company api-keys create` | `POST /cofounder-cli/v1/company/api-keys` | | `company_api_keys_list` | `cofounder company api-keys list` | `GET /cofounder-cli/v1/company/api-keys` | | `company_api_keys_revoke` | `cofounder company api-keys revoke` | `DELETE /cofounder-cli/v1/company/api-keys/{key_id}` | | Not on MCP | `cofounder company api-keys current` | `GET /cofounder-cli/v1/company/api-key` | ```sh cofounder company api-keys create --name deploy-bot ``` Keys default to `company:operate`, which operates the whole company. Create one from MCP, the CLI, or the API, then hand it to a script, CI job, or another agent's environment. App keys work only for one app: `forms:submit` for a site's forms, `email:send` for an app's email, or `wallet:collect` for an app's payments. `ads:conversions` keys require an `app_binding_id` and can only POST to `/app/ads/conversions` for eligible advertisers in that site's company. They cannot operate the company. Creating, listing, and revoking keys need a signed-in admin. A key can't manage other keys. **The key prints once, so store it right away.** `list` shows only names and prefixes. A key acts as the company it was created under. Give each runtime or job its own named key. For temporary jobs, pass an ISO 8601 expiry with `--expires-at`, then revoke the key after the job. Without `--expires-at`, the key never expires. ## Use a Key Use the key for CLI and REST API requests. MCP hosts sign in with their own OAuth login. For an agent with no browser, `cofounder mcp setup` points the MCP connection at the key instead (see [MCP Configuration](/advanced/mcp-configuration#connect-an-agent-without-a-browser)). ```sh export COFOUNDER_API_TOKEN="cfk_..." cofounder company show # authenticates as the key's company ``` `cofounder company api-keys current` shows which key is in use: its id, its company, and who created it, never the secret. To skip the CLI, call the API directly: ```sh curl -H "Authorization: Bearer $COFOUNDER_API_TOKEN" \ https://api.cofounder.co/cofounder-cli/v1/company ``` ### One-Off Session Tokens From a signed-in CLI, `cofounder auth token` prints a session token for one-off use. It doesn't carry the CLI's saved company, so direct REST requests must also send `X-Organization-Id` with the company's UUID. Use company API keys for anything lasting, because they survive logouts and you can revoke them one by one. ### Cloud Network Secrets An MCP login doesn't sign in a CLI running in a sandbox. If your runtime swaps in a network-secret placeholder for the API key, configure its API destination and tell the CLI the key type and expected company: ```sh export COFOUNDER_API_TOKEN_KIND=company_api_key export COFOUNDER_COMPANY_ID="" # COFOUNDER_API_TOKEN is supplied by the runtime's secret injection. cofounder auth whoami --json ``` The CLI sends the expected company with each request, and the server rejects a key for a different company. Check the returned company before starting work. Set up and test the runtime's secret substitution separately from the CLI. ## Script the CLI Commands print JSON on stdout, stable enough to parse with `jq` or pass to another agent. Errors print as a JSON object on stderr, along with progress messages. A non-zero exit always means failure. ```sh cofounder company resources list | jq '.resources[].status' ``` `--json` is accepted and changes nothing. `company switch` needs an interactive terminal, so scripts should use `company list` and `company use `. For the variables the CLI reads, see [CLI Environment Variables](/advanced/secrets-and-env-files#cli-environment-variables). --- ## CLI Basics **URL:** https://docs.cofounder.co/advanced/cli-basics **Description:** Sign in and out, manage your account settings, find commands and docs offline, and keep the cofounder CLI up to date. Day-to-day use of the `cofounder` CLI once it's installed. [Connect an Agent](/get-started/connect-an-agent#connect-through-the-cli) covers installing it. ## Sign In and Out ```sh cofounder auth login ``` This opens browser sign-in and saves the credential under `~/.cofounder`. To create an account instead, run `cofounder auth signup --email you@acme.com`. The password comes from `--password` or `COFOUNDER_PASSWORD`. | Command | What it does | | --- | --- | | `cofounder auth whoami` | Show the signed-in account | | `cofounder auth token` | Print a bearer token for CLI/REST scripts | | `cofounder auth logout` | Remove the saved credential | ## Your Account and Settings | MCP | CLI | What it does | | --- | --- | --- | | — | `cofounder me get` | Show the signed-in user and the companies they can operate | | `user_get` | `cofounder user get` | Show which account is signed in (ID and email) | | `user_settings_get` | `cofounder user settings get` | Read your user settings | | `user_settings_update` | `cofounder user settings update --timezone ` | Change settings; pass `--timezone-null` to reset one | | `user_settings_replace` | `cofounder user settings replace --timezone ...` | Replace all your settings at once | | `user_timezones_list` | `cofounder user timezones list` | List the timezones a setting accepts | `user settings replace` resets anything you leave out to its default, so read your settings first and pass every value you want to keep. ## Find Commands and Docs These commands work offline: ```sh cofounder search "buy a domain" # ranked commands and guides for a plain-language goal cofounder commands # the full command tree cofounder completion zsh # shell completion script ``` Every command also takes `--help`. The CLI ships these docs for your installed version, so an agent can read them in the terminal: ```sh cofounder docs # list the guides cofounder docs search spend ceiling # find the sections that mention every term cofounder docs get guide/ads --section cap-spending ``` `docs get` takes a page from `cofounder docs`, a unique end of one (`ads`), or a docs URL, and ends with the commands to open each page it links to. Add `--json` for structured output. ## Keep It Current ```sh cofounder upgrade ``` This prints the npm command that matches how you installed. Add `--check` to see the latest release, `--apply` to install it into your global npm install, or `--auto on` to apply updates automatically after interactive commands. --- ## MCP Beyond Tools **URL:** https://docs.cofounder.co/advanced/mcp-apps-prompts-resources **Description:** Company app views, readable guides and company data, slash-command prompts, event notifications, and richer results from the Cofounder MCP, alongside its tools. Over MCP, your agent gets more than tools. Every host (Codex, Claude, ChatGPT, Cursor) gets all of the following from the hosted server at `/mcp`: - Company app views: the company's Home, Inbox, CRM, roadmap, and domains as screens inside the chat. - Guides and company data to read: Cofounder's operating guides, plus the company's billing, Library, outputs, and readiness. - Prompts: ready-made slash commands for common jobs, like onboarding a company or generating an image. - Events: notifications when a prospect import finishes, a watch finds something, or a CRM reply arrives. - Richer results: file links you can open, structured error details, and suggested next steps. - Long-running imports: a prospect import your agent can check on even after reconnecting. Hosts that don't support one of these still get the same data through plain tools. ## Open Company App Views Call `company_app_open` to show the company Home or another view. Hosts that don't declare MCP Apps support (such as Codex CLI, Claude Code, or Cursor) get the view's data back as text and `structuredContent` instead. ### Home The same Home as the dashboard, with what needs you and how the company is doing. ### Inbox To reopen a saved email draft, pass `view: "inbox"`, `company_id`, and `draft_id`. It opens the drafts folder on that exact draft, even past the first page. For a conversation, pass `thread_id` instead of `draft_id`. Shortened message bodies offer **Read more in chat**, which hands the company, mailbox, and thread to your agent. It reads the thread with `email_threads_get` and tells you about any history it couldn't get. ### CRM `view=contacts` shows the company's people, companies, and open deals (`tab=pipeline`). The same data is available as plain `crm_*` tools. ### Roadmap `view=roadmap` shows the company's setup milestones grouped by stage, with progress and the recommended next milestone. `roadmap_get` stays the plain data read. ### Domains `view=domains` with `names` (the domains your agent proposes, up to 20) checks them with the registrar and shows availability and price. Pick one, type another exact name to check, or ask for more ideas. **Buying opens checkout in the dashboard. The app never buys.** With no names, it lists the company's domains with their setup status (ordered, registered, DNS, live). Pass `domain_id` to open one in detail, including the next step to fix its DNS. `domains_discover` and `domains_list` stay the plain data reads. ## Read Guides and Company Data Resources are read-only content your agent opens by URI. Pick the company first with `user_get` and `company_memberships_list`, then use its `org_id` as `{company_id}`: | URI | Contains | | --- | --- | | `cofounder://companies/{company_id}/billing` | Company billing summary | | `cofounder://companies/{company_id}/library` | Library departments (company admins) | | `cofounder://companies/{company_id}/library/{path}` | Library files or folders; paginated folders return a company-addressed `next_uri` | | `cofounder://companies/{company_id}/outputs` | Generated output listing | | `cofounder://companies/{company_id}/outputs/{artifact_id}` | One generated output | | `cofounder://companies/{company_id}/readiness` | Resource status and blockers, for company admins | | `cofounder://companies/{company_id}/brief` | What matters now and the next step, for company admins; `company_get` links it | | `cofounder://companies/{company_id}/brand` | Brand status, brand files, and what to write next, for company admins; `company_brand_get` links it | | `skill://{name}/SKILL.md` | Cofounder's own operating guides | Clients without resource support use the `list_resources` and `read_resource` tools, which reach the same URIs and return the same data as native resource reads. Library files are also available as `library_*` tools. See [Resource Reference](#resource-reference) for details. ### Guides Your Agent Can Read The hosted guides include: - `cofounder-setup` for troubleshooting - `cofounder-repo` for CLI repository work - `cofounder-repo-mcp` for SSH clone and push without the CLI - `cofounder-social` for social publishing For onboarding, call `onboarding_get` and read the guide at the returned `mcp_skill_url`. CLI agents can run `cofounder onboarding` and follow `cli_skill_url`. These point to the maintained `/mcp-onboarding/skill.md` and `/cli-onboarding/skill.md` guides. ## Use Prompts as Slash Commands Prompts show up as slash commands in clients that support them. Claude Code lists them as `/cofounder:` and also accepts `/mcp__cofounder__`. Each one is a ready-made instruction for a common job: | Prompt | Title | Job | | --- | --- | --- | | `start-company` | Start My Company | Start a new company from an idea, or bring an existing company or product on (optional `starting_point`, `company_name`, `existing_project`) | | `catch-up` | Catch Me Up on My Company | Summarize running work and what needs you | | `plan-today` | What Should I Work On Today | Pick the few actions worth your time today | | `update-website` | Launch or Update My Website | Review the company site, make a change, and deploy it | | `research-topic` | Research a Topic | Research a market, competitor, or question and save the findings to the Library | | `write-investor-update` | Write My Investor Update | Draft an investor update from company, pipeline, and traffic data | | `triage-inbox` | Triage My Inbox | Review recent mail and support tickets, and draft replies for you to approve | | `import_context` | Import Company Context | Pull a URL or text into the company's Library and check it's searchable | | `generate-image` | Generate an Image | Generate one image and follow its job to the finished output | | `generate-video` | Generate a Video | Generate one video and follow its job to the finished output | `research-topic` spends company credit, `update-website` deploys to the public site, and `triage-inbox` sends mail only after you approve each reply. A prompt only appears while its tools are available. ## Clone and Push Through MCP Your agent can work on the company's managed product or marketing repository with plain Git over SSH, without the CLI. It needs a terminal, writable files, and outbound SSH to GitHub (a cloud session sandbox works). It doesn't need access to your computer, the Cofounder CLI, or a GitHub login. 1. Read `skill://cofounder-repo-mcp/SKILL.md` with the client's resource reader, or call `read_resource` with that URI. 2. Pick the company explicitly and find its repository's `resource_id` with `resources_list`. Choose `resource_purpose=marketing` for the marketing site or `resource_purpose=product` for the app, then pass its ID as `resource`. 3. Register a public Ed25519 key, generated in the agent's environment, with `code_repository_access_create`. Any company member can do this. **Keep the private key in a protected file outside the checkout, and never put it in MCP arguments.** 4. The call returns confirmed `valid` access and the repository SSH URL. Check that the fingerprint matches your local public key before cloning. Managed product and marketing repositories are eligible. Generate a separate key for each repository; a product key doesn't grant marketing access. Imported repositories can't get SSH access. SSH access covers Git only, not GitHub API calls or creating PRs. If a response fails or is unclear, treat access as not working and retry the identical request with its original idempotency key. Nothing turns it on in the background. Access lasts until `code_repository_access_revoke` succeeds, confirming GitHub removal with `state=invalid` and `revoked_at` set. Retry failed revocations yourself, because nothing cleans up in the background. Membership, repository, company, or billing changes can mark Cofounder's record invalid without deleting the key from GitHub, so `invalid` alone doesn't confirm removal. ## Get Richer Results On MCP, the same operations return more. ### File Links `media_generate` and `media_get` (`cofounder media generate` / `media get` on the CLI) return links to the finished files' signed download URLs. Binary `library_files_get` results also include a link with the file name and type. The original URL stays in the structured data and the text version. How the link shows depends on your client. To browse output records, use the company output URIs above. ### Remembering the Company `agent_personalization_get` returns text your agent can save to its own instructions, so later sessions know which company they work for. ### Clear Errors When a tool fails safely, it returns the error details as structured data and text, with `isError` set. Unexpected failures stay hidden. The error shape is separate from the tool's normal output. ### Suggested Next Steps Some responses include `next_steps`. Each names the operation and its arguments. A step that checks back later says how long to wait (`after_seconds`). A step for the founder can include `poll`, `until`, and `timeout_s` to say how to tell they're done. **These are suggestions, not permission to send, charge, deploy, or launch another job.** - Saved campaign drafts suggest a preview. A launched draft or unclear campaign receipt points to the original request's receipt. An unclear draft test points to the saved draft. There is no campaign review page. - Pending media points to its original job. Research jobs say how long to wait and point to saved results when done. An unclear research job suggests checking it rather than launching a new one. - Auto-recharge setup and payment recovery return the exact browser URL, then a check of the saved status. Recovery belongs to the returned pending transaction, not a new charge. - Repository imports that need a Vercel repository link return a step for the founder when the Git settings URL is available, then continue or read back status. Without that URL, Cofounder doesn't invent one. Keep returned URLs exactly as given, including query parameters and company scope. Navigation and recovery URLs stay in structured fields. Files you can download also get links. ## Get Notified With Events With the hosted OAuth sign-in, hosts that support the draft MCP Events extension (protocol version `2026-07-28`) can subscribe to webhook notifications. `server/discover` advertises `capabilities.events`, and hosts use `events/list`, `events/subscribe`, and `events/unsubscribe` on the same signed-in endpoint. Hosts without Events support can keep checking with the matching read tools. | Event | Subscribe with | You hear about | | --- | --- | --- | | `crm.prospects.import.finished` | `company_id`, `job_id` | A prospect import finishing | | `watch.event.detected` | `company_id`, `watch_id` | A new watch finding | | `watch.stopped` | `company_id`, `watch_id` | A watch stopping because the company couldn't pay | | `crm.interaction.received` | `company_id` | A new inbound CRM email, text, form submission, or social message, comment, review or lead | These are the most common ones. `events/list` returns the full catalog, including research, media, and Edge Function deploy outcomes, each with its subscription arguments. **An event never gives permission to take further action.** ### Prospect-Import Outcomes Subscribe to `crm.prospects.import.finished` with `company_id` and the import's `job_id`. The event reports a final `succeeded`, `failed`, or `cancelled` outcome, and is replayed to a subscriber that connects after the the saved task ID through `tasks/get` when the host supports Tasks. Retries keep the same event ID. On a repeated callback, read the result. Don't start another import. ### Watch Findings and Stops Subscribe to `watch.event.detected` with `company_id` and `watch_id` to get new findings, with a summary and citations. Use `watches_list` to find an existing watch. Subscribing doesn't create or run a watch and doesn't change its billing. Subscribe separately to `watch.stopped` with the same arguments to learn when the company couldn't pay for a recheck. The stop can still be delivered after the watch is removed, as long as you keep company access. - New subscriptions start from now and skip older findings. Refreshing keeps your place. After a subscription lapses, pass a cursor you received before to resume. Events that arrive during callback verification are included. - Unsubscribing stops notifications. Use `watches_delete` to stop the watch itself and its future billing. - Use `events_get` with `company_id` and the callback's `eventId` as `event_id` to read the full finding. Findings over the 256 KiB webhook limit arrive with the summary and watch ids but without structured `fields` and `citations`. The full event stays in the log. ### CRM Interactions Subscribe to `crm.interaction.received` with `company_id` to get each new inbound CRM email, text, form submission, or social message, comment, review or lead once. It defaults to human messages. Set `reply_kind` to `auto_reply` for automatic replies. Optional `contact_id`, `account_id`, `kind`, `channel` and, for social items, the connected account `resource_id` narrow it. New subscriptions start from now. After a lapse, pass an earlier cursor to resume. The callback has a safe summary and the interaction id, and `events_get` gets the full event. The event is recorded in the same transaction as the interaction, and a redelivered message sends no second callback. ### Cofounder Support Tickets Subscribe to `cofounder_support.ticket.updated` with a ticket's `id` as `ticket_id` and its `company_id`, both from `support_get` or `support_list`, to learn when Cofounder Support replies or changes the ticket's status. Only the account that filed the ticket can subscribe. New subscriptions start from now, so read `support_get` after subscribing to catch a reply that arrived first. The callback carries the ticket id and whether the update is a `reply` or a `status` change, never message text. Tickets without a `company_id` can't be subscribed to. ### Delivery and Subscription Rules Host builders need these rules. The delivery flow: subscribe with callback + `whsec_` secret → signed verification challenge → echo it → delivery on → signed callbacks → 2xx ack - Setup: the host supplies a public HTTPS callback and a Standard Webhooks `whsec_` secret. Cofounder sends a signed verification challenge and turns on delivery only after a successful response that echoes it. - Callbacks include `eventId`, `name`, `timestamp`, `data`, and a subscription-specific `cursor`. Verify signatures, dedupe by `eventId`, and return a 2xx to acknowledge. - Failures: a `410` or `413` declines that one event and delivery moves on. Any other failure is retried with backoff for about an hour, holding later events for that subscription. After that the event is skipped. Redirects are not followed. - Timing: delivery runs every minute and can take longer under backlog or retries. Acknowledging only records receipt. The host decides when to tell the user or continue work. - Lifetime: subscriptions belong to the signed-in account and OAuth connection. Refresh with the same event, arguments, and callback before the returned `refreshBefore`. Lifetimes are capped at one hour, with at most 100 active subscriptions per account. - Cursors: a live subscription keeps its own place, so a cursor sent with a refresh is ignored. A lapsed or unsubscribed one resumes from the cursor you pass when subscribing again. - Ending: unsubscribe with the same event, arguments, and callback. Revoking the connection removes its subscriptions at once. Losing company access removes a subscription at its next delivery. A connection that expires without being revoked can't refresh, so its subscriptions end within an hour. ## Track Long-Running Prospect Imports On protocol version `2026-07-28`, `/mcp` advertises `io.modelcontextprotocol/tasks` under `server/discover`'s `capabilities.extensions`. A supporting host declares that extension on each request in `_meta["io.modelcontextprotocol/clientCapabilities"].extensions`. Then `crm_prospects_import` returns a receipt with `resultType: "task"` and a `taskId`. Save the ID and check back with `tasks/get`, even after reconnecting. Wait the returned `pollIntervalMs` between checks. - Finishing: the task follows the import through the CRM writes, so submitting alone isn't finishing. A completed task has the final tool result in `result`. A failed import is a completed task with `result.isError: true`. The first final result stays fixed even if the import is later retried. - Expiry: you can check the task for seven days from when the import started, and each check confirms you still have company access. After that, use `crm_prospects_imports_get` for the import's status. - Retrying: keep the same import `idempotency_key` after an unclear response. - Without Tasks: older protocol versions, hosts without the extension, and nested calls through a tool proxy get the ordinary response and use `crm_prospects_imports_get`. - Cancelling: `tasks/cancel` stops an active prospect import when it can, but CRM writes that already finished aren't undone. Keep checking for the outcome. Without Tasks, use `crm_prospects_imports_cancel`. The import never asks for input midway. `tasks/update` accepts answers to unknown input keys without changing the import. ## Resource Reference ### Picking the Company With the hosted OAuth sign-in, every company resource URI names its company, and every read checks your current membership and permissions. Company resources aren't listed from a default company, and short URIs without a company aren't accepted. Discover the templates and name the company. Guides (`skill://`) don't depend on a company. Older connections whose token names a company can also use these short URIs, which read that token's company: | URI family | Contains | | --- | --- | | `cofounder://billing` | The company's billing summary | | `cofounder://library/` | Library files, browsable by department and path (company admins) | | `cofounder://outputs/` | Generated outputs by id | With the hosted OAuth sign-in, Library autocomplete isn't offered unless you belong to exactly one company, because that host shortcut can't pick a company. Agents can still read the Library through company tools and resource URIs. Older connections keep the shortcuts. ### Readiness The readiness resource summarizes each resource's status, blockers first. Follow each returned `resources.get` next step for exact recovery instructions. Status doesn't mean a company goal is ready to run, and doesn't grant permission to act. ### Paging and Limits - Follow `next_uri` when a resource returns another page or text chunk. - Readiness shows at most 50 resources, with a `truncated` flag and a `resources.list` next step when more exist. ### Billing `company_get` and billing resources return the company's billing status, balance, spending, limits, and payment settings. Billing messages explain any issues and send the user to the dashboard. Payment links are left out. CLI and API responses include payment links and recovery guidance. ### Skills Extension Hosts that support the official MCP Skills extension on protocol `2026-07-28` can find bundled guides with `skills/list` and confirm one with `skills/get`. Each entry has its full frontmatter and a file list with SHA-256 digests and byte sizes. Read files with `resources/read`. Hosts without Skills support keep using `list_resources`, `read_resource`, and each guide's `_manifest` resource. ### Caching Guide discovery and file reads suggest a five-minute private cache. Guides and file lists describe one deployment. Company resource reads suggest no caching (zero TTL, private), so clients refresh the state and any expiring URLs, and keep cached content within its sign-in context. These hints don't cache tool calls on the server. ### Sign-In All hosts use the same Cofounder account and OAuth resource identity. Connection listing and revocation cover all account connections. ## Server Card Clients can discover the hosted server without connecting: an unauthenticated `GET /server-card` returns an [MCP Server Card](https://modelcontextprotocol.io/seps/2127-mcp-server-cards) (`application/mcp-server-card+json`, cacheable for an hour, with an `ETag`). It has the server's name, title, version, icons, website, the streamable HTTP endpoint with its supported protocol versions, and the OAuth protected resource metadata URL under `_meta`. It lists no tools or capabilities. Those come from the live connection, which wins wherever the two differ. The [Reference](/reference) names every operation across all three surfaces and shows how the spellings map. --- ## MCP Configuration **URL:** https://docs.cofounder.co/advanced/mcp-configuration **Description:** Configure the Cofounder MCP by hand, connect agents with no browser, switch accounts, revoke a host, and tell local agents which company they serve. Set up a host by hand, connect an agent that can't open a browser, or manage connections you already have. For one-click installs, see [Connect an Agent](/get-started/connect-an-agent). For custom MCP clients, `tools/list` returns up to 50 tools per page. Pass each response's `nextCursor` unchanged as `params.cursor` until it is absent. The first page starts with onboarding and account discovery. Restart discovery if the catalog changes while reading pages. ## Let the CLI Write the Config If the CLI is installed, it writes the config: ```sh cofounder mcp setup ``` It sets up Claude Code and Codex by default and leaves your other MCP servers alone. Pass `--client claude`, `--client codex`, or `--client cursor` to pick one, and `--print` to see what it would write without changing anything. It writes to: - Claude Code: `.mcp.json` in the current directory (this project only) - Codex: `$CODEX_HOME/config.toml`, defaulting to `~/.codex/config.toml` (every project) - Cursor: `~/.cursor/mcp.json` (every project) ## Add It by Hand Where the entry goes decides where the server shows up. `.mcp.json` is checked into your project, so the server loads there and for collaborators who clone it (each signs in separately). The Codex and Cursor files load the server in every project on your machine. ### Claude Code For all your projects: ```sh claude mcp add --transport http cofounder https://api.cofounder.co/mcp --scope user ``` Or in your project's `.mcp.json`: ```json { "mcpServers": { "cofounder": { "type": "http", "url": "https://api.cofounder.co/mcp" } } } ``` ### Codex In `$CODEX_HOME/config.toml` (`~/.codex` when unset): ```toml [mcp_servers.cofounder] url = "https://api.cofounder.co/mcp" ``` Then run `codex mcp login cofounder` to sign in through your browser. Codex keeps the login. An agent with no browser skips the login and names a bearer environment variable instead: ```toml [mcp_servers.cofounder] url = "https://api.cofounder.co/mcp" bearer_token_env_var = "COFOUNDER_API_TOKEN" ``` `cofounder mcp setup` writes that line for you when `COFOUNDER_API_TOKEN` holds a company API key (a `cfk_` value, or a placeholder marked with `COFOUNDER_API_TOKEN_KIND=company_api_key`). ### Cursor In `~/.cursor/mcp.json`: ```json { "mcpServers": { "cofounder": { "url": "https://api.cofounder.co/mcp" } } } ``` ### Other Clients Use the streamable-HTTP URL with native MCP OAuth. The Claude app has no config file. Use the connector link on [Connect an Agent](/get-started/connect-an-agent#one-click-install). ## Connect an Agent Without a Browser For an agent that can't open a browser (CI, a cloud box, a company-owned agent), use a company API key: 1. Put the key in `COFOUNDER_API_TOKEN` in the agent's environment. 2. Run `cofounder mcp setup`. Each entry then reads the key from that variable, so nobody signs in and no token lands in a config file: - Codex uses `bearer_token_env_var`. - Claude Code uses an `Authorization` header referencing `${COFOUNDER_API_TOKEN}`. - Cursor uses `${env:COFOUNDER_API_TOKEN}`. Any other value in `COFOUNDER_API_TOKEN` keeps the browser sign-in setup above, because only company keys work on the hosted MCP without signing in. A company key acts as its own identity inside its company. Company tools use the key's company, so your agent can omit `company_id` and skip `user_get` and membership discovery. ## Sign In and Pick a Company Browser sign-in starts a short-lived listener on your computer (a localhost callback), so use a browser on the same computer. If the listener has stopped, or you started login in a remote terminal, restart login in the client you want to connect. The connection identifies you, not a company. Before acting, your agent uses `user_get` and `company_memberships_list` to find the intended company and passes its `org_id` as `company_id` on company tools. It asks when the target is unclear. `user_get` returns your stable `id` and display `email`. The id stays the same across token refresh, reconnecting, and email changes. It doesn't pick a company. OpenAI hosts can use it as your signed-in profile. Expired credentials come back with a sign-in prompt so supported hosts can ask you to reconnect. A company-permission error or an error from another service doesn't ask you to sign in to Cofounder again. ## Switch Accounts If you're already signed in to Cofounder in the browser, sign-in first asks which account to use. To connect a different one, choose **Switch** and sign in with it. The same connection request continues, so you don't restart in the agent. Company selection happens in the agent after connection. Name the company you want to work on; if the intended company is unclear, the agent asks you to choose. The connection can still work across companies your account can access, within your permissions. In Codex, one server entry has no account picker. To use a different account, run `codex mcp logout cofounder`, switch accounts in your browser, then run `codex mcp login cofounder`. Start a new Codex session afterward. ## Revoke a Connection From a separate CLI user login, list and revoke a connection, even if its original client is gone: ```sh cofounder auth connections list --json cofounder auth connections revoke --connection-id --json ``` - The list shows connection details, never tokens. Client names come from the connecting app. - Revoking blocks any further sign-in, including token refresh. It can't cancel an operation that was already approved. - Revoking the "Cofounder CLI" connection ends that CLI login's MCP access. The stdio bridge reports it and stops; run `cofounder auth login` to connect again. - Company API keys can't manage account connections. - Some older connections must reconnect before they show up in this list. **Logging out in some clients deletes only the saved credential, so revoke when you need the connection gone.** ## Transport and Company Switching HTTP is the supported hosted transport. You don't need stdio. Switching companies in the same account needs no new token: your agent names the company's id on each call. A directory name or the CLI's default company doesn't set the target for an MCP task. The connection covers your whole account, including companies you join later. Use a company-bound API key for an unattended CLI job. The older `cofounder mcp stdio` bridge passes along the CLI's credential. A company API key in `COFOUNDER_API_TOKEN` works on any endpoint. A saved CLI user login is exchanged automatically for an MCP access token when the server uses the OAuth proxy, and sent directly when it doesn't. Revoking the connection ends every token the bridge was given. For hosts that run their own sign-in, run `cofounder mcp setup` and finish the browser sign-in. The bridge and `cofounder doctor` prefer MCP `2026-07-28` discovery and fall back to older supported protocol versions. The bridge accepts July requests and older clients that use `initialize`. ## Give Local Agents Context Agents working in your checkout need to know which company they serve and how to reach it. ### The Company-Work Skill `cofounder-company-work` is a skill for reading current company context and sharing findings, decisions, blockers, and finished work as company events. MCP agents can read it at `skill://cofounder-company-work/SKILL.md`. To give a terminal agent its own copy, install it locally: ```sh # Codex: ~/.agents/skills/cofounder-company-work/SKILL.md cofounder instructions install-skill --client codex # Claude Code: ~/.claude/skills/cofounder-company-work/SKILL.md cofounder instructions install-skill --client claude ``` - Works offline, without signing in. `--print` previews the target and content without writing. - Installing again leaves an identical skill alone. Replacing different content needs `--replace`. - Installing locally doesn't add the skill to your ChatGPT or Claude cloud account. ### Project Instructions Run `cofounder instructions setup --company-id ` from your project folder to tie its instructions to the verified company. It also adds guidance to read relevant state and post short updates about company work. Hosts load skills only when relevant, while project instructions keep the company binding in later chats. | MCP | CLI | What it does | | --- | --- | --- | | Not on MCP | `cofounder instructions setup` | Write Cofounder guidance into `AGENTS.md` and `CLAUDE.md` in the current directory (`--print` to preview) | | Not on MCP | `cofounder instructions install-skill --client codex` | Install the company-work skill locally; use `--client claude` for Claude Code | | `onboarding_get` | `cofounder onboarding` | Print the hosted onboarding skills and next step; works before you sign in | | Not on MCP | `cofounder skills list` | List your skills, including Cofounder's defaults and ones you wrote | | Not on MCP | `cofounder skills show ` | Print one skill's current instructions | | Not on MCP | `cofounder skills get --skill-name ` | Read one skill's instructions plus the list of files that come with it | | Not on MCP | `cofounder skills files get --skill-name --file-path ` | Read a listed supporting file, such as a CRM skill reference | | Not on MCP | `cofounder agent set-context ` | Leave a short note (up to 2,000 characters) for other agents on this machine | | Not on MCP | `cofounder agent get-context` | Read the note | | Not on MCP | `cofounder agent clear-context` | Remove the note | ### Skill Files Use `skills get` to see a skill's file list, then pass one listed relative path with `--file-path` to `skills files get` to read it. For example, the hosted `cofounder-crm` skill keeps query and record guidance in separate reference files. Only listed text files can be read. ### Notes for Parallel Agents The note from `agent set-context` stays on your machine, is never sent to Cofounder, and shows up in `cofounder auth whoami`, so parallel agents can see what the others are doing. Each company keeps its own note, and all three commands work offline. --- ## Pay Cofounder with MPP **URL:** https://docs.cofounder.co/advanced/mpp-payments **Description:** Buy company credits from a Machine Payments Protocol wallet, then spend them on Cofounder services like company research. Your agent can buy prepaid company credits with a [Machine Payments Protocol (MPP)](https://docs.stripe.com/payments/machine/mpp) wallet, then spend the company's balance on Cofounder services such as company research, which returns a saved report with sources. top-up → wallet pays `payment_url` → credits land → `research start` draws on the balance Buying credits only adds credits. Research is a separate call that needs company access. ## Price and Requirements - A company admin can buy $10 to $5,000 in credits, in whole US cents. A $10 purchase adds $10 to the company's balance. Confirmed funds cover any unpaid company bills first. - Every credit purchase needs an active $40/month company credit subscription. Each subscription payment also adds $40 in credits. Start it through [Stripe Checkout](/guide/watch-it-run#monthly-subscription). - An MPP purchase is a one-time payment. It doesn't start or renew a subscription, or turn on automatic recharges. - Services draw from the shared company balance. A top-up is not a fixed-price research purchase, and unused credits carry over. ## Create a Credit Purchase Create the purchase from the CLI, MCP, or API. If the response is lost, retry with the same idempotency key and amount. You won't be charged twice. ```sh cofounder company billing top-up 1000 \ --pay-with mpp \ --idempotency-key company-research-funding-001 ``` The MCP tool is `company_billing_top_up`. The API route is `POST /cofounder-cli/v1/company/billing/top-ups`, with this JSON body: ```json { "amount_cents": 1000, "pay_with": "mpp", "idempotency_key": "company-research-funding-001" } ``` Save the returned transaction `id` and `payment_url`. The public payment endpoint is `POST https://api.cofounder.co/billing/mpp/{token}`. Always use the complete `payment_url` Cofounder returns. Don't build the URL yourself. Its token unlocks only that purchase and expires, so keep it private. ## Pay Through a Compatible Wallet 1. Send a `POST` to `payment_url` without a payment credential. A pending purchase returns HTTP `402` with payment offers in `WWW-Authenticate`. 2. The wallet reads the challenge, shows the amount and seller, and gets approval for the purchase. 3. Retry the same URL with the wallet's `Payment-Authorization` header. The Base x402 option uses `Payment-Signature` instead. Send only one of these headers per request. 4. A confirmed purchase returns HTTP `200`, a transaction with `state: credited`, and a `Payment-Receipt` header when the payment credential is authenticated. HTTP `202` means payment is still settling. It doesn't prove the credits arrived. The payment URL needs no Cofounder login or API key. Creating the purchase and spending the credits still need company access. A `GET` request doesn't start a payment. Always take amounts, networks, and destinations from the offers returned for your purchase. Supported methods: | Method | Payment credential | | --- | --- | | Stripe card or Link | Shared Payment Token scoped to the seller's Stripe profile | | Tempo | Wallet payment on the offered Tempo network | | Base USDC | EIP-3009 authorization, including the Base x402 option | | Solana USDC | Transfer with the purchase's required memo and finalized confirmation | ### Check the Seller Cofounder's seller is The General Intelligence Company: [view the Stripe profile](https://stripe.com/@generalintelligencecompany). The production Business Profile ID is `profile_61VNemPyLY6duDVnvA6VNemOP2SQNzOcfQgZdsGsqBvc`. For a Stripe payment, check `methodDetails.networkId` in the challenge before approving it. Sandbox profiles start with `profile_test_` and live profiles don't. Sandbox blockchain offers use test networks. Never use live payment credentials or funds to test a sandbox purchase. ## Buy One Research Report Directly You can also buy a single company research job without credits. The payment pays for that job only and never becomes a credit balance. ```sh cofounder research purchases create --domain stripe.com ``` The MCP tool is `research_purchases_create` (`POST /cofounder-cli/v1/research/purchases`). It returns the new `job_id`, the price in `amount_usd` ($1.00), and a private `payment_url`. Nothing is charged or started until the URL is paid, and the offer expires after an hour. 1. `POST` to `payment_url` without a credential. HTTP `402` returns a Stripe card or Link challenge for the price. Its description and `opaque` metadata name the job ID. 2. Retry with the wallet's `Payment-Authorization` header. The Stripe PaymentIntent gets `metadata.research_job_id` set to the same job ID, and only then does the research start. 3. The paid request waits up to four minutes and returns HTTP `200` with the `job_id`, the finished `report`, its `grounding` sources, the `payment_intent_id`, and a `Payment-Receipt` header. If research is still running it returns `202` with the receipt. Request the same URL again for the report. If research fails after payment, you get `502` with the receipt and job ID. Contact support with them for a refund to the original payment method. ## Example: Buy Credits, Then Research a Company Once the purchase is confirmed, check the balance: ```sh cofounder company billing get ``` Then request a report with its own spending limit and idempotency key. These commands do paid work, and the research limit is separate from the credit purchase amount: ```sh cofounder research start \ --query "Summarize Stripe's products, target customers, and competitors. Cite sources." \ --title "Stripe company research" \ --max-cost-usd 5 \ --idempotency-key stripe-company-research-001 cofounder research jobs get --job-id cofounder research jobs results get --job-id ``` `research start` returns a `job_id`. Research takes a while, so check `research jobs get` until `status` is `completed` before treating the report as delivered. The results include the report and its sources. The job's `library_files` point to the saved outputs, and `cost.settled` shows the final charge. See [Research](/guide/research) for the API routes and other output formats. ## Keep Receipts Keep both the credit transaction ID and the research job ID. They identify different records: - The credit transaction `id` identifies the credit purchase. It also appears as `metadata.company_transaction_id` on the Stripe PaymentIntent. - The research `job_id` identifies the service request and its saved results. Research is charged to the company balance separately. A top-up isn't tied to any one report. The top-up API doesn't take a research job ID, credits can fund many operations, and existing credits can also pay for research. So a top-up receipt alone doesn't prove a particular result was delivered. To prove research delivery, keep the completed job, its settled cost, and the returned report or Library files. To tie one payment to one report, use a [direct research purchase](#buy-one-research-report-directly) instead. ## Pending Payments, Failures, and Refunds ### Payment went through but the balance didn't change Find the saved transaction with `cofounder company billing transactions list`, then retry it with `cofounder company billing transactions retry `. Cofounder checks the saved payment before adding the credits. Keep the original purchase. Don't create and pay another top-up to recover. Contact support if it stays pending. ### Research failed or was cancelled For ordinary research jobs, the held credits are released and the job isn't charged. A job still being reconciled or publishing its output isn't finished yet. Check the same job before starting another. Prospect searches in `enumerate` mode can keep charges for work already done. See [Research](/guide/research). ### Refunds Released research credits go back to the company balance. They don't refund the original MPP payment. To request a payment refund, contact [Cofounder Support](/guide/watch-it-run#support) or email [support@generalintelligencecompany.com](mailto:support@generalintelligencecompany.com). Include the company ID, credit transaction ID, payment receipt or reference, and the research job ID if relevant. Approved refunds go back through the payment provider and show up in the company's credit ledger. ## Inspect a Challenge Without Paying Given an existing, pending `payment_url`, this request needs no Cofounder API key and sends no payment credential: ```sh curl --include --request POST "$PAYMENT_URL" ``` It returns the challenge without charging anything, and it doesn't run research. For a full sandbox test, use a purchase created in the sandbox and a compatible test wallet. **Approving in a live wallet can move real money.** Redact URL tokens, authorization headers, Shared Payment Tokens, and wallet credentials from any logs or evidence you share. --- ## Multiple Companies **URL:** https://docs.cofounder.co/advanced/multiple-companies **Description:** Run several companies from one account: set the active company, aim one command at another, and keep each key on its own company. One Cofounder account can run many companies. Knowledge, connections, resources, events, and billing each belong to one company, so every command has to target the right one. ## Pick the Active Company The CLI saves your selection as its default: | MCP | CLI | API | | -------------------------- | -------------------------------------------------------------- | ------------------------------------------- | | `company_memberships_list` | `cofounder company list`, `cofounder company memberships list` | `GET /cofounder-cli/v1/company/memberships` | | Not on MCP | `cofounder me get` | `GET /cofounder-cli/v1/me` | | `company_get` | `cofounder company show`, `cofounder company get` | `GET /cofounder-cli/v1/company` | | Not on MCP | `cofounder company switch` | None | | Not on MCP | `cofounder company use ` | None | `company switch` asks you to pick. `company use ` sets the default without asking. `company show` is a readable summary with dashboard links. `company get` returns the full overview: what's ready, every resource, what the company knows, what's broken, and the next step. ## Aim a Single Call On the CLI, override the saved default for one command or one shell: - `--company-id `, a global flag on any CLI command. - `COFOUNDER_COMPANY_ID`, which pins the company for the whole shell or agent environment. On MCP, your agent first calls `user_get` and `company_memberships_list` to check the account and find the company named for the task. It passes that company's `org_id` as `company_id` on company tools. Account tools such as `company_create` don't take it. A working directory doesn't pick a company. If it's unclear which company you mean, your agent asks by name. Whether `company_id` is required depends on how the connection signs in: - With the standard MCP OAuth sign-in, `company_id` is required on every company tool when your account has more than one company. With exactly one, omitting it uses that company. The sign-in identifies your account, so switching companies needs no new login. Each call checks your current membership and permissions. - A company API key always acts in its own company, so `company_id` can be omitted. - On older connections whose token names a company (its `cf` claim), omitting `company_id` uses that company. Company resources pick their company through a `cofounder://companies/{company_id}/...` URI. An earlier tool call doesn't pick the company for a resource read. See [MCP Beyond Tools](/advanced/mcp-apps-prompts-resources). ## Features that differ by company Some commands run only for companies that have their feature turned on. The CLI lists them only for those companies, and running one checks with Cofounder first, so a feature turned on recently works right away. Signing in or switching companies updates the list. `cofounder company feature-flags list` shows which features the active company has. ## How Logins and Keys Stay on One Company The CLI saves one user login. Switching companies changes the saved default without signing in again. Each command locks in its company when it starts and sends it as `X-Organization-Id`, so a switch or token refresh mid-run can't move it to another company. The server checks your live membership and permissions for that company. Each MCP host has its own login and picks the company per call with `company_id`. Switching on the CLI doesn't change MCP. The older `cofounder mcp stdio` bridge only works with the company in its token and refuses others. Use native remote MCP to switch between companies. The overrides above work for saved user logins only. A fixed `COFOUNDER_API_TOKEN` that names a company can't switch to another. An API key is bound to the company it was created under, and the API rejects a `company_id` for any other company. **If you run two companies, create a key for each.** See [API Keys and Scripting](/advanced/api-keys-and-scripting). ## Delete a Company Both commands are destructive, so each needs a typed confirmation: ```sh cofounder org delete --confirm "DELETE COMPANY" cofounder org start-fresh --name "NewCo" --reason --confirm "START FRESH" ``` `org delete` schedules permanent deletion seven days later. Billing is canceled immediately when the schedule is accepted. The command response includes a `redirect_url`, and the confirmation email and reminder email include the same link. Open it while signed in to cancel before deletion starts. Canceling does not restart subscriptions, so review billing separately. `start-fresh` is a separate flow. It archives the selected company and creates a replacement company. It does not use the seven-day deletion schedule. Preview either command with `--dry-run` first. ## Next Steps For credentials that don't need anyone to sign in, see [API Keys and Scripting](/advanced/api-keys-and-scripting). --- ## Secrets and Environment Files **URL:** https://docs.cofounder.co/advanced/secrets-and-env-files **Description:** Store the secrets your deployed app and database functions read, keep local secrets in env files, and set the variables the CLI reads. Your deployed app needs API keys and other secret values. Cofounder stores them and delivers them to your app. Secrets your own machine needs (to run the app locally, or to reach Cofounder) stay in local env files and environment variables. ## Set App Secrets App secrets are the values your deployed app reads: third-party API keys, webhook secrets, anything that would sit in a production env file. | MCP | CLI | API | | --- | --- | --- | | `secrets_set` | `cofounder secrets set KEY` | `POST /cofounder-cli/v1/secrets` | | `secrets_list` | `cofounder secrets list` | `GET /cofounder-cli/v1/secrets` | | `secrets_delete` | `cofounder secrets delete KEY` | `DELETE /cofounder-cli/v1/secrets/{key}` | `secrets set` prompts for the value or reads it from `--stdin`, so the value never lands in your shell history. `secrets list` shows key names and details only. Values can't be read back. To keep a value out of the chat, enter it yourself on the company's **Secrets** page, using the App, Marketing, or Development link from `company_get`. Your agent can then check key names and setup with `secrets_list`. Saving a value doesn't check a running deployment. Running apps and sandbox processes can keep using the old value after you change or delete it. ### Calling the API Directly Send an authenticated bearer token and `X-Organization-Id` with every request. Writes need a `destinations` list: - `app` and `marketing` each update production and staging and try to redeploy. - `development` makes the secret available to development sandboxes. - Destinations you leave out keep their current value. | Method and path | Request | Response | | --- | --- | --- | | `POST /cofounder-cli/v1/secrets` | `{"secrets":[{"key":"STRIPE_SECRET_KEY","value":"","destinations":["app"]}]}` | A `results` array with per-key write receipts | | `GET /cofounder-cli/v1/secrets` | No body | A `secrets` array containing metadata, never values | | `DELETE /cofounder-cli/v1/secrets/{key}` | No body | `{"deleted":true}` after all tracked copies are removed | Have your secret source write the JSON request to a protected file, then send that file so the value stays out of shell history: ```sh curl --fail-with-body https://api.cofounder.co/cofounder-cli/v1/secrets \ -H "Authorization: Bearer $COFOUNDER_API_TOKEN" \ -H "X-Organization-Id: $COFOUNDER_COMPANY_ID" \ -H 'Content-Type: application/json' \ --data-binary @/secure/path/secret-request.json ``` The request has to follow these rules: - Use HTTPS for remote endpoints. - Names are uppercased, with hyphens turned into underscores. Names starting with `COFOUNDER_` are reserved and can't be written. - Destinations must be non-empty with no repeats. ### Check the Result and Recover An HTTP 200 doesn't mean every write saved, so check each POST result: - Success: `success: true`, `error_code: null`, and `writes` entries with `destination`, `scope`, and `status: "saved"`. - Partial: `success: false`, `error_code: "write_incomplete"`, listing which scopes saved and which are unknown. - `resources_unavailable`: fix the destination's setup before writing. - Invalid requests return a redacted 422 response. The CLI exits 1 for partial or unknown outcomes and doesn't retry on its own. To recover, send the same value again. That can trigger another redeploy. HTTP retries should keep the same destinations. If a delete fails, retry it to remove the remaining copies. If a response is lost, the metadata can't tell you whether the write landed. ## Set Database Secrets Edge functions on the managed Supabase project have their own secret store: | MCP | CLI | API | | --- | --- | --- | | `database_secrets_set` | `cofounder database secrets set` | `POST /cofounder-cli/v1/company/database/secrets` | | `database_secrets_list` | `cofounder database secrets list` | `GET /cofounder-cli/v1/company/database/secrets` | ## Keep Local Secrets in Env Files Secrets for the app running on your machine stay out of Cofounder. Keep them in the repo's gitignored env file (`.env.local`, `.env`) and never commit them. Anything the deployed app needs belongs in `secrets` instead. ## CLI Environment Variables | Variable | Controls | | --- | --- | | `COFOUNDER_API_TOKEN` | Bearer token or injected network-secret placeholder for CLI and REST API requests; when it holds a company API key (`cfk_` or a `COFOUNDER_API_TOKEN_KIND=company_api_key` placeholder), `mcp setup` configures MCP clients to send it as their bearer credential | | `COFOUNDER_API_TOKEN_KIND` | Use `COFOUNDER_API_TOKEN_KIND=company_api_key` for an opaque network-secret placeholder | | `COFOUNDER_COMPANY_ID` | Selects the CLI company; for a fixed API key, the server rejects a different company | | `COFOUNDER_API_URL` | API base URL override | | `COFOUNDER_CONFIG_DIR` | Where the CLI stores credentials (default `~/.cofounder`) | | `COFOUNDER_CLI_TELEMETRY` | Opts a dev-environment CLI into telemetry; reporting cannot be switched off | Export them in your environment. The CLI never reads repo env files for its own credentials. To run more than one company, see [Multiple Companies](/advanced/multiple-companies). --- ## Apps **URL:** https://docs.cofounder.co/dashboard/apps **Description:** Read the company's mail, messages, contacts, money, and files, and pin apps like Roadmap, Domains, and Analytics. Each app on the rail shows one part of the company. Your agent does the work, and apps are where you read it, check it, and step in. Most apps also open inside hosts that display MCP apps, so your agent can show them in chat. ## Always on the Rail | App | What you see and do | | --- | --- | | **Inbox** | The company's mailboxes. Search, read threads, and review drafts. When the app is open in chat, **Ask agent to review and send** hands a draft to your agent; **Ask agent to revise** does too where draft updates are enabled, which is not every company yet. | | **Messages** | Text and DM conversations. Reply from a conversation when its channel allows it. | | **Contacts** | People, companies, and deals, with a pipeline by stage and each contact's history. Your agent keeps it up to date. | | **Wallet** | Balance, this month's spend, and transactions. Admins also add funds (with an active subscription), set the company budget, and turn on auto-recharge here. | | **Files** | The company Library: a folder tree with previews and uploads. Ask your agent to save work here so every agent can reuse it. | ## Pinned Apps Open **Add apps** to see the rest. **Open** shows an app once, and **Pin** keeps it on the rail. Only admins can pin and unpin apps. | App | What you see and do | | --- | --- | | **Roadmap** | Milestones toward launch, with why each is next, what blocks it, and what it unlocks. Mark one complete or **Copy agent prompt** to hand it to your agent. | | **Domains** | Check a name, see suggestions, and follow each domain's setup. Admins can buy and renew domains. | | **Analytics** | Website traffic, ad campaigns, and keyword rankings over a time period. Rankings run only when you ask, since they use credit. | | **Social** | Connected social accounts with impressions and engagement. Admins connect and reconnect accounts. | --- ## Steps Your Agent Hands You **URL:** https://docs.cofounder.co/dashboard/handoffs **Description:** Finish the browser steps your agent sends you: approving access, sharing GitHub repositories, connecting Stripe, and checking out. Some steps need you in a browser: signing in, granting access, or paying. Your agent sends a link to the dashboard, you finish the step there, and you go back to your agent. ## Approving an App When an agent connects to Cofounder, follow the approval steps shown. Check the signed-in account and what the app can do before approving access. To use a different account, switch accounts before approving. Some clients also show their own connection confirmation. Choose which company to work on in your agent after connecting. ## Sharing GitHub Repositories When your agent imports or works with a repository you own, it sends a GitHub access link. Authorize GitHub, choose which repositories to share, then return to your agent. If the link fails or expires, ask your agent for a new one. ## Connecting Stripe When your agent connects Stripe for payments, it sends a link to finish the connection. The page confirms the company and Stripe account before saving. If the link has expired or doesn't match, the page tells you to ask your agent to start again. ## Checking Out Creating a company from the dashboard, or adding funds from **Billing**, opens checkout, where you pay. When you return, the dashboard confirms the payment and, for a new company, gives you a prompt to send your agent. ## Your Business Brief A new company waits for its business brief before the dashboard opens. Your agent writes it with you during onboarding. Once it's saved, the dashboard shows it. Select **Continue to dashboard**. --- ## Home **URL:** https://docs.cofounder.co/dashboard/home **Description:** Answer what your agent needs from you and see how the company is doing. Home shows what your agent needs from you and a summary of money, pipeline, and progress. It's the first screen for each company. The Home tile on the rail shows a badge with the number of things waiting on you. ## Needs You Reviews and approvals your agent has asked you for are listed under **Current Tasks**. The **Needs you** card shows how many are waiting, and also lists roadmap milestones that are blocked and wallet problems such as a low balance or a missing payment method. The badge on the Home tile counts only waiting requests, not milestones or wallet problems. When your agent hasn't asked for anything, the card reads 0. For each request you can: - **Read review** or **Read approval** to see its full context. - Approve or reject it. - Add a comment your agent will read. Your agent waits on these until you answer. You can also answer in chat, since your agent sees the same requests. ## At a Glance Home also shows cards for: - **Money**: available balance and this month's spend. - **Pipeline**: open deals by stage from Contacts. - **Progress**: roadmap milestones and the next one. - **Upcoming** meetings and an **Activity Feed** of recent work. - Visitors, open pipeline, email threads, and events at a glance. - **Website traffic**, **Live sites**, **Infrastructure**, **Recent in Library**, recent CRM activity, and event and email activity. ## Since You Were Last Here This card summarizes company activity since your last visit on this browser, grouped by kind with the notable items listed. Select one to open it. On a first visit it covers the past 7 days, and it never looks back more than 30. It's hidden when nothing changed. --- ## Dashboard Overview **URL:** https://docs.cofounder.co/dashboard/overview **Description:** Answer what your agent needs from you, read the company's mail, contacts, files, and money, and change settings in the CofounderOS dashboard. Answer what needs you, read the company's mail, contacts, files, and money, and change settings in the dashboard at [app.cofounder.co/os](https://app.cofounder.co/os). Your agent runs the company through MCP or the CLI, and it can do or show you most of this in chat. A few things need you on the dashboard: adding payment methods, raising or removing a spending limit or the ad spend ceiling (the payer only), and entering sign-in credentials. Deleting a company isn't on MCP either; use the dashboard or `cofounder org delete`. ## Signing In Open [app.cofounder.co/os](https://app.cofounder.co/os) and choose **Continue with Google** or **Continue with GitHub**. ## Connecting Your Agent If your account has no connected agent yet, the dashboard opens on **Connect your agent**. Pick your agent, then follow its three steps: | Agent | 01 Install | 02 Paste the prompt | 03 Approve sign-in | | --- | --- | --- | --- | | Codex | In the app: Plugins → Add → Add a marketplace → `General-Intelligence-Company/cofounder-plugin` → Install. The CLI commands are one disclosure away | **Copy the prompt** into Codex | Plugins → Cofounder → Authenticate, or `codex mcp login cofounder` | | Claude Code | Copy the plugin commands (or the plain `claude mcp add` command) | **Copy the prompt** into Claude Code | `/mcp` → cofounder → authenticate | | Claude | **Add to Claude** opens the prefilled connector dialog (Team and Enterprise owners get the admin link) | **Copy the prompt** into a chat | Click Connect, then enable the connector in the chat | | ChatGPT | Desktop app: open a Work chat and the agent installs it. Website: the illustrated guide at `/setup/chatgpt` (Work needs Plus or Pro) | **Copy the prompt** into ChatGPT | Sign in and click Allow access | | Cursor | **Add to Cursor** deeplink | **Copy the prompt** into Cursor | Approve in the browser | | Other | VS Code and Goose deeplinks, the CLI install commands, or the raw MCP URL | **Copy the prompt** into your agent | Approve in the browser | The page waits for your agent's first successful call, then opens your company. [Connect an Agent](/get-started/connect-an-agent) covers each host. ## Finding Your Way Around The rail on the left holds your apps. **Home**, **Inbox**, **Messages**, **Contacts**, **Wallet**, and **Files** are always there. Pin more from **Add apps**, and open **Settings** from the gear. Each live site your company runs also gets a tile that opens it in a new tab. On a phone, the rail becomes a tab strip. [Home](/dashboard/home), [Apps](/dashboard/apps), and [Settings](/dashboard/settings) each have their own page. ## Switching Companies Open the account menu at the bottom of the rail to: - Switch between your **Companies**. - Start a **New Company**: name it, continue to checkout, then send the prompt it gives you to your agent. - Change the **Theme** (Light, Dark, or System). - **Sign out**. The dashboard reopens the company you used last. --- ## Settings **URL:** https://docs.cofounder.co/dashboard/settings **Description:** Change your company's members, billing, domains, GitHub, Stripe, secrets, and incorporation, plus your own profile and notifications. Open the gear on the rail. Company settings apply to everyone in the company, and some are for admins only. The **You** settings apply only to you. ## Company | Section | What you do there | | --- | --- | | **General** | Company name and timezone, business details (legal name, type, state formed in, whether it has an EIN, mailing and business addresses), and **Ask before going live**, which requires an admin to approve changes before they move from staging to live. | | **Members** | See members and pending invites. Admins change roles and, where team invites are turned on for the company, invite by email. | | **Billing** | Your monthly credits subscription, payment methods and invoices, and payments needing attention. **Add funds**, auto-recharge, and the company budget are in Wallet. | | **Domains** | The same view as the Domains app. | | **GitHub** | The company repository, production branch, last deployment, and open pull requests. To connect a repository, ask your agent. | | **Stripe** | Connect or reconnect the company's live Stripe account (admins). | | **Secrets** | Environment secrets (write-only; you can paste a `.env` file), Edge Function secrets, and sign-in providers like Google and GitHub for your app. | | **Incorporation** | Status, EIN, filing date, and formation documents. | | **Activity** | A live log of company events from you and your agents, filterable by type, text, and time. | ## You | Section | What you do there | | --- | --- | | **Profile** | Preferred name, sign-in email, timezone, appearance, and deleting your account. | | **Your details** | Legal name, email, mobile phone, and home address, used when your agent registers things for the company. | | **Notifications** | Turn billing and promotional emails on or off. | --- ## Import a Repo and Ship a Change **URL:** https://docs.cofounder.co/cookbook/import-a-repo-and-ship **Description:** Connect your existing code to the company, work on it locally, and deploy a change. Connect your existing codebase to the company so your agents can work on it locally and ship changes to your live app. ## Steps ## Keep Your Existing Supabase Database If your app already has a production database, connect it before you deploy: 1. Call `database_import_connect` or run `cofounder database import connect`. Open the link it returns, then check `database_import_connect_status_get` or `cofounder database import connect-status get` until it says `connected`. Wait the suggested time between checks, and ask for a new link if it expires. 2. Call `database_import_candidates_list` or run `cofounder database import candidates list` to find your project ref. 3. Call `database_import_attach` with `project_ref`, or run `cofounder database import attach --project-ref `. Attaching replaces the company's current database and updates its Supabase sign-in settings and Vercel credentials, so review your existing sign-in settings first. It does not move your schema or data, bring over other environment variables, or deploy the app. Attach one database at a time per company. Check the result with `cofounder database refs list`. ## If Something Goes Wrong - If GitHub approval is pending, ask your GitHub organization admin to approve access, then check again in the dashboard. The dashboard can find access that's already been approved. If the access link expires, retry the import to get a new one. - If the repo is in a different GitHub installation, finish connecting in the dashboard to give access to this repository. The import remembers that installation and keeps the company's existing GitHub connection for other repositories. - If the import never finishes, `repo import status` names what's blocking it, and `cofounder code repository-import cancel --idempotency-key cancel-import-1 --wait` cancels it. After an import, `cofounder repo disconnect --wait` brings back the previous managed repository if there was one. GitHub-first setup has no starter repo to bring back. Hosting and the database stay ready for another import. - If the deploy succeeded but the app shows errors, `hosting_deployments_events` has the build and runtime logs. - If the database schema is out of sync, `cofounder database migrations list` shows what's been applied, and `database migrations apply` runs what's pending. --- ## Cookbook **URL:** https://docs.cofounder.co/cookbook **Description:** Recipes that chain several guides into one result, like starting a company or shipping a change to an existing app. --- ## Run a Company End to End **URL:** https://docs.cofounder.co/cookbook/run-a-company-end-to-end **Description:** Start with a new Cofounder account and end with a set-up company and your agent working through its roadmap. Start with only an account. End with a company that knows your business, has its tools set up, and has your agent working through its roadmap. ## Steps ## If Something Goes Wrong - If setup gets stuck on one service, fix the problem, then find the failed run's `run_id` with `cofounder company setup status` and pass it to `cofounder company setup retry `. The `company_setup_retry` MCP tool takes the same id. - If a resource shows a gap, `resources_get` tells you why. For billing failures, run `cofounder company billing resources retry`. - If your agent can't see a file, it was probably uploaded to a different company's Library. Check which company is active with `cofounder company show`. --- ## Connect an Agent **URL:** https://docs.cofounder.co/get-started/connect-an-agent **Description:** Add CofounderOS to Claude, Claude Code, Codex, ChatGPT, Cursor, or any coding agent through MCP or the cofounder CLI, then sign in. Connect through MCP if your agent runs in Claude, ChatGPT, Codex, Cursor, or VS Code. Connect through the CLI if your agent runs commands in a terminal, or for scripts and CI. Both give your agent the same tools, and you can use both. The options below go from least to most work. Use the first one your agent supports. ## Install With Your Agent Paste one of these prompts into your agent's chat. Your agent sets up the connection, starts sign-in, and follows the onboarding guide. Confirm each install, sign-in, or consent step it asks about; the prompt alone doesn't install anything or sign you in. For an agent in Claude, ChatGPT, Codex, Cursor, or another MCP host: ```text Add the Cofounder MCP server at https://api.cofounder.co/mcp, sign in to Cofounder, then follow https://app.cofounder.co/mcp-onboarding/skill.md to onboard me. Before company setup, ask whether I want to use an existing GitHub repository, upload a local folder, or start with a new repository. If you are ChatGPT on the web and cannot add a server from chat, send me to https://app.cofounder.co/os/setup/chatgpt to connect it myself, then continue. ``` For an agent that runs commands in a terminal, like Claude Code or Codex: ```text Read and follow https://app.cofounder.co/cli-onboarding/skill.md to help me set up my company on Cofounder and get my first task started. Before company setup, ask whether I want to use an existing GitHub repository, upload a local folder, or start with a new repository. If I'm on Windows, follow https://app.cofounder.co/mcp-onboarding/skill.md instead (the CLI needs WSL). ``` Both prompts connect to production Cofounder. They're chat text, not shell commands or config files. If your agent can't set up the connection from chat, use one of the options below. ## Connect Through MCP Every host connects to the same hosted endpoint: ```text https://api.cofounder.co/mcp ``` ### One-Click Install - **Cursor**: [Add Cofounder to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=cofounder&config=eyJ1cmwiOiJodHRwczovL2FwaS5jb2ZvdW5kZXIuY28vbWNwIn0) - **VS Code**: [Add Cofounder to VS Code](vscode:mcp/install?%7B%22name%22%3A%22cofounder%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.cofounder.co%2Fmcp%22%7D) - **Claude (claude.ai, Claude Desktop chat, mobile)**: [Add Cofounder as a custom connector](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Cofounder&connectorUrl=https%3A%2F%2Fapi.cofounder.co%2Fmcp) The Cursor and VS Code links work only if the app is installed on the same machine, and your browser asks before opening them. ### One Command Per Host - **Claude Code**: add the server for all your projects, then sign in with `/mcp`. ```sh claude mcp add --transport http cofounder https://api.cofounder.co/mcp --scope user ``` - **Codex**: add the server to `~/.codex/config.toml`, then run `codex mcp login cofounder`. ```toml [mcp_servers.cofounder] url = "https://api.cofounder.co/mcp" ``` - **ChatGPT**: on chatgpt.com, add a custom MCP server with `https://api.cofounder.co/mcp`, keep Authentication on OAuth, and sign in. The [step-by-step guide](https://app.cofounder.co/os/setup/chatgpt) shows each screen. Other hosts and newer install steps are listed at [app.cofounder.co/install.md](https://app.cofounder.co/install.md). ### Signing In Run `codex mcp login cofounder`, authenticate through Claude Code's `/mcp`, or connect through Cursor's MCP settings. In the Claude app, choose **Connect** on the Cofounder connector (in Customize → Connectors), then enable it in a chat from **+** → Connectors. The app opens browser sign-in for you, with no terminal needed. Hosts may first show a Cofounder consent screen that names the app and where it will return you. Approve it only for a connection you started. When the hosted server starts using this screen, each host asks you to reconnect once; sign in again from the host and nothing else changes. Each host stores its own OAuth credential, so signing in to the CLI doesn't sign in an MCP host. Don't export a CLI token into the host's MCP configuration. ## Connect Through the CLI Install the CLI and sign in: ```sh npm install --global @generalintelligence/cofounder@latest vercel@59.19.0 cofounder version cofounder auth login ``` The CLI needs Node.js 22 or 24 on macOS (Apple Silicon) or Linux (x64 or arm64). It doesn't run natively on Windows. There, install it inside WSL 2, or [connect through MCP](#connect-through-mcp), which needs no CLI. The deploy commands are tested against the pinned `vercel` version. Leave it off to keep a compatible global install you already have; a project-local install (`npm install @generalintelligence/cofounder`) includes it. Then install the company-work guide for your terminal agent: ```sh # Claude Code cofounder instructions install-skill --client claude # Codex cofounder instructions install-skill --client codex ``` [CLI Basics](/advanced/cli-basics) covers signing up, account settings, finding commands and docs, and updating. For an unattended agent, use a company API key from [API Keys and Scripting](/advanced/api-keys-and-scripting). ## Set It Up by Hand Any client that supports streamable HTTP and MCP OAuth can connect to the URL above. [MCP Configuration](/advanced/mcp-configuration) covers writing the config by hand, company API keys for agents that can't open a browser, switching accounts, and revoking a connection. ## Check It Works Ask your agent: ```text Get started with Cofounder. ``` It reads the onboarding guide (`onboarding_get` on MCP, `cofounder onboarding` on the CLI), signs you in if needed, and finds your company or helps you create one. [How Your Agent Works](/get-started/how-your-agent-works) explains what it does from there. --- ## How Your Agent Works **URL:** https://docs.cofounder.co/get-started/how-your-agent-works **Description:** What your agent does with CofounderOS through MCP or the CLI: which company it picks, which guides it reads, what it asks you before acting, and how it reports progress. Besides tools, Cofounder gives your agent guides to read, company context to check, and rules about what needs your approval. You don't need to memorize any of it. Your agent reads the same guidance through MCP or the CLI, and knowing what it does tells you what to expect and what to ask for. | Step | MCP | CLI | | --- | --- | --- | | Get started | `onboarding_get` | `cofounder onboarding` | | Check who is signed in | `user_get` | `cofounder auth whoami` | | List your companies | `company_memberships_list` | `cofounder company memberships list` | | Read the company overview | `company_get` | `cofounder company show` | | Read the roadmap | `roadmap_get` | `cofounder roadmap get` | | Find and read guides | `list_resources`, `read_resource` | `cofounder skills list`, `cofounder skills show ` | | Read recent events | `events_list` | `cofounder events list` | | Post progress | `events_post` | `cofounder events post` | The sections below name the MCP tool. A CLI agent runs the matching command. ## Getting Started Ask your agent to get started with Cofounder. It reads the onboarding state, which checks your account and says what comes next: sign in, choose a company, create one, start setup, or begin work. Your agent follows that answer. Ask again whenever you're unsure where things stand. ## Choosing Your Company When you sign in with your own account, the agent checks who you are with `user_get` and which companies you belong to with `company_memberships_list`. It uses the company you name, or your only company, and asks by name when several could match. It never asks you for an ID. A company API key is already bound to one company, so an agent using one skips those lookups. ## Reading the Guides Your agent reads Cofounder's guides before it acts. It starts with `cofounder-company-work`, then reads the guide for the task: | Guide | Read it for | | --- | --- | | `cofounder-mcp-onboarding` | Creating or resuming a company and getting started on a task | | `cofounder-company-work` | Working on a company: context, guide choice, approvals, and progress | | `cofounder-setup` | Tool calls that fail, go missing, or lose their sign-in | | `cofounder-repo` | Cloning, branching, deploying, and handing off the product repository through the CLI, plus adding sign-in, billing UI, or the brand theme to a Next.js app | | `cofounder-repo-mcp` | The same repository work over Git for agents connected through MCP | | `cofounder-library` | Finding and saving company documents and brand assets | | `cofounder-crm` | Contacts, accounts, pipelines, and communication history | | `cofounder-email` | Transactional email, one-to-one mail, and marketing campaigns | | `cofounder-social` | Preparing, scheduling, and publishing social posts | | `cofounder-payments` | Stripe setup, going live, and billing in your app | | `import-existing-supabase-database` | Attaching a Supabase project you already have | | `setup-database-sign-in` | Google, GitHub, or other sign-in for your app | MCP agents read them as resources (`skill:///SKILL.md`). CLI agents use `cofounder skills show `, and `cofounder instructions install-skill` installs `cofounder-company-work` for a terminal agent. The live catalog may list guides newer than this page. ## Checking Company Context Before deciding what to do, the agent reads only what the task needs: - `company_get` for the company overview, what is ready, and a one-line brief of what matters now. - `roadmap_get` for the recommended next milestone. - `resources_list` and `resources_get` for databases, domains, inboxes, and other resources. - `events_list` for recent work from you and other agents. ## What Needs Your Approval Your agent does what you ask and checks with you on the rest: - It buys, provisions, and moves money only when you ask. The exception is [Managed Setup](/guide/managed-setup), which is free: during onboarding your agent starts it as soon as your company is created. - When a call fails for billing or permission reasons, it follows the returned recovery step instead of retrying. - Steps only you can do, like signing in to a provider or confirming payment, come back as a link. The agent hands it to you and waits. ## Following Through Many responses include `next_steps`: the call to make next, or the step you need to take. Long-running calls return right away, and the agent checks the matching status call before it says the work is done. The agent can also show you views instead of describing them. `company_app_open` opens the company Home, Inbox, Messages, Contacts, Roadmap, Domains, Wallet, Files, Analytics, or Social inside hosts that display MCP apps. ## Reporting Progress The agent posts short updates with `events_post` when it finds something, makes a decision, hits a blocker, or finishes work. Other agents on the same company read them with `events_list`, so work carries across sessions and tools. ## When You Ask What to Do Next Ask "what should I work on next?" and the agent reads the company brief and the roadmap. It suggests two or three concrete tasks, recommends one, and waits for you to pick. --- ## Quickstart **URL:** https://docs.cofounder.co/get-started/quickstart **Description:** Go from a connected agent to a set-up company with its first task, in four prompts. Go from a new account to an agent working on your company. First, [connect your agent](/get-started/connect-an-agent) through MCP or the CLI. Each step below is something you say to your agent, followed by the MCP tool and CLI command it uses, and the API route for your own scripts. ## Create a Company Everything in Cofounder (context, resources, billing) belongs to a company, so make one first: ```text Create a Cofounder company called Acme Analytics. ``` | MCP | CLI | API | | --- | --- | --- | | `company_create` | `cofounder company create` | `POST /cofounder-cli/v1/company` | If you already have a company, say "Get started with Cofounder" instead and your agent picks up where you left off. ## Teach It What You Know A new company starts empty. Give it your pitch, market, and constraints, plus any docs or sites that describe them: ```text Import what you know about Acme Analytics from our pitch deck and website. ``` | MCP | CLI | API | | --- | --- | --- | | `library_text_write` | `cofounder library text write --path --content ` | `POST /cofounder-cli/v1/company/library/files/text` | | `library_urls_ingest` | `cofounder library urls ingest --url ` | `POST /cofounder-cli/v1/company/library/ingest/url` | Your agent saves it to the [Library](/guide/company-knowledge#the-library), the shared file system every agent can read. See [Company Knowledge](/guide/company-knowledge#add-what-you-already-know). ## Run Managed Setup One run sets up the repo, deploy target, database, inbox, and billing, and reports anything still missing: ```text Set up the company's infrastructure and tell me what still needs me. ``` | MCP | CLI | API | | --- | --- | --- | | `company_setup_start` | `cofounder company setup` | `POST /cofounder-cli/v1/company/setup` | | `company_setup_get` | `cofounder company setup status` | `GET /cofounder-cli/v1/company/setup` | Setup takes a few minutes. Your agent checks back with `company_setup_get` or `cofounder company setup status`. In a terminal, watch it live with `cofounder watch company`. [Managed Setup](/guide/managed-setup) has the details. ## Pick the First Task The roadmap lists the company's next work: ```text What should I work on next with Cofounder? ``` Your agent reads the company brief and the roadmap (`roadmap_get` or `cofounder roadmap get`), suggests a few tasks, and waits for you to choose. Once you pick, it reads that milestone's instructions and starts. It checks with you along the way, as described in [How Your Agent Works](/get-started/how-your-agent-works). Each task has its own page in the [Guide](/guide/create-a-company). --- ## Ads **URL:** https://docs.cofounder.co/guide/ads **Description:** Run paid ads on the ad accounts your company already has. Connect them, research what works, create campaigns, cap spending, and track results. Run paid ads on the ad accounts your company already has, on Google, Meta, LinkedIn, TikTok, and other platforms. Managed Google Ads provisioning is limited to selected companies. Your agent researches what works, sets up campaigns, keeps spending under a daily limit you control, and reports how they perform. Connecting accounts and anything that spends money require a company admin. Any member can see accounts, campaigns, and results. ## Connect Your Ad Accounts Your agent can connect Google Ads, Meta, LinkedIn, TikTok, Pinterest, X, and OpenAI ad accounts. Connecting one needs you to sign in to the ad platform. Your agent hands you the link. X Ads requires a connected X social account in the same company. Connect X first with `social_accounts_connect`, then call `ads_accounts_connect` with `platform: "xads"`. It uses your default X account, or your only connected X account. If several are connected without a default, pass `source_resource_id` from `social_accounts` to choose one. In Cofounder's Social app, open your X account or choose X under Add account. The X Ads section shows its separate authorization. Authorize at X, then return to Cofounder to choose available ad accounts. Unavailable accounts cannot be selected. If no accounts are returned, use Check access again; an empty list does not explain why access is unavailable. Your agent can inspect the same choices with `ads_accounts_list`, passing the X account's `source_resource_id`, and save a nonempty `ad_account_ids` selection with `ads_accounts_connect`. The provider may discover or sync reachable ad accounts during authorization, before you save a selection. Connecting or selecting accounts does not create ads or approve spending. If the company has more than one account, your agent picks the one each campaign runs on. Every ads command names an account by the `resource_id` that `ads_accounts_list` returns. The only exception is `ad_account_ids` when connecting, which takes the ad platform's own account IDs. For a connected Meta account, your agent can also see the account's business-verification facts when Meta reports them. A missing fact is unknown, not an approval. ## Inspect Website Tracking Your agent can inspect the tracking tags and conversion destinations for a connected Meta or Google Ads account. Any company member can read them. ```bash cofounder ads tracking tags list --resource cofounder ads tracking tags get --resource --tag-id cofounder ads conversions destinations list --resource ``` The matching MCP tools are `ads_tracking_tags_list`, `ads_tracking_tags_get`, and `ads_conversions_destinations_list`. List results are paginated; pass `page.next_cursor` as `--cursor` to continue. The tag detail includes its base installation code and available conversion definitions. A Google tag's website identifier can differ from its tag ID; its website events can also have conversion labels. Google conversion destinations are limited to the selected advertiser's own definitions. Shared manager-owned definitions are not available through these reads. An account without Google conversion tracking returns an empty destination list with a notice. These reads do not install code, send test events, or change campaign bidding. An active tag is not proof that your website sends conversions. A reported last-fired time covers every website using the tag. A destination's category does not tell you whether it accepts website events or server uploads. For installation, ask your agent to read the `cofounder-ads-measurement` skill. On supported Next.js sites, `@cofounder/ads-tracking` installs the existing marketing template's Meta Pixel and Google Tag Manager loader. Connect it to the site's advertising consent control. Keep conversion events in the site's existing PostHog, GTM, or Meta implementation and emit them after a successful signup, purchase, or other chosen business action. ## Create a Website Lead Action When available for the company, an admin can create a secondary website lead action for a managed Google advertiser: ```bash cofounder ads tracking website-lead-actions create \ --resource \ --name ``` Google creates the action in the selected advertiser's own conversion account, including when conversion tracking has not yet been enabled for that advertiser. Shared manager-owned conversion accounts and linked Google accounts are not supported by this operation. Google action names are unique, and creation is not safe to retry after an uncertain result. Inspect the returned action ID with the lead measurement check before installing it. The action is secondary: it appears in All conversions and is excluded from standard bidding goals. Google may create default category and origin goal records when it creates the action, but this call does not add the action to a custom conversion goal or configure campaign-specific goals. It does not install code or prove that the site sent the event or that Google attributed it. These tools are not available to every company yet. When available, an admin can set the selected action as primary or secondary after reviewing its advertiser-wide effect. This affects every campaign using the action. A primary action can count in Conversions and standard bidding wherever its category and origin goal is biddable; secondary actions remain in All conversions: ```bash cofounder ads tracking conversion-actions primary update \ --resource \ --action-id \ --primary-for-goal ``` Campaign goal settings are a separate explicit choice. Set the lead-form goal for one campaign to biddable or non-biddable with an explicit campaign scope. This applies to every primary action with that category and origin in the campaign: ```bash cofounder ads campaigns lead-goals set \ --resource \ --campaign-id \ --action-id \ --goal-config-level CAMPAIGN \ --biddable ``` Setting `CAMPAIGN` disconnects that campaign from future account-default goal updates. The operation changes only the selected `WEBSITE` / `SUBMIT_LEAD_FORM` goal and preserves other goals. It refuses campaigns with a custom conversion goal or unknown custom-goal membership. Neither operation changes a bidding strategy, budget, or campaign status. ## Send Server Conversions An admin can create a Meta pixel with `ads_tracking_tags_create` or a Google upload action with `ads_conversions_destinations_create`. Google creation requests secondary status; a reused action retains its existing settings. Website tags and upload actions are separate destinations. ```bash cofounder ads tracking tags create --resource --name "Website pixel" cofounder ads conversions destinations create --resource --name "Confirmed signups" --category CompleteRegistration ``` `ads_conversions_send` sends up to 100 events to one destination verified against the selected advertiser. Supply stable event IDs, original occurrence times, explicit consent and permitted matching identifiers. Inspect the response's `outcome`, accepted/failed counts and failures even on HTTP 200. Denied ad-data consent skips delivery. Provider acceptance does not prove attribution. Preserve IDs and times after uncertain delivery; never undo a purchase because tracking failed. Replace the event ID, time, URL and permitted matching data with the original business event before sending: ```bash cofounder ads conversions send --resource --destination-id \ --consent '{"ad_user_data":"GRANTED","ad_personalization":"GRANTED"}' \ --events '[{"event_id":"signup:","event_name":"CompleteRegistration","occurred_at":"","action_source":"web","source_url":"https://example.com/signup","user":{"email":""}}]' ``` For a company site, `ads_conversions_site_setup` saves or reuses one site-bound `ads:conversions` key and installs server-only settings in its Vercel Production environment. Install `@cofounder/ads-conversions`, call `sendAdConversion` or `sendAdConversions` from the existing successful business-action handler, then deploy the site. A batch has up to 100 events, all for the configured destination and one consent decision. Setup does not deploy. Keep all `COFOUNDER_ADS_*` settings server-only. The key can submit conversions to eligible company advertisers, but cannot call ordinary company operations. Setup retries reuse the saved key. Rotate explicitly with `ads_conversions_site_rotate` and the current `expected_key_id`. The previous key remains active for the running deployment. Deploy the new Vercel settings, reapply affected PostHog destinations, then explicitly revoke the previous key. ```bash cofounder ads conversions site setup --resource --app-binding-id --destination-id ``` Rotation uses the current key ID as a retry guard: ```bash cofounder ads conversions site rotate --resource --app-binding-id --destination-id --expected-key-id ``` Meta's `ads_conversions_quality_get` reads matching scores and browser/server coverage for a selected pixel. It is pixel-wide, not a measurement of one site. ```bash cofounder ads conversions quality get --resource --destination-id ``` Google Data Manager accepts uploads for asynchronous processing. Acceptance does not mean processing completed or attribution occurred, and the current Zernio API does not expose Google request status. Meta pixels can be inspected with `ads_tracking_tags_diagnostics_get`. Google server delivery requires an enabled, advertiser-owned `UPLOAD_CLICKS` action; shared-manager and `WEBPAGE` actions are not supported for uploads. ```bash cofounder ads tracking tags diagnostics get --resource --tag-id ``` ## Use Existing PostHog Events Keep the canonical conversion object on the existing successful business event: `ad_conversion`, with top-level `ad_user_data` and `ad_personalization` consent states. Managed PostHog forwarding targets that event through the same scoped Cofounder endpoint used by the site's server helper, keeping shared Ads provider credentials private. An admin explicitly authorizes destination-management permissions for the selected managed analytics project, then configures one destination using a stable `setup_key`. The same key selects it for retries, reads, updates and deletion. See the `cofounder-ads-measurement` skill. ```bash cofounder ads conversions posthog authorize --resource --app-binding-id --destination-id --analytics-resource-id cofounder ads conversions posthog setup --resource --app-binding-id --analytics-resource-id --setup-key --destination-id --event-name cofounder ads conversions posthog get --resource --app-binding-id --analytics-resource-id --setup-key cofounder ads conversions posthog delete --resource --app-binding-id --analytics-resource-id --setup-key ``` If authorization returns a consent link, an admin opens it and retries authorization. The destination forwards the existing event's `ad_conversion` object after checking its top-level ad-data consent properties. Deleting the destination leaves the site's conversion key active. Use one server delivery route per event and advertiser destination. Verify business success, PostHog capture and provider receipt separately. Google upload acceptance is not completed processing or attribution. ## Research Hooks and References Before making creatives, your agent can study live Meta ads in your space: real examples, opening hooks, creative prompts, and audience patterns. Research uses ad-research credits. It doesn't make images or video. Your agent uses [Media](/guide/media) for that. Your agent puts your product, audience, relevant URLs, and dates in the question. An answer can take up to twenty minutes, and your agent checks back for it. Follow-up questions continue the same conversation. A retried question returns the saved answer instead of charging twice. A reference ad that has run for a long time is a lead, not proof it makes money. ## Research Keywords With a Google Ads account connected, your agent looks up search terms before writing ads. It suggests keywords from seed words, a web page, or both, and returns search volume and competition for up to 1,000 keywords. Google reports bid and cost figures in millionths of the account currency (1,000,000 is one dollar on a USD account). ## Create a Campaign On a connected Meta account, your agent creates the campaign, ad set, and ad in one step. The creative is a public image, or a public video with a call to action. New campaigns start paused. Nothing spends until your agent resumes one. The result can include `notices` suggesting more specific ad text. They're suggestions only and don't launch anything. Meta post boosts request a paused campaign. After creating a boost, check its campaign status before resuming it. Repeating the same request returns the original result and doesn't pause a campaign you resumed afterward. If Cofounder can't confirm the new campaign is paused, its budget remains committed. Check the campaign in Meta and pause it before continuing. The first Meta resume commits the campaign's spend before switching it on. Pause and resume use the provider's timestamped status observation when it is available, and otherwise attempt a live read of the selected campaign. An accepted request alone does not confirm the change. Meta's effective status can leave an activation unconfirmed while the campaign is in review or has delivery issues. If the switch outcome is unclear, inspect the existing campaign in Meta before taking another action; don't create a replacement boost or use a new idempotency key. An active switch doesn't prove ad approval or delivery. ### Meta Age and Special Ad Categories On Meta, your agent can set an age range and declare a special ad category, such as financial products, housing, employment, or credit. A boost takes `age_min`, `age_max`, `special_ad_categories`, and `special_ad_category_country` directly. A standalone campaign takes ages in `input.targeting` and the category fields at the top of `input`: ```json { "input": { "targeting": {"countries": ["US"], "age_min": 18, "age_max": 65}, "special_ad_categories": ["FINANCIAL_PRODUCTS_SERVICES"], "special_ad_category_country": ["US"] } } ``` - The category country is where the category applies. It's separate from `countries`, which picks the audience, and needs a category alongside it. - Use `FINANCIAL_PRODUCTS_SERVICES` for new financial campaigns. The older `CREDIT` value is still accepted. - With no audience countries, campaigns target the US. US rules apply when either the audience or the category country includes the US: ages must sit within 18 to 65 (65 means 65 and older), and conflicting ages are refused. - Setting ages, or declaring a US restricted category, turns off audience expansion. - An ordinary 21+ offer can set just `"targeting": {"age_min": 21}`. These fields describe the targeting you submit. They don't prove licensing, platform permission, or that the campaign will be approved. Other platforms ignore them. ### Company Facts and Activity Checks Save the company's `offer` and `intended_use` in [company settings](/guide/create-a-company#change-settings). These caller-supplied facts are not independently verified. The safeguards that use them are off by default and apply only when enabled for a company. They affect connected Meta ads, not every company or ad platform. When enabled, standalone campaign creation checks the saved facts against the submitted ad text, effective audience, declared special categories, and selected account. It does not open the landing page or inspect image or video files. The actual ad is also checked against the prohibited activities; ordinary company facts cannot authorize an ad promoting a prohibited offer. The effective audience must be US-only. The operation explains whether the stated business or activity is unsupported, facts are missing, or a check is unavailable. Resubmit the facts through `settings update` to retry an unavailable company check. A company category by itself does not ban every ad from that company. The activity in the specific ad and its audience determine which controls apply: - Non-explicit adult dating and specific weight-loss, cosmetic, medical, or physiological health claims require an explicit minimum age of 18. This 18+ rule applies to covered claims, not every health-related business. US alcohol promotion requires an explicit minimum age of 21; a company that serves alcohol does not trigger the age rule unless the ad promotes alcohol. - US ads for housing, employment, or financial products and services require the matching `HOUSING`, `EMPLOYMENT`, or `FINANCIAL_PRODUCTS_SERVICES` category and `US` in `special_ad_category_country`. A regulated title or consequential claim instead triggers the scoped review described below; it does not by itself require a financial-products category. If an ad includes both housing and employment activity, declare both matching categories. - An ad for a covered crypto exchange or token is blocked because this campaign path cannot verify Meta's prior permission and account-matched accepted license evidence. A US securities or investment ad is blocked because the path lacks the advertiser and payer disclosure fields. These checks concern the specific advertised activity, not every ad from a financial-services company. Non-explicit adult dating, US alcohol promotion, ads relying on a regulated title or authorization, consequential medical, legal, tax, or financial claims, and third-party fundraising that raises or routes money to a beneficiary require scoped Cofounder staff review for the exact ad and audience. Add `input.review_evidence_reference` to a standalone create request with a text or URL reference. The reference does not approve the activity; classification and Meta's review verdict do not replace human review. A pending or rejected review leaves creation blocked, and no review turnaround time is promised. Approval is scoped to the account, market, and activity context; a different context needs its own review. Retrying an unchanged rejected or revoked review returns that decision. Change the ad, company facts, or supporting evidence before requesting another review. An expired approval can be submitted for renewed review. Alcohol and regulated-title or consequential-claim reviews must also establish that the actual offer does not require targeting below country level. This path supports US country targeting only; staff cannot approve an activity that requires state-level restrictions this path cannot enforce. When these safeguards are enabled, boosting a connected Meta post and resuming a connected Meta campaign are currently unavailable because the current ad creative and effective audience cannot be checked. Pausing remains available. If an error says an authorization change was confirmed not submitted, correct the facts or review and submit again with a new `--idempotency-key`. For an unclear provider outcome, do not submit again with a new key. ## Cap Spending Set one daily-equivalent commitment limit across every ad account through company budgets, with `scope: ads`. For example, a `limit_cents` value of `5000` sets a USD $50 limit. Your agent needs company admin access to create or lower it. A signed-in admin can raise or remove it in Wallet. The limit is checked when admitting spend, including campaign resumes and budget increases. It caps active campaign budget commitments in USD; it does not reset each day. Each campaign's own budget and Google's account budget still apply. Provider pacing can make actual daily charges differ from these commitments. Company budgets reports the committed amount and remaining room; these are unknown when currency conversion is unavailable. | MCP | CLI | API | | --- | --- | --- | | `company_billing_budgets_list` | `cofounder company billing budgets list` | `GET /cofounder-cli/v1/company/billing/budgets` | | `company_billing_budgets_set` | `cofounder company billing budgets set --scope ads --limit-cents 5000` | `PUT /cofounder-cli/v1/company/billing/budgets` | This is the only place to set the ad limit. A raise through `company_billing_budgets_set` over MCP or the CLI is refused with `ad_spend_ceiling_raise_requires_payer`; raise it in Wallet instead. ## Manage Campaigns Your agent lists your campaigns, pauses them, resumes them, and changes their budgets. Pausing always works. **Resuming starts spending**, within the campaign budget and the daily ceiling. Budget changes follow each platform's rules. Cofounder's Google budget changes support only daily budgets; reads can report custom-period budgets. Meta campaigns budgeted per ad set reject a campaign-level change. Campaign reads and action results return the reported budget in `budget`: `amount`, `type`, and `currency`. Google reads also retain `amount_micros`, `explicitly_shared`, `resource_name`, and `delivery_method` when reported. `amount` uses the exact micros value in native currency units when available. These budget facts come from the latest successful sync, including when a campaign status is read live. Unknown sharing stays null, and a shared-budget read does not opt into changing it. The separate `budget_level` identifies the budget owner, including ad groups when the campaign has no budget amount. A missing currency or budget period stays unknown. An unfamiliar period stays as reported; it does not establish a daily amount. Lifetime budgets need a known schedule to calculate a daily amount. `platform_campaign_status` preserves the reported campaign status. Meta reports its effective status here, which is separate from the requested on/off switch. It does not prove that ads are serving. `status_read_at` and `confirmed` distinguish a provider observation from an accepted status-change request. Reading one Meta campaign can also return `platform_options`: the special ad categories and category countries Meta reports, plus each ad set's ages, countries, and audience expansion. A missing or null value means Meta didn't report it, not that it's off. `adsets_coverage` says whether all ad sets were read, and `observed_at` is when Cofounder looked. It's a snapshot of settings, not proof of delivery or compliance, and campaign lists don't include it. | MCP | CLI | API | | --- | --- | --- | | `ads_campaigns_list` | `cofounder ads campaigns list --resource-id --status active` | `GET /cofounder-cli/v1/company/ads/campaigns` | | `ads_campaigns_get` | `cofounder ads campaigns get --campaign-id ` | `GET /cofounder-cli/v1/company/ads/campaigns/{campaign_id}` | | `ads_campaigns_pause` | `cofounder ads campaigns pause --campaign-id ` | `POST /cofounder-cli/v1/company/ads/campaigns/{campaign_id}/pause` | | `ads_campaigns_resume` | `cofounder ads campaigns resume --campaign-id ` | `POST /cofounder-cli/v1/company/ads/campaigns/{campaign_id}/resume` | | `ads_campaigns_budget_set` | `cofounder ads campaigns budget set --campaign-id --amount 20 --budget-type daily` | `PUT /cofounder-cli/v1/company/ads/campaigns/{campaign_id}/budget` | ## See Results Ask your agent how a campaign or a single ad did over a date range. Ranges include both the start and end dates, and results show only the numbers the platform reports. The dashboard's Analytics app also shows your campaigns. Google results include the account currency and time zone when available. For “last week,” choose explicit inclusive dates in that account's time zone; do not substitute your local time zone when the account time zone is unknown. Check the selected `resource_id`, reported `ad_account_id`, and campaign `object_id` before interpreting the numbers. For a Google account-scope report, pass the selected `resource_id` as `object_id`; the bound Google customer ID is used for the query. Campaign, ad set, and ad reports use that Google object's numeric ID. Check `reporting.completeness` before treating the numbers as a full-period report. Empty results mean unavailable data, not zero activity. A null metric is unavailable; `reporting.incomplete_metrics` names totals that could not be combined from all rows. Spend is reported ad spend, not a settled company charge. Conversions are attributed events, not verified leads, and conversion value is not verified business revenue. Historical impressions show delivery in the requested window, not that the campaign is serving now. `ctr` is clicks divided by impressions, so `0.04` means 4%, not 0.04%. `cpc` is spend per click in account currency. Both are null for partial reports or a zero denominator. `reporting.retrieved_at` is when the data was read, not when it was refreshed. A null `reporting.stale` means freshness is unknown. When supplied, `reporting.cache_age_seconds` preserves the HTTP cache age for this reporting source, not Google's data age. The GAQL response does not supply Google's refresh timestamp, so do not claim freshly synced data. Respect `reporting.retry_after` before retrying; Google reports do not start a job. | MCP | CLI | API | | --- | --- | --- | | `ads_insights_get` | `cofounder ads insights get --resource-id --scope campaign --object-id --from-date 2026-09-01 --to-date 2026-09-28` | `GET /cofounder-cli/v1/company/ads/insights` | | `ads_insights_jobs_get` | `cofounder ads insights jobs get --job-id ` | `GET /cofounder-cli/v1/company/ads/insights/jobs/{job_id}` | ## Commands Connect or provision accounts. Managed Google Ads provisioning is not available to every company yet: An admin can call `ads_accounts_provision` with `platform: "googleads"` when managed Google Ads is enabled for the company. The response identifies the account and reports `created`, `already_exists`, `creation_outcome_unknown`, or `ambiguous`. An unknown result means account creation may have succeeded; follow the returned recovery steps instead of creating another account. An ambiguous result needs account selection to be resolved before setup can continue. After confirming the child account, provisioning also attaches Cofounder's Google billing account. The response can be `pending` while Cofounder confirms that attachment; follow its next action. An `APPROVED` or `APPROVED_HELD` billing setup means the payer is attached, not that ads are ready to spend. Provisioning does not authorize a service period, reserve company funds, set a finite media cap, or activate campaigns. Use the separate billing authorization for the approved amount and dates before campaign spending. Read `ads_accounts_get` for remaining account requirements. Cofounder handles billing setup support; ask for business or advertiser identity information only when Google requires it. The provisioning timestamp records when the result was evaluated and may use saved setup state; it does not guarantee a fresh check with Google. For a managed Google Ads account, an admin can stop service with `ads_accounts_stop` or request service closure and final settlement with `ads_accounts_cancel`. These operations are available only to selected companies with managed Google Ads enabled. Select the exact account using its company resource ID: ```bash cofounder ads accounts stop --resource cofounder ads accounts cancel --resource ``` Acceptance records the lifecycle request; it does not prove that Google has stopped serving or that final settlement is complete. Read `ads_accounts_get` for lifecycle and any final service receipt, and `ads_billing_get` for current containment and settlement. Stop permanently blocks new spending for that managed account; it cannot be resumed. Use campaign pause when the user wants a reversible pause. Service closure permanently ends managed Ads service after settlement, but does not delete the native Google Ads customer account. After stop or close, account, billing, campaign diagnostics, and Ads view reads can request another stop if Google reports renewed activity. This applies only while Cofounder still manages the account under its verified supplier billing authority, including when new managed setup is disabled. A requested repair is not confirmation: check the returned containment evidence. Unknown evidence remains unknown. Recovery is triggered by these reads, not continuous monitoring. For companies with managed Google Ads enabled, `ads_accounts_get` may also return `managed_action`. It names the current account-level actor (`customer`, `cofounder`, or `provider`) and its highest-priority known requirement. This summary does not establish campaign readiness, delivery, or that ads have stopped. Check campaign and spend evidence separately. | MCP | CLI | API | | --- | --- | --- | | `ads_accounts_connect` | `cofounder ads accounts connect --platform ` | `POST /cofounder-cli/v1/company/ads/accounts/connect` | | `ads_accounts_list` | `cofounder ads accounts list` | `GET /cofounder-cli/v1/company/ads/accounts` | | `ads_accounts_provision` | `cofounder ads accounts provision --platform googleads` | `POST /cofounder-cli/v1/company/ads/accounts/provision` | | `ads_accounts_stop` | `cofounder ads accounts stop --resource ` | `POST /cofounder-cli/v1/company/ads/accounts/stop` | | `ads_accounts_cancel` | `cofounder ads accounts cancel --resource ` | `POST /cofounder-cli/v1/company/ads/accounts/cancel` | Platforms are `googleads`, `linkedinads`, `metaads`, `openaiads`, `pinterestads`, `tiktokads`, and `xads`. Research ads and keywords: | MCP | CLI | API | | --- | --- | --- | | `ads_research_query` | `cofounder ads research --question --idempotency-key ` | `POST /cofounder-cli/v1/ads/research` | | `ads_research_jobs_get` | `cofounder ads research jobs get --job-id ` | `GET /cofounder-cli/v1/ads/research/jobs/{job_id}` | | `ads_research_jobs_cancel` | `cofounder ads research jobs cancel --job-id ` | `POST /cofounder-cli/v1/ads/research/jobs/{job_id}/cancel` | | `ads_research_chats_list` | `cofounder ads research chats list` | `GET /cofounder-cli/v1/ads/research/chats` | | `ads_research_chats_get` | `cofounder ads research chats get --conversation-id ` | `GET /cofounder-cli/v1/ads/research/chats/{conversation_id}` | | `ads_research_keywords` | `cofounder ads research keywords --resource-id --mode ideas --keyword ` | `POST /cofounder-cli/v1/ads/research/keywords` | | `ads_alerts_list` | `cofounder ads alerts list` | `GET /cofounder-cli/v1/company/ads/alerts` | | `ads_alerts_dismiss` | `cofounder ads alerts dismiss --resource-id --alert-id ` | `POST /cofounder-cli/v1/company/ads/alerts/dismiss` | Create a Meta campaign: ```sh cofounder ads campaigns create --input ``` --- ## Communicate and Sell **URL:** https://docs.cofounder.co/guide/communicate-and-sell **Description:** Reach customers. Give the company an inbox and phone number, post to social, keep the CRM current, and check your brand. Reach customers from the company's own accounts. Your agent sends email, receives texts on a company phone number, posts and replies on social, and keeps the CRM up to date. Each section links to the full guide. ## Set Up Email and Phone Your agent gives the company an inbox and a phone number. It sends and reads email, and reads the texts people send to the number. [Email](/guide/email) covers the rest of email: reading and replying, drafts, campaigns to CRM contacts, your own mail domain, and email from your app. **Phone numbers cost money.** Your agent buys a real number, billed every month, or reuses the one the company already has. Releasing the number deletes its message history, and a number bought later is a different one. On prepaid credits, buying a new number needs an active $40/month company credit subscription. Start checkout with `cofounder company billing subscribe`, pay, and your agent tries again. Reusing or releasing a number doesn't need the subscription. A new number can receive texts right away. Sending texts isn't supported. Your agent can show the latest message from each number that has texted you, or one number's full history. ## Keep the CRM Current The built-in CRM holds accounts, contacts, deals, and an activity log. [CRM](/guide/crm) covers records, enrichment, calendar sync, and finding prospects. MCP clients can also open the CRM as a board. See [MCP Beyond Tools](/advanced/mcp-apps-prompts-resources). ## Run Ads, Read Analytics, and Research [Ads](/guide/ads) covers paid campaigns from account setup to results. [Research](/guide/research) covers quick web searches and longer research jobs. Query your marketing data with `cofounder analytics query` / `analytics_query`. Pass multiple metrics in one flag, such as `--metric views,likes`; use the same syntax for `--group-by` and `--insight-family`. For visits to the marketing site, run `cofounder analytics website-traffic get --range 30d` (`analytics_website_traffic_get`). Add `--purpose product` to see the product app instead. ## Post on Social Connect the company's social accounts once, such as LinkedIn or TikTok. For each one, you sign in to the platform from a link your agent opens, and it waits until the account works. After that, your agent posts, schedules, and answers comments and messages from those accounts. Social and Calendar also show posts made directly on supported platforms, labeled “Posted on” with the platform name. These posts are read-only in Cofounder. Post details include text and image or video attachments. Connecting an account starts a background import of the provider's available post and analytics history. Provider events keep it current afterward. An interrupted import resumes from its last completed page; reconnecting starts a fresh, idempotent history import. Use a post's Cofounder ID with `analytics_query` to read its available metrics. For a specific post made directly on a platform that is not yet in Cofounder, use `analytics_query` with `query_type: "post_url"`, `social_account_resource_id`, and `url`. In the CLI, use `cofounder analytics query --social-account-resource-id --url `. The URL must contain the selected account's username. Supported formats are X, Threads, TikTok, Bluesky, Facebook page posts, Reddit user posts, and LinkedIn posts. Short links and ownerless formats, including Instagram, YouTube, and Pinterest links, are rejected rather than assigned to an account by guesswork. Only a missing post triggers a sync, at most once per account every 15 seconds. If indexing is still pending, retry after 15 seconds. An account that needs reconnection must be reconnected before further analytics or post syncs can run. Business-policy checks are rolling out and are not enabled for every company yet. Where enabled, a saved prohibited business or unsupported intended use blocks new posts, replies, messages, retries, and provider edits. Ordinary communication from verification-sensitive businesses remains allowed without ad verification. Missing business information alone does not block social publishing. You can still inspect results, cancel a post, or unpublish it. The error explains how to correct inaccurate business information or contact Support. Use `cofounder social accounts connect --platform instagram --expected-username yourhandle` / `social_accounts_connect` with `expected_username` to refuse a different account. To reconnect an existing account, pass `--resource-id ` / `resource_id`; Cofounder keeps its platform identity and Instagram login method. For Instagram, `--instagram-login-method facebook_login` requests Facebook authorization when connecting a new account. If access expires or is revoked, `social_accounts` shows the account as needing action. Your agent requests a reconnect link for that resource and asks you to sign in and approve access. It checks `social_accounts` again before resuming. Removing an account intentionally does not trigger a reconnect request. If the old connection was removed, authorization creates a new connection for the same platform identity and retains the old account's history. Request specific permission areas with one comma-separated `--scope` flag, such as `--scope posting,analytics`, or the MCP `scopes` list. Available areas are `posting`, `analytics`, `comments`, `messaging`, and `ads`. Omit them to request full permissions. Platforms that do not support scope selection reject this option. A connected account with no posting permission can still use the permissions it has. `social_accounts` reports whether each account can publish, which features are available, and when its provider state was last synchronized. Unavailable features explain whether to reconnect, grant permission, or wait for access. An account without posting permission can still prepare drafts. If the provider temporarily disables a platform, keep the connection and wait for access to return. Each platform has a default account your agent uses unless you name another. Your agent checks what each account supports (settings, content and media limits, and where it can post) and can pick where an account posts. An account can't be disconnected while it has pending posts or a linked ads account, unless you force it. ### Publish and Schedule Posts Every post starts as a draft: Draft → check → publish now or schedule. To schedule, your agent picks a set time or uses the posting queue: a list of posting slots shared by all the company's social accounts. Your agent can show the slots, suggest upcoming times, and change them. The real slot is picked when the post is scheduled. After a post is drafted or scheduled: - Your agent can revise a draft or an eligible scheduled post, or cancel an eligible scheduled post. - A post that was rejected or failed can be retried. X posts can't be retried. Your agent checks what happened on X and submits again with a fresh approval. - **Unpublishing takes down a live post.** It needs confirmation and only works on platforms that allow it (not Instagram or TikTok). - Publish, schedule, revise, and reply results can include `notices` suggesting more specific wording. They don't mean the post failed. - To post the same content to an account again soon after, your agent explains why with `repeat_reason` (`--repeat-reason`). A new retry key alone doesn't count as a reason. Some accounts have activity allowances. When enabled, the trial caps allow up to three posts per social account and ten across the responsible account's companies without verified paid access in a rolling 24 hours, with at least 15 minutes between posts on the same account. Paid companies aren't charged to or limited by the trial pool. Current attribution, content, repeat-content, hold, and provider-safety checks still apply to every company. A post whose delivery isn't confirmed yet still counts in the trial pool, so your agent checks its status before retrying. The pool uses each company's current verified billing status. Recent activity can leave the pool when a company becomes paid, then count again if it returns to trial before that activity ages out of the 24-hour window. A plan change doesn't erase post history. Scheduling through the provider is off while allowances are enabled because delivery can't recheck current restrictions. ### Answer the Social Inbox The social inbox collects comments, conversations, and reviews across your accounts. It has six views: needs attention, commented posts, post comments, conversations, messages, and reviews. If some sources are missing, the result says why. Search conversations by message text or contact identity. Each result shows up to three matching messages; a match count of zero means the contact's identity matched. Search returns at most 50 conversations per page and reports accounts it could not search. Reading leaves messages unread. Facebook Page message requests have a separate, bounded shortlist. If it is truncated, narrow to one account. Instagram cannot list a separate requests folder. Replying to a request accepts it and sends the reply immediately. - **Replies go out right away.** - Your agent can archive a conversation or return it to the active inbox. Reading messages leaves them unread. Marking a conversation read is an explicit action after you view it or ask, and can send a seen receipt. - Facebook and Instagram conversations show which app owns the thread when that information is available. Your agent can take, request, release, or pass control. Requesting waits for the current owner to agree. Instagram Login connections cannot take or request control; they wait for the owner to pass it or reconnect through Facebook Login. - On a DM or Google Business review reply, your agent can retry safely within 24 hours. Facebook review replies work without that step. Comment replies have no such guarantee. - Moderation needs confirmation. A retry can act twice. - Sent messages show whether the platform delivered or rejected them, with the platform's error when it failed. - Your agent can report on the inbox: message volume, response time, a day-and-hour heatmap, and where messages came from, by day or platform. - Your agent can start a DM with someone who hasn't messaged you yet, for example an X handle. If a conversation already exists, the message is added to it. ### Plan a Campaign A social campaign is a dated plan of posts across accounts. Creating one doesn't write or schedule anything. Your agent links prepared posts to its slots, and publishing is still a separate step. The campaign shows each slot's post and whether it changed since it was linked. ## Check Your Brand and Design Your agent can show you the company's saved brand documents. It can also copy colors, type, and components from a live site into the Library. See [Design](/guide/design). ## Take Payments Your agent can give the company a Stripe test account with `cofounder payments setup --method sandbox`. Pricing plans, refunds, and going live are in [Payments](/guide/payments). To see what your agent has been doing, go to [Watch It Run](/guide/watch-it-run). ## Commands ### Email and Phone | MCP | CLI | API | | --- | --- | --- | | `email_provision` | `cofounder email provision --local-part ` | `POST /cofounder-cli/v1/company/email` | | `email_deprovision` | `cofounder email deprovision [--resource ]` | `DELETE /cofounder-cli/v1/company/email` | | `email_messages_send` | `cofounder email send ` | `POST /cofounder-cli/v1/company/email/messages` | | `phone_provision` | `cofounder phone provision` | `POST /cofounder-cli/v1/company/phone` | | `phone_deprovision` | `cofounder phone deprovision` | `DELETE /cofounder-cli/v1/company/phone` | | `phone_messages_list` | `cofounder phone messages list` | `GET /cofounder-cli/v1/company/phone/messages` | | `phone_messages_conversations_list` | `cofounder phone messages conversations list --resource ` | `GET /cofounder-cli/v1/company/phone/messages/conversations` | | `phone_messages_conversations_messages_list` | `cofounder phone messages conversations messages list --resource --counterparty-number ` | `GET /cofounder-cli/v1/company/phone/messages/conversations/messages` | ### Social Accounts | MCP | CLI | API | | --- | --- | --- | | `social_accounts_connect` | `cofounder social accounts connect --platform ` | `POST /cofounder-cli/v1/company/social/connect/{platform}` | | `social_accounts` | `cofounder social accounts` | `GET /cofounder-cli/v1/company/social/accounts` | | `social_accounts_update` | `cofounder social accounts update --resource-id --action ` | `PATCH /cofounder-cli/v1/company/social/accounts/{resource_id}` | Use `social accounts connect --platform ` to get a stable connection link; pass `--resource-id ` to reconnect an existing account. `social accounts` lists connected accounts and their shared queue schedule. Use `social accounts update` with `--action default`, `destination`, or `disconnect` to update an account; the disconnect action accepts `--force` when a linked ads account blocks it. ### Social Posts | MCP | CLI | API | | --- | --- | --- | | `social_posts_list` | `cofounder social posts` | `GET /cofounder-cli/v1/company/social/posts` | | `social_posts_get` | `cofounder social posts get ` | `GET /cofounder-cli/v1/company/social/posts/{post_id}` | | `social_posts_save` | `cofounder social posts save --targets --content --idempotency-key ` | `POST /cofounder-cli/v1/company/social/posts/save` | | `social_posts_control` | `cofounder social posts control --action --revision-id --idempotency-key ` | `POST /cofounder-cli/v1/company/social/posts/control` | | `social_posts_review` (app only) | — | `POST /cofounder-cli/v1/company/social/posts/review` | | `social_public_posts_search` | `cofounder social public-posts search --platform --query --resource-id ` (Reddit: `--subreddit ` without `--query` reads the subreddit feed) | `GET /cofounder-cli/v1/company/social/search` | | `social_queue_set` | `cofounder social queue set --timezone --slots ` | `PUT /cofounder-cli/v1/company/social/queue` | `save` returns a post and revision for each target, along with readiness checks and platform options. Use `mode=draft` for a local draft, `mode=schedule` with `scheduled_at` and `timezone` for delivery at a specific time, `mode=queue` for the account's next slot, or `mode=approval` to request human review. When editing, include the current `post_id` and `revision_id`; omitting `mode` preserves the current delivery state. Publish, cancel, retry, or unpublish through `control`. Review approval requests in the app. Pass the post ID as the first positional argument to `control`: ```sh cofounder social posts control --action cancel --revision-id --idempotency-key ``` ### Social Inbox | MCP | CLI | API | | --- | --- | --- | | `social_inbox_list` | `cofounder social inbox list` | `GET /cofounder-cli/v1/company/social/inbox` | | `social_platform_posts_get` | `cofounder social platform-posts get --platform x --post-id --resource-id ` | `GET /cofounder-cli/v1/company/social/post` | | `social_inbox_reply` | `cofounder social inbox reply --item-id --item-type --resource-id --content ` | `POST /cofounder-cli/v1/company/social/inbox/reply` | | `social_inbox_update` | `cofounder social inbox update --operation status --resource-id --conversation-id --status archived` | `POST /cofounder-cli/v1/company/social/inbox/update` | | `social_inbox_analytics_show` | `cofounder social inbox analytics show --report volume --from-date ` | `GET /cofounder-cli/v1/company/social/inbox/analytics` | Inbox list accepts `--query ` to search stored conversations or `--requests` to list Facebook Page message requests; these can be scoped with `--resource-id` and cannot be combined. Inbox views are `needs_attention`, `commented_posts`, `post_comments`, `conversations`, `messages`, and `reviews`. `messages` also needs a `conversation_id`. Replying to a comment needs its `--post-id`. A new DM uses `social_inbox_reply` with `--item-type new_message` and exactly one of `--participant-username ` or `--participant-id `; omit `--item-id`. It returns the `item_id` for subsequent replies. A DM or review reply is safe to retry only with `--idempotency-key`, which is off by default because review support differs by platform: a key is refused where the platform doesn't support it. Moderation uses `social_inbox_update` with `--operation moderate` and `--confirmed`. ### Social Campaigns | MCP | CLI | API | | --- | --- | --- | | `social_campaigns_list` | `cofounder social campaigns list [--id ]` | `GET /cofounder-cli/v1/company/social/campaigns?id={id}` | | `social_campaigns_save` | `cofounder social campaigns save --name --starts-on --ends-on --placements ` | `POST /cofounder-cli/v1/company/social/campaigns/save` | `save` creates or updates a campaign and can pin prepared post IDs to the unique placements with matching account and scheduled local date. It does not publish or schedule posts. The list response is always a cursor page. Passing `--id` returns one detailed campaign in `data` with no next page. ### Social Automations | MCP | CLI | API | | --- | --- | --- | | `social_automations_list` | `cofounder social automations list --resource-id ` | `GET /cofounder-cli/v1/company/social/automations` | | `social_automations_save` | `cofounder social automations save --resource-id --name --keyword [--dm-message ] [--comment-reply ] --no-is-active` | `POST /cofounder-cli/v1/company/social/automations` | Automations send DMs on Instagram and Facebook, or public replies on supported platforms, when a comment matches one of their keywords. Saving with `isActive=true` authorizes those future messages; save with `isActive=false` to prepare without sending. Disconnecting an account pauses its active automations. Review them with the user after reconnecting and activate only the ones they want resumed. ### Brand and Design | MCP | CLI | API | | --- | --- | --- | | `company_brand_get` | `cofounder company brand get` | `GET /cofounder-cli/v1/company/brand` | | `design_extract` | `cofounder design extract ` | `POST /cofounder-cli/v1/design/extract` | | `design_extractions_get` | `cofounder design extractions get --job-id ` | `GET /cofounder-cli/v1/design/extractions/{job_id}` | | `design_extractions_cancel` | `cofounder design extractions cancel --job-id ` | `POST /cofounder-cli/v1/design/extractions/{job_id}/cancel` | --- ## Company Knowledge **URL:** https://docs.cofounder.co/guide/company-knowledge **Description:** Give your agent what it needs to know about the company by saving it to the Library, and manage Library files. Put what your agent needs to know about the company in the Library: the pitch, the market, customer notes, and decisions. Every agent on the company reads it. ## Add What You Already Know Save a document as a text file, or have your agent save a web page: | MCP | CLI | API | | --- | --- | --- | | `library_text_write` | `cofounder library text write --path --content ` | `POST /cofounder-cli/v1/company/library/files/text` | | `library_urls_ingest` | `cofounder library urls ingest --url ` | `POST /cofounder-cli/v1/company/library/ingest/url` | From a terminal, `cofounder library write ` copies a local file in. Start with the pitch, the audience, the constraints, and the competitors, since your agent uses them for every task after. ## The Library The Library holds files: specs, exports, decks, code, anything your agent might read or run later. Paths look like `marketing/notes/plan.md`, where the first folder is a department: `general`, `engineering`, `sales`, `marketing`, `design`, `research`, `support`, `ops`, `finance`, `legal`, or `my_agents`. These CLI commands read and write local files: | CLI | What it does | | --- | --- | | `cofounder library list [path]` | Browse folders and files in a department | | `cofounder library files get ` | Print a text file | | `cofounder library write ` | Create or replace a text file from a local file; `--idempotency-key` replays a lost response | | `cofounder library upload ` | Upload any file, including images and PDFs; `--overwrite` replaces the file at the exact path | | `cofounder library download --output ` | Save a Library file locally; `--force` overwrites | The same operations as tools: | MCP | CLI | API | | --- | --- | --- | | `library_files_list` | `cofounder library files list --query ` | `GET /cofounder-cli/v1/company/library/files` | | `library_files_get` | `cofounder library files get --file-id ` | `GET /cofounder-cli/v1/company/library/files/{file_id}/content` | | `library_search` | `cofounder library search --query ` | `GET /cofounder-cli/v1/company/library/files/search` | | `library_text_write` | `cofounder library text write --path --content ` | `POST /cofounder-cli/v1/company/library/files/text` | | `library_files_content_publish` | `cofounder library files content publish --file-id --base-revision-token --content ` | `PATCH /cofounder-cli/v1/company/library/files/{file_id}/content` | | `library_files_delete` | `cofounder library files delete --path ` | `POST /cofounder-cli/v1/company/library/files/delete` | | `library_urls_ingest` | `cofounder library urls ingest --url ` | `POST /cofounder-cli/v1/company/library/ingest/url` | - `files list --query` matches names and details. `search` looks inside files. - `urls ingest` saves a web page or document by URL. - `files delete` archives the file so it no longer shows up. To edit a file without overwriting someone else's change, take the version token that `files get` returns with the text and pass it to `files content publish` as `--base-revision-token`. If someone changed the file since, the edit is refused. Read it again, or add `--overwrite-stale-content` to replace it anyway. If `library write` or `library_text_write` times out, retry with the same `--idempotency-key` (`idempotency_key` on MCP). You get back the file the first write made instead of a second copy. ### Upload From an Agent For a host attachment or public HTTPS file URL, use `library_uploads_import`. Pass the host file object unchanged. For a standalone URL, supply `download_url`, `file_id: "url"`, and `file_name` with its extension when the URL has no filename. `mime_type` is optional. Keep temporary URLs private. | MCP | CLI | API | | --- | --- | --- | | `library_uploads_import` | `cofounder library uploads import --department --file ` | `POST /cofounder-cli/v1/company/library/uploads/import` | Imports accept files up to 25 MiB. Downloads must finish within 20 seconds; private networks and non-HTTPS URLs are blocked. A successful receipt means the file is saved and scanned. Don't repeat a successful import: it can save a sibling such as `name_2.ext`. This works without a shell when your host provides a download URL, including ChatGPT attachments. `cofounder library upload` uploads in one command. An agent calling tools uploads in three steps, for files up to 25 MiB: | MCP | CLI | API | | --- | --- | --- | | `library_uploads_start` | `cofounder library uploads start --department --filename --mime-type --size-bytes ` | `POST /cofounder-cli/v1/company/library/uploads` | | `library_uploads_finalize` | `cofounder library uploads finalize --ingest-id --parts ` | `POST /cofounder-cli/v1/company/library/uploads/{ingest_id}/finalize` | | `library_uploads_cancel` | `cofounder library uploads cancel --ingest-id ` | `DELETE /cofounder-cli/v1/company/library/uploads/{ingest_id}` | 1. `start` returns an upload URL. Keep it private, because anyone with it can write to it. 2. PUT the file's bytes to that URL. 3. Call `finalize` with the part number and ETag from each PUT. Nothing is saved until then. If the transfer fails, `cancel` frees the file name. If the path is taken, the file is saved as `name_2.ext` instead. Pass `overwrite` to `start` (`--overwrite` on `library upload`) to replace the existing file. This three-step flow requires local file and network access. If your host provides neither bytes nor a download URL, it cannot import a file from your machine. Never base64-encode file bytes into tool arguments. Agents on MCP can also read Library files as resources. See [MCP Beyond Tools](/advanced/mcp-apps-prompts-resources). ## Generate Images, SVGs, Video, and Speech Generated media is saved to the Library, and the CLI also downloads it to your current folder. | MCP | CLI | API | | --- | --- | --- | | `media_generate` | `cofounder media generate --kind image --prompt ""` | `POST /cofounder-cli/v1/media` | | `media_generate` | `cofounder media generate --kind svg --prompt ""` | `POST /cofounder-cli/v1/media` | | `media_generate` | `cofounder media generate --kind video --prompt ""` | `POST /cofounder-cli/v1/media` | | `media_generate` | `cofounder media generate --kind audio --prompt ""` | `POST /cofounder-cli/v1/media` | | `media_get` | `cofounder media get --job-id ` | `GET /cofounder-cli/v1/media/{job_id}` | ```sh cofounder media generate --kind image --prompt "flat illustration of a rocket, navy and cream" --size 1536x1024 -o hero cofounder media generate --kind image --prompt "landing hero, navy and cream" --to design/studies/hero.png cofounder media generate --kind svg --prompt "square app icon: a paper airplane, two-tone" -o icon cofounder media generate --kind video --prompt "slow pan across the product dashboard" --from ./screenshot.png --no-wait cofounder media generate --kind audio --prompt "Welcome to our weekly update." --voice Kore --instructions "Warm and calm." -o welcome.wav cofounder media generate --kind audio --prompt "Your order is ready." --to marketing/order-ready.wav cofounder media get --job-id ``` Generation costs money. When an estimate is available, the CLI prints an upper-bound cost when the job starts. The final charge is based on actual usage. - Images usually finish while the command waits. - SVG makes a vector file for logos, icons, and illustrations: `quiverai/arrow-2` by default (under a minute), or `--model quiverai/arrow-2-telos` for complex designs (several minutes). Describe the canvas shape in the prompt. SVG takes `--reference` but not `--from` or `--size`. - Video takes longer. Start it with `--no-wait`, then run `media get`, which downloads the files once they're done. - Speech makes a WAV file. Put exactly the words to speak in `--prompt`. `--voice` selects the speaker voice (Kore by default). Use `--instructions` for tone, accent, or pace; these directions are not spoken. The default audio model is `google/gemini-3.8-flash-tts`; use `--model` to choose another. Company brand settings do not change speech. - For visual media, `--reference` (repeatable) adds style or identity images. `--from` animates a still image. Local files you pass are uploaded to the Library first. Speech does not take `--reference`, `--from`, or `--size`. Each request makes one output. Without `--to`, it gets a generated name under your department (`general/` for CLI and API-key callers). With `--to`, it is saved at that exact path. The extension must match the kind (`.png`, `.jpg`, `.jpeg`, or `.webp` for images; `.svg` for SVG; `.mp4`, `.webm`, or `.mov` for video; `.wav` for speech), and an existing file at that path is rejected before anything is generated. `--to` skips the local download unless you also pass `-o`. If a request fails unclearly, the CLI prints a key. Retry with that `--idempotency-key` to get the original result instead of paying for another. On MCP, pass `kind: "image"`, `kind: "svg"`, `kind: "video"`, or `kind: "audio"` and your own `idempotency_key` to `media_generate`. For speech, put the words to speak in `prompt`, choose the speaker with `voice`, and put delivery directions in `instructions`. Omitted `voice` uses Kore, and speech is saved as WAV audio. A `to` destination for speech must end in `.wav`. --- ## Create a Company **URL:** https://docs.cofounder.co/guide/create-a-company **Description:** Create a company, invite the people who share it, and save the settings and business details your agent uses everywhere. A company holds everything your agent works with: knowledge, connections, resources, roadmap, and billing. One account can run several companies, each with its own context. ## Create One Tell your agent the company's name and it creates the company. The new company becomes your active company, so your agent's later work targets it. To switch, or to aim one request at another company, see [Multiple Companies](/advanced/multiple-companies). ```sh cofounder company create "Acme Analytics" ``` Your first company includes $5 of starter credit. Each additional company costs $5, credited to its starting balance. Your agent gives you a checkout page or payment link. After you pay, it retries the same request. If you haven't picked a name yet, your agent can create your first company without one. It starts with a placeholder name, and your agent asks you for the real name next. Until you name it, setup can't start and you can't create another company. Later companies always need a name. Creating a company from the CLI or API also returns a company API key, which your agent can use instead of signing in. The MCP doesn't return one. Company creation can include optional `business_facts` with `offer` and `intended_use`. The CLI accepts them as JSON: ```sh cofounder company create "Acme Salon Booking" --business-facts '{"offer":"Appointment booking software for independent salons","intended_use":"Use Cofounder to manage marketing and customer support for our own product."}' ``` MCP and API callers pass the same object as `business_facts`. You can also add or change these facts later in company settings. ## Invite Members Each person you invite gets their own Cofounder login, and their agents work on the same company. You choose each person's role, and you can change it or remove them later. Inviting needs an admin and is turned on per company; if it isn't on for yours, the invite is refused. Any company member can use `cofounder company members list` to see teammates and pending invitations. ## Hand the Company to a Person If an agent created the company on its own, it can give the company to a person by sending them a claim link. - The link goes by email to the owner email saved when the agent signed up. If none was saved, your agent needs an owner email to send it to. - The link works once. Your agent never sees it. It only learns whether the email went out and when the link expires. Sent doesn't mean claimed: the person still has to open it. - Sending a new link makes the previous one stop working. - Only companies created by agent signup can be claimed. For any other company, invite the person as a member. The agent starts as an admin. Claiming adds the person as another admin and keeps the agent's role. The person can then demote or remove the agent and revoke its API key. ## Change Settings Settings hold the company name, default timezone, postal address for customer email, and whether a staging deploy needs approval before going live. Only a company admin can change them. Business facts describe the offer and intended use for ad checks. ```sh cofounder company settings update --timezone America/Chicago cofounder company settings update --business-facts '{"offer":"Appointment booking software for independent salons","intended_use":"Use Cofounder to manage marketing and customer support for our own product."}' ``` An update changes only what you name. A full replace leaves `name`, `pinned_apps`, and `business_facts` unchanged when omitted. Other omitted settings are cleared or reset, including timezone, address, and live-deploy approval. Naming a company that still has a placeholder name confirms its name and sets its slug; after that, renaming keeps the company's slug, URLs, and id. Company email needs a confirmed name. Turning live-deploy approval on or off needs a signed-in admin, not an API key. `business_facts` accepts `offer` and `intended_use`, each up to 2,000 characters. Ad creation needs both. They are descriptions supplied by the caller, not verified records or permission to advertise. `settings get` returns the saved facts. Each covered ad is checked separately using its copy and audience; a blocked operation explains what needs correcting or review. If classification is unavailable, submit the facts again with `settings update` to retry. Set `--business-facts-null` to clear both facts. An existing prohibited-business or unsupported-use decision cannot be cleared by removing the description or by an incomplete classification. Provide complete, corrected information to reassess it, or contact Support. ## Save Your Details and Business Your details (legal name, contact email, mobile phone, home address) live on your account and apply to every company you run. A company is your sole proprietorship until you record a formed LLC or corporation as its business. The business record holds the legal name, entity type, and address. Cofounder uses it to register domains, set up texting, and fill email footers, so you enter it once. The legal name is the company name, so rename the company to change it. When your agent buys a domain, any registrant field it leaves out comes from your details. Tax ID numbers, SSNs, and dates of birth are never stored. Only a company admin can change the business. ```sh cofounder user details replace --first-name Ada --last-name Lovelace --phone +14155550123 cofounder company business replace --entity-type llc --formation-state DE ``` Saving either record rewrites the whole record. Deleting the business makes the company a sole proprietorship again. ## Read Your Brand Documents Your agent can find saved brand documents, voice guidance, and missing files. See [Check Your Brand and Design](/guide/communicate-and-sell#check-your-brand-and-design) for the rest of the brand work. ## Commands | MCP | CLI | API | | --- | --- | --- | | `company_create` | `cofounder company create` | `POST /cofounder-cli/v1/company` | | `company_members_list` | `cofounder company members list` | `GET /cofounder-cli/v1/company/members` | | `company_members_invite` | `cofounder company members invite` | `POST /cofounder-cli/v1/company/members/invite` | | `company_members_role_set` | `cofounder company members role set` | `PATCH /cofounder-cli/v1/company/members/{user_id}/role` | | `company_members_remove` | `cofounder company members remove` | `DELETE /cofounder-cli/v1/company/members/{user_id}` | | `company_claim_token_create` | `cofounder company claim-token create` | `POST /cofounder-cli/v1/company/claim-token` | | `company_claim_link_rotate` | `cofounder company claim-link rotate` | `POST /cofounder-cli/v1/company/claim-link/rotate` | | `company_claim_status_get` | `cofounder company claim-status get` | `GET /cofounder-cli/v1/company/claim-status` | | `company_claim` | `cofounder company claim --owner-email ` | `POST /cofounder-cli/v1/company/claim` | | `company_settings_get` | `cofounder company settings get` | `GET /cofounder-cli/v1/company/settings` | | `company_settings_update` | `cofounder company settings update` | `PATCH /cofounder-cli/v1/company/settings` | | `company_settings_replace` | `cofounder company settings replace` | `PUT /cofounder-cli/v1/company/settings` | | `user_details_get` | `cofounder user details get` | `GET /cofounder-cli/v1/users/me/details` | | `user_details_replace` | `cofounder user details replace` | `PUT /cofounder-cli/v1/users/me/details` | | `user_details_delete` | `cofounder user details delete` | `DELETE /cofounder-cli/v1/users/me/details` | | `company_business_get` | `cofounder company business get` | `GET /cofounder-cli/v1/company/business` | | `company_business_replace` | `cofounder company business replace` | `PUT /cofounder-cli/v1/company/business` | | `company_business_delete` | `cofounder company business delete` | `DELETE /cofounder-cli/v1/company/business` | | `company_brand_get` | `cofounder company brand get` | `GET /cofounder-cli/v1/company/brand` | Every claim command except `claim-status get` emails a new link. If the company has no saved owner email, creating a link returns `owner_email_required`. Send it with `company claim --owner-email `. --- ## Import Contacts and History **URL:** https://docs.cofounder.co/guide/crm-import **Description:** Bring selected contacts and conversations into CRM, preserve campaign data, and track progress in a pipeline. Import contacts and history from another app or export with your agent, keeping the people, campaign membership, and conversations linked. ## Start With Your Source Give your agent access to the selected export or conversations and say what to bring into the company CRM. For example: > Import the contacts and X conversations from this outreach export. Keep > the campaign labels and original messages. Check existing records, use our > outreach pipeline, and show me the matches, stages, and conflicts before saving. Your agent uses your existing source connection or file. The importer accepts JSON; your agent prepares it from the selected source. A spreadsheet or CSV needs mapping into that JSON first. ## Choose Where Each Part Goes | Source data | CRM destination | | --- | --- | | Person and X handle | Contact and its identity | | Campaign label | Custom field, preserving the saved value | | Outreach progress | Opportunity in the chosen pipeline | | Messages and past meetings | Linked activity with original body, date, and direction | | Follow-up still to do | Separate commitment with an owner and due date | A campaign identifies the effort. A pipeline tracks progress. Keep both. For example, someone can belong to Product feedback sprint and be Contacted in the Outreach pipeline. An invitation alone does not establish a reply or booked meeting. [Pipelines](/guide/crm#your-pipeline) can track people without creating a company account or inventing a deal amount. Your agent checks the company's existing fields, pipelines, people, and opportunities first. Existing entries, including closed ones, need review before adding another for the same effort. Missing field or pipeline definitions must be set up before importing their values. A contact with several campaigns may need campaign membership on each opportunity; keep existing values while agreeing that mapping. ## Preview and Save Your agent previews the import and shows new, updated, unchanged, and blocked items, with the campaign mapping and proposed stages. Names alone do not merge people. Resolve ambiguous matches before saving. On MCP, use `crm_imports_schema_get` and `crm_imports_create`; the `cofounder-crm-import` skill includes complete JSON examples. For CLI use: ```sh cofounder crm imports schema get cofounder crm imports create --file import.json cofounder crm imports get --job-id cofounder crm imports cancel --job-id ``` Use `--file -` for redirected JSON input. Group dependent records into batches of up to 25 items, within 100 batches and 2 MiB per import. References between new records stay within their batch. You can link later requests by source ID instead of copying CRM IDs. Keep the same `source.system` and `source.account_id`, then use `{"source_ref":{"kind":"account","external_id":"company-1"}}` in a contact's `account_id`. For a deal's primary contact, use `kind: "contact"`. These bindings are shared across your company. Save companies first, then contacts, then deals; each prerequisite must be committed before the next request uses it. `crm_records_save` also accepts `source` and a change's `external_id` for people, accounts, opportunities and custom fields. It uses the same source IDs and replay rules. Other save changes can link those records without creating new bindings. Declare `@refs` earlier in one batch. If a source reference is unresolved, follow its fix hint, save the prerequisite, and resend the blocked batch. Submit directly and use server fix hints for corrections. Local validation and `dry_run` are optional for large or uncertain payloads. Set `dry_run` to `true` in the JSON for a preview. To save a preview, set it to `false` and use a new `idempotency_key`. Keep original source account and item IDs in both files. Repeating identical JSON with its original key retrieves the same import. For corrected content, use a new key and retain the source IDs. To stop a running import, use `crm_imports_cancel`. It stops after the batch being saved; batches already saved stay. Submit the same records with a new `idempotency_key` to finish, and content already imported is left unchanged. ## Check What Was Saved Each batch saves all its changes or none. Other batches can succeed when one is blocked, so a completed import can still need corrections. Your agent checks the batch results, then reads back contacts, campaign values, pipeline entries, and representative messages. It reports saved and unresolved items separately and can open Contacts for you to review the pipeline. Save and import share per-item error codes and `fix_hints`. Each hint explains the reason, required correction, candidates to inspect, and operation to resend. Its `field_path` is relative to the change (`$` means the whole change). `change_template` is an addressing skeleton, not a complete corrected payload: keep the original fields and make the requested repairs. Do not choose a candidate identity without evidence. A blocked batch saves nothing, including items without their own error. Resend that entire batch after correction, keeping the same source and returned `external_id` values with a new `idempotency_key`. Unchanged source content preserves later CRM edits. Corrected source content updates the fields supplied, including an activity's full links and metadata. Import only fields the source owns. History-only imports should leave current pipeline progress alone. Messages already captured by a connected channel need their existing CRM record; different source IDs do not automatically identify the same message. Source labels describe origin, not provider verification. Importing history sends no messages and grants no consent. --- ## CRM **URL:** https://docs.cofounder.co/guide/crm **Description:** Keep contacts, campaign history, and pipeline progress together, and track conversations and follow-ups. Every company gets a built-in CRM that your agent keeps up to date: the companies you sell to, the people there, your deals, and a log of every call, email, meeting, and note. Your agent also tracks follow-ups, finds new prospects, and books meetings. ## What's in Your CRM - Accounts are companies. - Contacts are people. - Opportunities track a deal or another relationship process in a pipeline. - Activity is the log of what already happened: notes, emails, texts, social messages, calls, meetings, and finished tasks. - Commitments are follow-ups still to do. - Relationships record who knows whom and where people work. Ask your agent for the overall picture, or a question like "what's going on with Acme?". It finds the account and reads it with its linked contacts, deals, follow-ups, and activity. On MCP, your agent can open the CRM in the company app with `company_app_open` and `view=contacts`. To read many contacts at once, such as when building an outreach list, your agent pages through `crm_contacts_query` with `include_person` (`cofounder crm contacts query --include-person`). Each call returns up to 100 contacts with their phones, email addresses, LinkedIn, and enrichment source, and their summary and notes shortened. The older list tools for accounts, contacts, opportunities, and activity are replaced. If your MCP connection still shows them, refresh it. ## Your Pipeline Deals move through stages in a pipeline. Each deal's status is `open`, `won`, or `lost`, stored separately from its stage. For counts and totals, your agent asks the CRM directly instead of adding up deals by hand, with amounts grouped by currency. A deal's notes hold up to 100,000 characters. The Sales pipeline is the default, and every deal in it belongs to an account. Add custom pipelines for relationships beyond sales, like advisors, investors, and outreach. A deal in a custom pipeline can link a person with no account, and one person can be in several deals. In Sales, entering stage `won` or `lost` requires the matching status in the same save. Status `won` is only valid at stage `won`. Status `lost` is also allowed at earlier stages, for example to disqualify a lead. Neither field automatically changes the other. Custom pipelines do not have these Sales outcome restrictions. To close a Sales deal as won, set both fields together: ```sh cofounder crm records save --changes '[{"kind":"opportunity","id":"","stage":"won","status":"won"}]' ``` Keep campaign membership alongside pipeline progress. For example, `Outreach Campaign: product_feedback_sprint` says which effort a person belongs to; `Contacted` says how far that relationship has progressed. Adding a pipeline entry keeps the campaign field and the person's conversation history intact. Reuse a pipeline when several campaigns follow the same stages. A simple outreach process might be To contact → Contacted → Replied → Meeting booked. Your agent checks the recorded conversations before choosing a stage. Follow-ups with a due date are separate commitments. - A pipeline's key can't change. Stage labels, descriptions, and order can. - You can't remove a stage that still has deals, so move them first. - Archiving a pipeline keeps its deals readable but stops new ones joining. - The web app's Sales editors only edit Sales. Use the CLI for custom stages. - Before deleting the last contact on a deal with no account, reassign or delete that deal. Custom fields add your own data to accounts, contacts, and deals. Types are text, number, true/false, date, select, and multi-select. A field's key can't change. To change its type, clear every value first, and keep any option that records still use. Archived fields stay readable but can't be set. `cofounder crm schema describe` shows your pipelines and fields, including archived ones. Create them with `cofounder crm pipelines create` and `cofounder crm fields create`, and change them with `cofounder crm pipelines update` and `cofounder crm fields update`: ```sh cofounder crm pipelines create --key advisors --label Advisors \ --stages '[{"key":"met","label":"Met"},{"key":"joined","label":"Joined"}]' cofounder crm fields create --object-type contact --key interest --label Interest \ --value-type select --option advice --option investment \ --option-labels '{"advice":"Advice and feedback","investment":"Potential investor"}' ``` Select options keep stable keys for saved values, filters, and imports. Use `--option-labels` to give them readable names. Without a label, `outreach_sprint` displays as "Outreach Sprint". Updating a label doesn't change stored values. Omit `--option-labels` on update to keep labels for the remaining options, or pass `'{}'` to return to the default names. ## Keeping Records Clean Your agent saves changes in batches of up to 25, all or nothing. It won't overwrite an edit someone made since it last read the record. People are matched by exact email, phone, LinkedIn profile, or other account id. Names and company domains never merge people. A phone number shared by several people matches all of them, and lookups report it as ambiguous instead of picking one. Identities your agent adds are recorded as its claim. Only trusted connected services mark one as verified. Your agent can also tie an account to a known company profile. A new person or account with the same name as an existing one is flagged as a possible duplicate. Records are never merged automatically. **Merging and deleting are permanent, with no undo.** Merge only records you've decided are the same. - Merging contacts moves activity, deals, follow-ups, and relationships to the contact you keep and deletes the other. Do-not-contact stays set if either had it. The kept contact's field values win, and its empty fields are filled from the other. - Merging accounts moves contacts, deals, activity, relationships, and follow-ups to the account you keep. The removed account's domain is added to the kept account's website URLs, and the kept account's filled-in fields win. - Deleting a person or account removes their relationships. A follow-up that loses its last linked record is canceled, and its history stays. ## Follow-Ups A commitment is work still to do, linked to at least one contact, account, or deal. It's `open`, `waiting`, `done`, or `canceled`. It belongs to whoever created it unless it's assigned to another company member. Activity only records the past, so reminders and follow-ups are commitments with a due date. When several agents or people share the work, an agent claims a follow-up before starting it, so two don't do the same thing. A claim lasts five minutes by default, and up to 15. It doesn't send anything or approve outreach. ## Relationships Your agent records how people know each other and where they work. Direction matters: Alice `introduced_by` Bob means Bob introduced Alice. `knows` connects two people, and `works_at` connects a person to an account. Being at the same meeting doesn't count. Each relationship is backed by evidence: a web link, an activity, a Library file, or a research report, with when it was observed. A source label says where a claim came from. It doesn't verify it. Archiving a relationship needs a managed CRM. ## Import Contacts and History Ask your agent to [import selected contacts and history](/guide/crm-import). It checks existing records, maps campaign fields and pipeline stages, and previews changes before saving. Keep the campaign label when adding a pipeline; there is no need to replace your existing contacts or reimport their messages. ## Log Conversations Use an `activity` change in `crm_records_save` to save a conversation that happened outside Cofounder against contacts, accounts, or deals. It records history; it does not send a message. Use `sms` for texts and `message` for social DMs or chats, including conversations imported from Beeper. Include the original `occurred_at` time with its timezone and the `direction` (`inbound` or `outbound`). Put the message text in `body` and the CRM records in `links`. Use `metadata_json` for details such as the original platform. Give each imported message a stable `source_ref`, namespaced by app and account, such as `beeper:my-account:chat-123:message-456`. Reusing that value updates the existing manual activity and replaces its links. Without it, each call creates a new activity. ```sh cofounder crm records save --changes '[{"kind":"activity","activity_type":"note","title":"Customer call","body":"Discussed rollout","links":[{"object_type":"contact","object_id":""}]}]' ``` Use the result's activity ID with `crm_activities_get` to read the saved activity and its linked records. ## Read Email Threads New email activity links to its email thread, and every company member can read that thread with its messages and attachments. Older activity and other channels have no thread. This doesn't open the rest of the company's mailboxes. ## Fill In Details Enriching looks up company or person data from a paid source and fills in what it finds. **Lookups can cost money, and you can't set a spending cap.** A lookup is billed whenever it runs, even when it finds nothing or changes nothing. - Saving an account, even with a domain, doesn't start a lookup from MCP, the CLI, or the API. Your agent asks for one explicitly. Saves from the older web app still enrich automatically. - A lookup takes a minute or more. Retrying the same lookup doesn't charge twice. - Complete records are skipped unless your agent forces a refresh. - Values someone typed in are kept, even on a forced refresh. Editing a field, even to the same value, protects it from future lookups. - Enrichment never adds marketing consent or verifies an identity. If the email it finds conflicts with the contact's, nothing is applied. ## Capture Site Forms Add a waitlist or contact form to a marketing or product site, then connect it: ```bash cofounder company forms setup --app-binding-id ``` Setup creates a key that only that site can use, and adds `COFOUNDER_FORMS_API_KEY` and `COFOUNDER_FORMS_SUBMIT_URL` to its Production environment. The form posts from the site's server, so the key never reaches the browser. Each submission becomes a contact, matched by email and never duplicated, with a note. Marketing consent is saved only when the visitor ticks the unchecked opt-in box. For local development, run `cofounder company api-keys create --scope forms:submit --app-binding-id ` (MCP: `company_api_keys_create` with the same scope and app) and put the value in `.env.local`. ## Sync From Your Calendar Calendar sync creates accounts, contacts, and activity from the meetings on a connected calendar. Your agent can preview what it would create without saving anything. - It looks back 30 days by default. - Attendees on personal email domains are skipped unless you include them. - Only basic event details are read unless you turn on full visibility. - You can turn it off for all calendars or just some. ## Book Meetings Your agent books calls with your contacts on a company member's Google Calendar. The host must have connected Google Calendar. Your agent sees free times only, never event details, in a window of up to 31 days. Your agent holds the times it offers so nobody else books them. A hold doesn't touch anyone's calendar and expires after 15 minutes by default, at most an hour. It's refused unless your agent has already reached out to that contact. Confirming **emails a real invite** to the contact, with a Google Meet link. Contacts marked do-not-contact are refused. Canceling deletes the event, and the contact gets a cancellation email. [Meetings](/guide/meetings) covers each step. ## Find New Prospects Your agent finds companies or people that match your targeting, like US dental clinics, then imports the ones you want: 1. Preview checks the targeting and estimates the cost, without spending anything. 2. The search **spends up to the limit you set** and runs in the background. 3. You pick the candidates to import as accounts or contacts. Nothing is searched again. People without a LinkedIn profile come in as unverified contacts. Prospect searches are research jobs. See [Research](/guide/research). ## Search for People People search **spends money** and answers in one reply, usually within 5 to 20 seconds. It's refused before it runs if the estimate is above your limit. Filtering by company stage adds one company lookup per employer. Nobody is dropped. Every person gets a `pass`, `fail`, or `unknown` for each filter. `unknown` means the data was missing, never a pass. Judging fit is up to you. Your agent saves the people you want as contacts. See [People](/guide/people). ## Coordinate Outreach Across Agents When several agents or people reach out for the same company, an agent claims a contact before writing to them, so two senders don't contact the same person at once. Some companies don't have this yet. Then claims are refused, and ordinary sends follow the company's usual rules. - A claim lasts from 30 seconds to 15 minutes. It belongs to the signed-in user and API key that made it. A signed-in session and an API key, or two API keys, count as different holders. - Admins can end someone else's claim. That's logged. - A claim follows a contact's known emails and phone numbers across aliases and duplicate records. A shared phone number covers all its contacts. Names and domains don't prove two records are the same person, so a claim can't cover addresses nobody knows about. ### What Gets Blocked Company mailbox sends reserve the recipient before sending, even with no claim. While a contact is claimed, only the holder can send to them. Campaigns reserve their whole audience together and are refused for anyone under a claim. Before any send, Cofounder checks do-not-contact, email suppression, and current marketing consent for that exact address. Duplicates with conflicting consent block the batch. - Outreach, including company mailbox sends and campaign tests, is blocked by any suppression. - Transactional app email can still go to addresses that opted out or complained about a bulk campaign or test send. Other complaints, undeliverable addresses, and do-not-contact still block it. **A send with an unclear result blocks any further send to that person.** Your agent checks what happened before reaching out again. You can't override this, and turning coordination off doesn't clear it. This covers the company mailbox and campaigns. It doesn't cover your app's transactional email, sign-in email, personal mailboxes, social DMs, or calls, and it doesn't add quiet hours or approval rules. ## Commands Pass several statuses in one flag: `cofounder crm commitments query --status open,waiting`. Use the same comma-separated syntax for `--group-by` and `--metric`. Each flag can appear once. MCP tools continue to take JSON arrays for these fields. | MCP | CLI | API | | --- | --- | --- | | `crm_summary_get` | `cofounder crm summary get` | `GET /cofounder-cli/v1/crm/summary` | | `crm_search` | `cofounder crm search --query ` | `GET /cofounder-cli/v1/crm/search` | | `crm_accounts_query` | `cofounder crm accounts query --filters ` | `POST /cofounder-cli/v1/crm/accounts/query` | | `crm_accounts_get` | `cofounder crm accounts get --account-id ` | `GET /cofounder-cli/v1/crm/accounts/{account_id}` | | `crm_accounts_merge` | `cofounder crm accounts merge --keep-account-id --merge-account-id ` | `POST /cofounder-cli/v1/crm/accounts/merge` | | `crm_contacts_query` | `cofounder crm contacts query --filters ` | `POST /cofounder-cli/v1/crm/contacts/query` | | `crm_contacts_get` | `cofounder crm contacts get --contact-id ` | `GET /cofounder-cli/v1/crm/contacts/{contact_id}` | | `crm_contacts_merge` | `cofounder crm contacts merge --merge-contact-id ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/merge` | | `crm_opportunities_query` | `cofounder crm opportunities query --filters ` | `POST /cofounder-cli/v1/crm/opportunities/query` | | `crm_opportunities_aggregate` | `cofounder crm opportunities aggregate --group-by --metric ` | `POST /cofounder-cli/v1/crm/opportunities/aggregate` | | `crm_opportunities_get` | `cofounder crm opportunities get --opportunity-id ` | `GET /cofounder-cli/v1/crm/opportunities/{opportunity_id}` | | `crm_records_save` | `cofounder crm records save --changes ` | `POST /cofounder-cli/v1/crm/records/write` | | `crm_records_delete` | `cofounder crm records delete --kind person --id ` | `POST /cofounder-cli/v1/crm/records/delete` | | `crm_identities_resolve` | `cofounder crm identities resolve --identities ` | `POST /cofounder-cli/v1/crm/identities/resolve` | | `crm_contacts_identities_get` | `cofounder crm contacts identities get --contact-id ` | `GET /cofounder-cli/v1/crm/contacts/{contact_id}/identities` | | `crm_company_profiles_search` | `cofounder crm company-profiles search --query ` | `GET /cofounder-cli/v1/crm/company-profiles` | | `crm_commitments_get` | `cofounder crm commitments get --commitment-id ` | `GET /cofounder-cli/v1/crm/commitments/{commitment_id}` | | `crm_commitments_query` | `cofounder crm commitments query --status open --contact-id ` | `GET /cofounder-cli/v1/crm/commitments` | | `crm_commitments_claim` | `cofounder crm commitments claim --commitment-id --expected-revision --idempotency-key ` | `POST /cofounder-cli/v1/crm/commitments/{commitment_id}/claim` | | `crm_commitments_renew` | `cofounder crm commitments renew --commitment-id --expected-revision --lease-token ` | `POST /cofounder-cli/v1/crm/commitments/{commitment_id}/renew` | | `crm_commitments_release` | `cofounder crm commitments release --commitment-id --expected-revision --lease-token ` | `POST /cofounder-cli/v1/crm/commitments/{commitment_id}/release` | | `crm_relationships_query` | `cofounder crm relationships query --source-contact-id ` | `GET /cofounder-cli/v1/crm/relationships` | | `crm_relationships_get` | `cofounder crm relationships get --relationship-id ` | `GET /cofounder-cli/v1/crm/relationships/{relationship_id}` | | `crm_accounts_enrich` | `cofounder crm accounts enrich --account-id --request-id ` | `POST /cofounder-cli/v1/crm/accounts/{account_id}/enrich` | | `crm_contacts_enrich` | `cofounder crm contacts enrich --contact-id --request-id ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/enrich` | | `crm_enrichments_get` | `cofounder crm enrichments get --job-id ` | `GET /cofounder-cli/v1/crm/enrichments/{job_id}` | | `crm_activities_get` | `cofounder crm activities get --activity-id ` | `GET /cofounder-cli/v1/crm/activity/{activity_id}` | | `crm_activities_attachments_get` | `cofounder crm activities attachments get --activity-id --attachment-id ` | `GET /cofounder-cli/v1/crm/activity/{activity_id}/attachments/{attachment_id}` | | `crm_activities_query` | `cofounder crm activities query --filters ` | `POST /cofounder-cli/v1/crm/activity/query` | | `crm_calendar_sync_settings_get` | `cofounder crm calendar-sync settings get` | `GET /cofounder-cli/v1/crm/calendar-sync/settings` | | `crm_calendar_sync_preview` | `cofounder crm calendar-sync preview --calendar-id ` | `POST /cofounder-cli/v1/crm/calendar-sync/preview` | | `crm_calendar_sync_enable` | `cofounder crm calendar-sync enable --calendar-id ` | `POST /cofounder-cli/v1/crm/calendar-sync/enable` | | `crm_calendar_sync_disable` | `cofounder crm calendar-sync disable` | `POST /cofounder-cli/v1/crm/calendar-sync/disable` | | `crm_calendar_sync_retry` | `cofounder crm calendar-sync retry` | `POST /cofounder-cli/v1/crm/calendar-sync/retry` | | `crm_prospects_preview` | `cofounder crm prospects preview --entity-type company --targeting --max-cost-usd ` | `POST /cofounder-cli/v1/crm/prospects/preview` | | `crm_prospects_find` | `cofounder crm prospects find --entity-type company --targeting --max-cost-usd ` | `POST /cofounder-cli/v1/crm/prospects/find` | | `crm_prospects_import` | `cofounder crm prospects import --job-id --row-id ` | `POST /cofounder-cli/v1/crm/prospects/import` | | `crm_prospects_imports_get` | `cofounder crm prospects imports get --job-id ` | `GET /cofounder-cli/v1/crm/prospects/imports/{job_id}` | | `crm_prospects_imports_cancel` | `cofounder crm prospects imports cancel --job-id ` | `POST /cofounder-cli/v1/crm/prospects/imports/{job_id}/cancel` | | `crm_outreach_claim` | `cofounder crm outreach claim --contact-id --request-id ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/outreach/claim` | | `crm_outreach_renew` | `cofounder crm outreach renew --contact-id --token-file --expected-revision ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/outreach/renew` | | `crm_outreach_release` | `cofounder crm outreach release --contact-id --token-file --expected-revision ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/outreach/release` | | `crm_outreach_force_release` | `cofounder crm outreach force-release --contact-id --lease-id --expected-revision ` | `POST /cofounder-cli/v1/crm/contacts/{contact_id}/outreach/force-release` | Meetings and people search, covered in their own guides: | MCP | CLI | API | | --- | --- | --- | | `meetings_availability_query` | `cofounder meetings availability query --start