Collaborate on a Copilot Managed Runtime app

Use the Copilot Managed Runtime CLI to collaborate on an existing app, including an app created in Copilot Cowork or Microsoft Copilot Studio. Apps created in these experiences are backed by Git. After the app owner grants you edit access, you can find the app, clone its repository, and continue development in your preferred code editor.

Prerequisites

Before you begin, make sure you have:

  • The Copilot Managed Runtime CLI and Node.js installed.
  • Git installed with Git Credential Manager configured.
  • Access to the tenant that contains the app.
  • Edit access to the app. The app owner must grant this access before you can find and clone the app. For more information, see Share a Microsoft Copilot Managed Runtime app with users and groups.
  • For a GitHub-backed app, read and write access to the associated GitHub repository. Grant this access separately in GitHub and confirm that the first-party App installation includes the repository. See GitHub integration prerequisites.

Sign in to the Copilot Managed Runtime CLI with ms auth login:

ms auth login

Find the app ID

Sign in with the account that received edit access, and then list the apps that you can edit with ms app list:

ms app list --permission edit

Find the app you want to edit, and copy its App ID. The app ID is the GUID that you use to clone the repository.

Tip

If the app doesn't appear, verify that you're signed in with the account that received edit access and that the owner shared the app by using --access edit.

Clone the app's Git repository

Use ms app clone with the app ID to clone the app's platform-managed Git repository:

ms app clone --app <app-id> [directory]

For example, if the app's display name is Inventory App, the CLI creates the Inventory App folder:

ms app clone --app 00000000-0000-0000-0000-000000000000
cd "Inventory App"

The [directory] argument is optional. If you omit it, the CLI creates a folder named after the app's display name and clones the repository into that folder. To clone into the current directory, which must be empty, specify . as the directory. If the app's display name isn't a valid folder name, specify a different directory. The CLI finds the repository from the app record and configures Git authentication for future fetch and push operations.

Note

Start developing

From the cloned project directory, install the app's dependencies:

npm install

Start the local development loop with ms app dev:

ms app dev

You can now edit and test the app locally. Pull the latest changes before you begin a new development session. When your changes are ready, use standard Git commands to commit and push them:

git pull
git add .
git commit -m "Describe the change"
git push

The pushed commit updates the app's source repository. It doesn't update the live app. To build, preview, and deploy the changes, see Build, preview, and deploy Microsoft Copilot Managed Runtime apps.

Troubleshooting

Use the information in this section to troubleshoot issues.

ms app clone fails on macOS because libcurl rejects the TLS 1.3 setting

On macOS, ms app clone fails with A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision. Some CLI versions show The failure was not recognized as safely retryable, so the CLI did not retry it. instead.

Cause

The CLI requires Git to use TLS 1.3, and the libcurl library that Git uses on macOS rejects an explicit TLS version setting. Updating Git doesn't help, because Git installed with Homebrew uses the same libcurl that ships with macOS.

Fix: Clear the TLS version setting on macOS

Clear the TLS version setting, and then run the command again.

Set the GIT_SSL_VERSION environment variable to an empty value. The empty value overrides the CLI's TLS 1.3 setting, so libcurl chooses a supported TLS version. Encryption and certificate validation stay on.

To apply the setting to a single command, add it before the command:

GIT_SSL_VERSION= ms app clone --app <app-id>

To apply the setting to every command in your current terminal session, export it first:

export GIT_SSL_VERSION=
ms app clone --app <app-id>

The exported setting lasts until you close the terminal window. Set the variable to an empty value as shown. Don't remove it with unset, because Git uses the CLI's TLS 1.3 setting when the variable doesn't exist.

If the clone still fails, also set Git to use HTTP/1.1:

GIT_SSL_VERSION= GIT_CONFIG_COUNT=1 \
  GIT_CONFIG_KEY_0=http.version GIT_CONFIG_VALUE_0=HTTP/1.1 \
  ms app clone --app <app-id>