2.2 KiB
Description
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.
Authentication
The extension uses GitHub's OAuth Device Flow for authentication:
- Click the "Copilot" status bar item or run the Copilot: Sign In command
- A dialog appears with a device code - click the link to open GitHub's device authorization page
- Enter the code and authorize the application
- 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.
Configuration
Available models can be configured via the ai-features.copilot.models preference:
{
"ai-features.copilot.models": [
"gpt-4o",
"claude-sonnet-4"
]
}
GitHub Enterprise
For GitHub Enterprise users, configure the enterprise URL via the ai-features.copilot.enterpriseUrl preference:
{
"ai-features.copilot.enterpriseUrl": "github.mycompany.com"
}
Commands
- Copilot: Sign In - Initiates the OAuth device flow authentication
- Copilot: Sign Out - Signs out and clears stored credentials
Additional Information
License
- Eclipse Public License 2.0
- 一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception
Trademark
"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia