Install your app on your phone from chat
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
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.
What you need
Section titled “What you need”| Item | What you need |
|---|---|
| Chat app | Claude, ChatGPT or any client with remote MCP, connected to the hosted Capgo MCP at https://api.capgo.app/mcp |
| Capgo account | It uses the build minutes and the cloud terminal minutes of your plan |
| GitHub | A repository for the code, and a fine-grained personal access token with write access to it |
| iOS only | An Apple Developer account and an App Store Connect API key with the Admin role: the .p8 file, the key ID and the issuer ID |
One-time setup
Section titled “One-time setup”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
-
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 rootgitin the sandbox—never visible to chat, MCP, or unprivileged sandbox commands (uid 1000). -
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.p8file, and note the key ID and the issuer ID. Give the key the Admin role:capgo_setup_ios_signingcreates 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. -
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.
The chat flow
Section titled “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.
-
Build in the cloud terminal. The assistant starts a session with
capgo_start_terminal, creates the Capacitor app, and edits it withcapgo_terminal_run_command,capgo_terminal_write_file, andcapgo_terminal_read_file. -
Explicitly push and pull code with GitHub. Code sync uses explicit push and pull actions (
capgo_get_code_syncchecks whether a repository is configured and returns itssetup_url). The assistant callscapgo_terminal_git_pushafter meaningful changes and before ending the session, because ending a session deletes all unsaved workspace files. In a new session, it callscapgo_terminal_git_pull(thennpm install) to restore the pushed code. -
Register your iPhone and set up signing.
- iOS Ad Hoc: First, the assistant calls
capgo_get_ios_device_registration_linkand 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 runscapgo_setup_ios_signing(distribution: "ad_hoc") and verifiesfailed_devicesis empty before building. When you are ready for TestFlight or the App Store later, runcapgo_setup_ios_signingwithdistribution: "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 withcreated: false) and returns the certificate SHA-256 fingerprint (useful for Firebase, Google Sign-In, or App Links).
- iOS Ad Hoc: First, the assistant calls
-
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 tocapgo_get_build_upload_url, starts it withcapgo_start_build, and followscapgo_get_build_statusandcapgo_get_build_logs:- iOS Ad Hoc:
build_options: {"iosDistribution":"ad_hoc","outputUploadEnabled":true} - Android APK:
build_options: {"outputUploadEnabled":true}(passplaystore_upload: falseif Play credentials are stored and you only want an APK) - Optional: pass
outputRetentionSecondsup to604800(7 days); the default retention is3600seconds (1 hour).
- iOS Ad Hoc:
-
Install. Once the build succeeds, the assistant calls
capgo_get_build_install_linkand 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.
- iPhone: open in Safari and tap Install for a one-tap over-the-air (
-
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.
MCP tools
Section titled “MCP tools”| Tool | What it does |
|---|---|
capgo_get_code_sync | Checks if GitHub Code sync is configured and returns setup_url (/builds/credentials#code-sync). |
capgo_start_terminal | Starts a cloud terminal session for the app. |
capgo_terminal_run_command, capgo_terminal_write_file, capgo_terminal_read_file | Create and edit the app in the sandbox. |
capgo_terminal_git_push | Explicitly commits and pushes the sandbox workspace to your saved GitHub repository. |
capgo_terminal_git_pull | Explicitly restores pushed commits from your repository in a new session (or merges newer remote commits). |
capgo_get_ios_device_registration_link | Returns a 7-day link (up to 100 iPhones per app) that registers an iPhone from Safari. |
capgo_list_ios_devices, capgo_remove_ios_device | Inspect enrolled iPhones (including status and errors) or remove a device by UDID. |
capgo_setup_ios_signing | Creates 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_signing | Creates 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_logs | Request, upload, start, and follow the native cloud build. |
capgo_get_build_install_link | Returns a signed install link (itms-services page on iOS, APK download page on Android) valid for the build’s output retention. |
capgo_stop_terminal | Ends the terminal session and deletes unsaved workspace files. |
iPhone notes
Section titled “iPhone notes”- 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_devicesaftercapgo_setup_ios_signing(ad_hoc). An iPhone registered after a build is not in that build’s profile: reruncapgo_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, runcapgo_setup_ios_signingwithdistribution: "app_store"and see iOS builds.
Android notes
Section titled “Android notes”- Every Android build needs a keystore, debug builds included.
capgo_setup_android_signinggenerates 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.
Security
Section titled “Security”- 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
gitin 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.