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

# GitHub Copilot (VS Code)

> Route GitHub Copilot in VS Code through Edgee to cut token costs and gain full observability, with one command.

GitHub Copilot in VS Code can run through Edgee for token compression and full observability over every session. The Edgee CLI starts a local relay and opens VS Code routed through it, no manual configuration.

## Edgee CLI setup (recommended)

<Steps>
  <Step title="Install the Edgee CLI">
    <Tabs>
      <Tab title="macOS / Linux">
        ```bash theme={"dark"}
        curl -fsSL https://edgee.ai/install.sh | bash
        ```
      </Tab>

      <Tab title="Homebrew (macOS)">
        ```bash theme={"dark"}
        brew install edgee-ai/tap/edgee
        ```
      </Tab>

      <Tab title="Windows (PowerShell)">
        ```powershell theme={"dark"}
        irm https://edgee.ai/install.ps1 | iex
        ```
      </Tab>
    </Tabs>
  </Step>

  <Step title="Launch VS Code Copilot through Edgee">
    ```bash theme={"dark"}
    edgee launch copilot-vscode
    ```

    The CLI authenticates, starts a local Edgee relay, and opens VS Code routed through it. Token compression is enabled automatically.

    <Note>
      VS Code must already be installed. Insiders builds are detected too.
    </Note>
  </Step>
</Steps>

After the session ends, the CLI prints a link to view token usage, compression savings, and cost breakdown in the Edgee Console.

## Launch from your app menu

Install a desktop wrapper once, then open **VS Code Copilot (Edgee)** like any other app:

```bash theme={"dark"}
edgee alias copilot-vscode
```

The wrapper appears in `~/Applications` (macOS), your app menu (Linux), or the Start Menu (Windows). It is installed only when VS Code is present. See the [Edgee CLI](/docs/features/cli) page for the full alias reference.

## Benefits

<CardGroup cols={2}>
  <Card title="Cost reduction" icon="dollar-sign">
    Edgee's token compression reduces the tokens sent to and from the model, with no change to output quality.
  </Card>

  <Card title="Observability" icon="chart-line">
    Every request is logged in the Edgee Console with token counts, latency, and cost breakdowns.
  </Card>

  <Card title="Reliability" icon="shield-check">
    Automatic retry and fallback across providers keeps your sessions running even when a provider has issues.
  </Card>

  <Card title="One command" icon="terminal">
    No base URL or API key to paste into settings, the CLI wires everything up.
  </Card>
</CardGroup>

## Next Steps

* Learn more about the [Edgee CLI](/docs/features/cli) and its launch commands
* Set up [observability](/docs/features/observability) to monitor usage and costs
* Explore [retry and fallback](/docs/features/retry-and-fallback) for resilient routing
