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

# GitHub Copilot

> Use Fireworks AI models in GitHub Copilot Chat via a custom endpoint

Use [Fireworks AI](https://fireworks.ai) models in **GitHub Copilot Chat** by adding a **Custom Endpoint** in VS Code (or other hosts that support Copilot custom models).

<Info>
  Fireworks offers **200+ models**—copy the model `id` and token limits from the [Model Library](https://app.fireworks.ai/models). Use endpoint URL `https://api.fireworks.ai/inference/v1`.
</Info>

## Prerequisites

* A Fireworks [API key](https://app.fireworks.ai/settings/users/api-keys)
* GitHub Copilot with access to **Other Models** and **Custom Endpoint** (availability depends on your Copilot plan)

## Setup

<Steps>
  <Step title="Open model settings">
    In Copilot Chat, click the active model name at the bottom (often **Auto**). In the menu, click the gear icon next to **Other Models**.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-1-open-settings.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=b5a4a0a4a513f592f41ce291f6acc3f4" alt="Copilot Chat model picker with gear icon next to Other Models" width="582" height="326" data-path="images/integrations/github-copilot/step-1-open-settings.png" />
    </Frame>
  </Step>

  <Step title="Add a custom endpoint">
    In **Language Models**, click **+ Add Models...** in the top right, then choose **Custom Endpoint**.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-2-custom-endpoint.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=724d9bbc504f575684831efb0bd1fd75" alt="Add Models menu with Custom Endpoint selected" width="812" height="810" data-path="images/integrations/github-copilot/step-2-custom-endpoint.png" />
    </Frame>
  </Step>

  <Step title="Name the endpoint group">
    Enter **Fireworks AI** as the group name and press Enter.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-3-name-endpoint.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=3eff560293b4185eff92f94f56a9409d" alt="Prompt to enter group name Fireworks AI" width="624" height="115" data-path="images/integrations/github-copilot/step-3-name-endpoint.png" />
    </Frame>
  </Step>

  <Step title="Enter your API key">
    Paste your Fireworks API key (hidden by default) and press Enter to confirm.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-4-api-key.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=c3d1bafde87d67f63c0af07123452452" alt="Fireworks API key entry field" width="624" height="115" data-path="images/integrations/github-copilot/step-4-api-key.png" />
    </Frame>
  </Step>

  <Step title="Choose Responses API">
    When asked for the default request/response format, select **Responses API**.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-5-api-type.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=607a5d1ae64733050a566ced7b728a1f" alt="API type selection with Responses API highlighted" width="625" height="153" data-path="images/integrations/github-copilot/step-5-api-type.png" />
    </Frame>
  </Step>

  <Step title="Configure the model template">
    A configuration file opens. **Do not change** the auto-generated header at the top—only fill in the model template below it.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-6-config-template.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=8af365ce6038133362f96a1e66b22091" alt="Copilot custom endpoint config file with template section" width="1818" height="1524" data-path="images/integrations/github-copilot/step-6-config-template.png" />
    </Frame>
  </Step>

  <Step title="Add model details and save">
    Fill in your model fields, then save (**Ctrl+S** on Windows/Linux, **Cmd+S** on macOS) and close the settings modal.

    Example for [DeepSeek V4 Pro](https://app.fireworks.ai/models/fireworks/deepseek-v4-pro):

    | Field               | Value                                       |
    | ------------------- | ------------------------------------------- |
    | **id**              | `accounts/fireworks/models/deepseek-v4-pro` |
    | **name**            | `DeepSeek V4 Pro`                           |
    | **url**             | `https://api.fireworks.ai/inference/v1`     |
    | **toolCalling**     | `true`                                      |
    | **vision**          | `false`                                     |
    | **maxInputTokens**  | `1000000`                                   |
    | **maxOutputTokens** | `384000`                                    |

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-7-model-details.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=96200f784565277cfdfd2184c7db1dd9" alt="Completed model template with DeepSeek V4 Pro fields" width="2150" height="1530" data-path="images/integrations/github-copilot/step-7-model-details.png" />
    </Frame>

    <Warning>
      Use the exact model `id` and token limits from the model page in the [Model Library](https://app.fireworks.ai/models). Values differ per model.
    </Warning>
  </Step>

  <Step title="Select your model in chat">
    Return to Copilot Chat, open the model picker (**Auto**), expand **Other Models**, and choose your model under **Fireworks AI**.

    <Frame>
      <img src="https://mintcdn.com/fireworksai/O77T9UYisPn8aNUa/images/integrations/github-copilot/step-8-select-model.png?fit=max&auto=format&n=O77T9UYisPn8aNUa&q=85&s=19a034b5a2358612cd153323c3c0a2f1" alt="Model picker showing Fireworks AI custom model at bottom of Other Models" width="583" height="539" data-path="images/integrations/github-copilot/step-8-select-model.png" />
    </Frame>
  </Step>
</Steps>

## Related

* [Claude Code](/ecosystem/integrations/claude-code) — use Fireworks models with Claude Code
* [Development Setup with Fireworks Docs MCP](/ecosystem/integrations/development-setup) — add Fireworks docs to your coding agent
