Skip to content

Install your app on your phone from chat

You can go from an idea in a chat to a native app on your phone without a computer. The assistant writes the app in the Capgo cloud terminal, Capgo Cloud Build compiles and signs it, and you install it from a link on your iPhone or Android phone.

You do not need a laptop, a Mac, a cable, TestFlight or Expo Go. You install your real native app, with its own name, icon and plugins.

ItemWhat you need
Chat appClaude, ChatGPT or any client with remote MCP, connected to the hosted Capgo MCP at https://api.capgo.app/mcp
Capgo accountIt uses the build minutes and the cloud terminal minutes of your plan
GitHubA repository for the code, and a fine-grained personal access token with write access to it
iOS onlyAn Apple Developer account and an App Store Connect API key with the Admin role: the .p8 file, the key ID and the issuer ID

You do this once in the signed-in Capgo console (MFA supported). A phone browser is enough. Never paste a token or a key into the chat or MCP arguments.

Both Build signing credentials and Code sync are open cards on your app’s Builds > Credentials sub-tab:

  • Build signing credentials: https://console.capgo.app/app/<app_id>/builds/credentials#signing-credentials
  • Code sync (GitHub): https://console.capgo.app/app/<app_id>/builds/credentials#code-sync
  1. Save your GitHub repository and token under Builds > Credentials (#code-sync). Enter the repository and a fine-grained personal access token with Contents: Read and write on it (add Administration if you want Capgo to create the repository). Capgo stores the token AES-256-GCM encrypted and passes it only to root git in the sandbox—never visible to chat, MCP, or unprivileged sandbox commands (uid 1000).

  2. iOS: save your App Store Connect API key under Builds > Credentials (#signing-credentials). Create a team API key in App Store Connect under Users and Access > Integrations > App Store Connect API (it works in a phone browser), download the .p8 file, and note the key ID and the issuer ID. Give the key the Admin role: capgo_setup_ios_signing creates a distribution certificate, and Apple refuses that to narrower roles. The iOS builds guide shows the same screens, but its App Manager role is for uploading builds with certificates you already have.

  3. Android: nothing to upload. Every Android build needs a keystore, debug builds included. The assistant creates an RSA 2048 PKCS#12 keystore server-side in the chat flow.

Ask for the app in plain words, for example:

I only have my iPhone. Build me a habit tracker app with Capacitor and install it on my phone.

  1. Build in the cloud terminal. The assistant starts a session with capgo_start_terminal, creates the Capacitor app, and edits it with capgo_terminal_run_command, capgo_terminal_write_file, and capgo_terminal_read_file.

  2. Explicitly push and pull code with GitHub. Code sync uses explicit push and pull actions (capgo_get_code_sync checks whether a repository is configured and returns its setup_url). The assistant calls capgo_terminal_git_push after meaningful changes and before ending the session, because ending a session deletes all unsaved workspace files. In a new session, it calls capgo_terminal_git_pull (then npm install) to restore the pushed code.

  3. Register your iPhone and set up signing.

    • iOS Ad Hoc: First, the assistant calls capgo_get_ios_device_registration_link and sends you a 7-day registration link (up to 100 iPhones per app). Open it in Safari on your iPhone and install the small registration profile in Settings. Next, the assistant runs capgo_setup_ios_signing (distribution: "ad_hoc") and verifies failed_devices is empty before building. When you are ready for TestFlight or the App Store later, run capgo_setup_ios_signing with distribution: "app_store".
    • Android: The assistant calls capgo_setup_android_signing. Capgo creates an RSA 2048 PKCS#12 keystore server-side (valid 30 years; existing keystores are kept untouched with created: false) and returns the certificate SHA-256 fingerprint (useful for Firebase, Google Sign-In, or App Links).
  4. Build. The assistant packages the project in the terminal, requests a Capgo Cloud Build with capgo_request_build (which uses stored credentials automatically), uploads the archive to capgo_get_build_upload_url, starts it with capgo_start_build, and follows capgo_get_build_status and capgo_get_build_logs:

    • iOS Ad Hoc: build_options: {"iosDistribution":"ad_hoc","outputUploadEnabled":true}
    • Android APK: build_options: {"outputUploadEnabled":true} (pass playstore_upload: false if Play credentials are stored and you only want an APK)
    • Optional: pass outputRetentionSeconds up to 604800 (7 days); the default retention is 3600 seconds (1 hour).
  5. Install. Once the build succeeds, the assistant calls capgo_get_build_install_link and sends you the signed install link:

    • iPhone: open in Safari and tap Install for a one-tap over-the-air (itms-services) Ad Hoc install.
    • Android: open the link, tap Download, allow your browser to install unknown apps once, and open the APK.
  6. Keep changing it. Ask for changes in the chat. For web code changes, the assistant ships a Capgo live update to the installed app, with no rebuild and no reinstall. A new native build is needed only when the native side changes, for example a new plugin.

ToolWhat it does
capgo_get_code_syncChecks if GitHub Code sync is configured and returns setup_url (/builds/credentials#code-sync).
capgo_start_terminalStarts a cloud terminal session for the app.
capgo_terminal_run_command, capgo_terminal_write_file, capgo_terminal_read_fileCreate and edit the app in the sandbox.
capgo_terminal_git_pushExplicitly commits and pushes the sandbox workspace to your saved GitHub repository.
capgo_terminal_git_pullExplicitly restores pushed commits from your repository in a new session (or merges newer remote commits).
capgo_get_ios_device_registration_linkReturns a 7-day link (up to 100 iPhones per app) that registers an iPhone from Safari.
capgo_list_ios_devices, capgo_remove_ios_deviceInspect enrolled iPhones (including status and errors) or remove a device by UDID.
capgo_setup_ios_signingCreates the iOS distribution certificate and ad_hoc or app_store provisioning profiles from your saved Admin App Store Connect key; reports failed_devices.
capgo_setup_android_signingCreates an RSA 2048 PKCS#12 Android keystore server-side (keeps an existing keystore untouched) and returns its SHA-256 fingerprint.
capgo_request_build, capgo_get_build_upload_url, capgo_start_build, capgo_get_build_status, capgo_get_build_logsRequest, upload, start, and follow the native cloud build.
capgo_get_build_install_linkReturns a signed install link (itms-services page on iOS, APK download page on Android) valid for the build’s output retention.
capgo_stop_terminalEnds the terminal session and deletes unsaved workspace files.
  • Each registration link works for 7 days and up to 100 iPhones per app (matching Apple’s yearly limit of 100 iPhones per developer account).
  • On iOS 16 and later, the phone asks once to turn on Developer Mode in Settings > Privacy & Security. You do it on the phone. See how to enable Developer Mode.
  • Always check failed_devices after capgo_setup_ios_signing (ad_hoc). An iPhone registered after a build is not in that build’s profile: rerun capgo_setup_ios_signing (ad_hoc) and build again to include newly registered devices.
  • Ad Hoc mode (iosDistribution: "ad_hoc") is for direct installs on registered devices. To ship to TestFlight and the App Store, run capgo_setup_ios_signing with distribution: "app_store" and see iOS builds.
  • Every Android build needs a keystore, debug builds included. capgo_setup_android_signing generates an RSA 2048 PKCS#12 keystore server-side (kept untouched on re-run) and returns its SHA-256 fingerprint for Firebase, Google Sign-In, or App Links. See Android builds for other signing options.
  • The phone asks once to allow your browser to install unknown apps.
  • There is no device registration and no device limit.
  • Secrets are entered only in the signed-in Capgo console (MFA supported) under Builds > Credentials, never in chat or MCP arguments.
  • The GitHub token is stored AES-256-GCM encrypted and passed only to root git in the sandbox (with Git metadata kept outside the workspace), so it is never visible to chat, MCP, or unprivileged sandbox commands (uid 1000).
  • Capgo creates the iOS certificate and profiles and the Android keystore on the server and stores them encrypted—you never handle private keys on a computer or in chat.
  • Permission checks, rate limits and audit logs are the same as for the public API.