Skip to content

GTAStudio/GithubCopilot-API-GUI

Repository files navigation

GitHub Copilot API GUI

A Windows GUI application built with Slint/Rust for managing the GitHub Copilot API proxy server.

No dependencies required (Bun, Node.js, etc.) - everything is bundled into a single exe file.

Features

  • One-Click Start - Embedded copilot-api server, works out of the box
  • Copilot Auth - GitHub Device Code authentication flow
  • Proxy Support - HTTP/SOCKS5 proxy configuration
  • Model Selection - Auto-fetch available models list
  • Azure OpenAI - Azure model configuration support
  • Log Viewer - Built-in real-time log display

Download

Download the latest copilot-api-gui.exe from the Releases page.

Usage

  1. Download and run copilot-api-gui.exe
  2. Click Copilot Auth to complete GitHub device code authentication
  3. Configure port and account type
  4. Click Start Server to launch the service
  5. Use http://localhost:PORT as the API endpoint in your application

Configuration

Option Description
Port API server port (default: 4141)
Account Type GitHub account type: individual or enterprise
Proxy URL Proxy server address (optional)
Model Model to use, click refresh to get available list

Build from Source

# 1. Build copilot-api server
bun install
bun build ./src/main.ts --compile --outfile copilot-api-server.exe

# 2. Build GUI
cd gui-slint
cargo build --release

The exe file will be at gui-slint/target/release/copilot-api-gui.exe (~52MB).

Tech Stack

  • GUI Framework: Slint v1.14
  • Backend Service: copilot-api (embedded)
  • Bundler: Bun compile + flate2 compression

License

MIT License

Credits


GitHub Copilot API GUI (中文)

一个基于 Slint/Rust 的 Windows 图形界面程序,用于管理 GitHub Copilot API 代理服务。

无需安装任何依赖(Bun、Node.js 等),所有组件已打包到单个 exe 文件中。

功能特性

  • 一键启动 - 内嵌 copilot-api 服务器,开箱即用
  • Copilot 认证 - 支持 GitHub Device Code 登录流程
  • 代理配置 - 支持 HTTP/SOCKS5 代理设置
  • 模型选择 - 自动获取可用模型列表
  • Azure OpenAI - 支持 Azure 模型配置
  • 日志查看器 - 内置实时日志显示

下载

Releases 页面下载最新版本的 copilot-api-gui.exe

使用方法

  1. 下载并运行 copilot-api-gui.exe
  2. 点击 Copilot Auth 完成 GitHub 设备码认证
  3. 配置端口和账户类型
  4. 点击 Start Server 启动服务
  5. 在你的应用中使用 http://localhost:端口 作为 API 端点

配置说明

选项 说明
Port API 服务端口(默认 4141)
Account Type GitHub 账户类型:individualenterprise
Proxy URL 代理服务器地址(可选)
Model 使用的模型,点击刷新按钮获取可用列表

Author / 作者: Jason Liang

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 17