Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.23 KB

File metadata and controls

38 lines (23 loc) · 1.23 KB

GitHub Copilot CLI Sandbox Template

Run GitHub Copilot CLI in a network-locked container. All outbound traffic is routed through an enforcing proxy that applies the project's network policy.

See the main README for installation, architecture overview, and configuration options.

Setup

After running agentbox init (selecting "copilot") and starting the sandbox, authenticate Copilot on first run.

Authenticate Copilot (first run only)

In CLI mode you should be able to /login as usual.

When using VS Code (devcontainer), you need to use the "URL handler" method.

Copilot authentication from VS Code IDE

Note: even in Devcontainer mode, VS Code will store the credentials on the host (removing the containers and volumes preserves them).

The IntelliJ Copilot plugin cannot complete the authentication flow in a Devcontainer, so it's impossible to use it.

Use Copilot CLI

Inside the container:

copilot
# or auto-approve mode:
copilot --yolo

Afterward, for CLI mode, stop the container:

agentbox compose down