Theia API Documentation v1.68.0
    Preparing search index...

    Module @theia/ai-copilot


    theia-ext-logo

    ECLIPSE THEIA - GITHUB COPILOT EXTENSION


    The @theia/ai-copilot extension integrates GitHub Copilot language models with Theia AI. This allows users to authenticate with their GitHub Copilot subscription and use Copilot models (e.g., GPT-4o, Claude Sonnet) through Theia's AI features.

    The extension uses GitHub's OAuth Device Flow for authentication:

    1. Click the "Copilot" status bar item or run the Copilot: Sign In command
    2. A dialog appears with a device code - click the link to open GitHub's device authorization page
    3. Enter the code and authorize the application
    4. The dialog updates to show "Authenticated" and the status bar reflects the signed-in state

    Once authenticated, Copilot models become available in the AI Configuration for use with any Theia AI agent.

    Note: This extension requires an active GitHub Copilot subscription.

    Available models can be configured via the ai-features.copilot.models preference:

    {
    "ai-features.copilot.models": [
    "gpt-4o",
    "claude-sonnet-4"
    ]
    }

    For GitHub Enterprise users, configure the enterprise URL via the ai-features.copilot.enterpriseUrl preference:

    {
    "ai-features.copilot.enterpriseUrl": "github.mycompany.com"
    }
    • Copilot: Sign In - Initiates the OAuth device flow authentication
    • Copilot: Sign Out - Signs out and clears stored credentials

    "Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia

    Modules

    browser
    browser/copilot-auth-dialog
    browser/copilot-command-contribution
    browser/copilot-frontend-application-contribution
    browser/copilot-frontend-module
    browser/copilot-status-bar-contribution
    common
    common/copilot-auth-service
    common/copilot-language-models-manager
    common/copilot-preferences
    node
    node/copilot-auth-service-impl
    node/copilot-backend-module
    node/copilot-language-model
    node/copilot-language-models-manager-impl