Note
GitHub Copilot Extensions은(는) 공개 미리 보기 버전이며 변경될 수 있습니다.
Your Copilot agent must be hosted on a server that is accessible to the internet. In this guide, we will use ngrok to create a tunnel to your local server, but you could also use a service like localtunnel or serveo.
Alternatively, if you are a Codespaces user, you can use the built-in Codespaces port forwarding. For more information, see "codespace의 포트 전달."
Prerequisites
- You have created a Copilot agent. For more information, see "Copilot 확장을 위한 Copilot 에이전트 빌드."
Configuring your server
-
Visit the ngrok setup & installation page.
-
If you do not yet have an account, follow the instructions on screen to sign up.
-
Under "Agents," ensure the correct operating system is selected.
-
Under "Installation," follow the instructions for your operating system to download and install ngrok.
-
Under "Deploy your app online," select Ephemeral domain or Static domain.
-
Run the command provided in your terminal, replacing the port number with the port your agent is configured to run on. For example:
-
For an ephemeral domain:
Shell ngrok http http://localhost:AGENT-PORT-NUMBER
ngrok http http://localhost:AGENT-PORT-NUMBER
-
For a static domain:
Shell ngrok http --domain=YOUR-STATIC-DOMAIN.ngrok-free.app AGENT-PORT-NUMBER
ngrok http --domain=YOUR-STATIC-DOMAIN.ngrok-free.app AGENT-PORT-NUMBER
-
-
In your terminal, next to "Forwarding," copy the URL that ngrok has assigned to your server. You will need this forwarding endpoint when you are configuring your GitHub App.
Note
Do not copy the
-> http://localhost:XXXX
part of the URL.Keep the terminal window open while you are using your agent.