Skip to content

GitHub Copilot

GitHub Copilot supports custom third-party model providers via an OpenAI-compatible API. You can point it at CompactifAI to make your compressed models available directly inside your IDE’s Copilot chat and agent workflows.

You need a CompactifAI API key, a GitHub organization with Copilot enabled, and Owner (or administrator) access to that organization.

1. Open your organization’s Copilot model settings

Section titled “1. Open your organization’s Copilot model settings”

Go to your GitHub organization page, click Settings, then under Code, planning and automation select Copilot → Models.

Click the Custom models tab, then click Add API key.

Custom models tab with Add API key button

In the Add API key panel that slides open:

  • Provider – select OpenAI Compatible
  • Name – enter any label you like (e.g. CompactifAI)
  • API Key – paste your CompactifAI API key
  • Base API URL – set to https://api.compactif.ai/v1/

Add API key panel filled with CompactifAI credentials

4. Select models to expose to your organization

Section titled “4. Select models to expose to your organization”

Once the key is saved, click Edit on your new API key entry. The full list of available CompactifAI models will appear. Check each model you want to make accessible to your organization and click Save.

List of available CompactifAI models to select

Go to the Added models tab. Click Configure next to each model you enabled.

Added models tab with Configure buttons

In the configuration dialog you can set:

  • Capabilities – enable Tool calling (required for agent mode), Streaming, Vision, and Thinking as appropriate for the model
  • Minimum / Maximum input and output tokens
  • Maximum context window

Repeat this for every model you want to use, then click Save.

Model configuration dialog showing capability toggles

The configured models now appear in Copilot inside your IDE of choice. Open Copilot Chat, select a CompactifAI model from the model picker, and start prompting.

For request and response fields, see Chat Completion and the API reference.