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.
After running agentbox init (selecting "copilot") and starting the sandbox, authenticate Copilot on first run.
In CLI mode you should be able to /login as usual.
When using VS Code (devcontainer), you need to use the "URL handler" method.
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.
Inside the container:
copilot
# or auto-approve mode:
copilot --yoloAfterward, for CLI mode, stop the container:
agentbox compose down