> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunbound.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Copilot

GitHub Copilot is GitHub's AI pair programmer that suggests code completions, explains code, and runs agentic workflows across your editor and terminal. It works in the VS Code extension and the `copilot` CLI.

## Prerequisites

Before setting up the integration, ensure you have:

* **Unbound CLI**: Installed and logged in — see the [CLI guide](/cli/overview)
* **GitHub Copilot**: [VS Code extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) or [Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli/about-github-copilot-in-the-cli)

## Setup with Unbound CLI

```bash theme={null}
unbound setup copilot
```

This installs the Unbound hooks for Copilot. Both the VS Code extension and the `copilot` CLI pick up the same hooks. Restart your terminal (and reload the VS Code window) after setup.

To remove the Unbound configuration:

```bash theme={null}
unbound setup copilot --clear
```

## Usage

### Basic Usage

After configuration, every tool call Copilot makes — shell commands, file reads, file writes, edits — is intercepted by the Unbound hooks. Policies are checked before the tool runs, and matching actions (block, warn, audit, Slack approval) are enforced inline.

## Security Benefits

Using GitHub Copilot with Unbound Security AI Gateway provides:

* **Request Monitoring**: All Copilot tool calls are logged and monitored
* **Analytics**: See which files and commands Copilot touches across your org
* **Compliance**: Ensure AI interactions meet your organization's standards
* **Audit Trail**: Complete visibility into AI usage patterns

<CardGroup cols={2}>
  <Card title="Unbound CLI" icon="terminal" href="/cli/overview">
    Install the CLI to set up and manage tools
  </Card>

  <Card title="Tool Policies" icon="shield" href="/policies/tool-policies">
    Configure security guardrails for AI tools
  </Card>
</CardGroup>
