A simple HTTP proxy that exposes your GitHub Copilot free quota as an OpenAI-compatible API
55
stars
163
commits
TypeScript
primary language
Sep 22, 2025
updated
❗❗❗ I have rewritten the project as Coxy, which is technically more scalable and has an improved UI/UX. Please take a look. Issues or feature requests are welcome.
A simple HTTP proxy that exposes your GitHub Copilot free quota as an OpenAI-compatible API.
https://api.githubcopilot.com
/chat/completions, /modelsdocker run -p 3000:3000 ghcr.io/hankchiutw/copilot-proxy:latest
pnpx(recommended) or npx
pnpx copilot-proxy
http://localhost:3000 to generate the token by following the instructions.
http://localhost:3000/api
curl --request POST --url http://localhost:3000/api/chat/completions --header 'content-type: application/json' \
--data '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hi"}]
}'
authorization: Bearer <token> and it will override the default token.PORT for setting different port other than 3000.PORT: Port number to listen on (default: 3000)LOG_LEVEL: Log level (default: info)STORAGE_DIR: Directory to store tokens (default: .storage)
LANGFUSE_SECRET_KEY: Langfuse secret keyLANGFUSE_PUBLIC_KEY: Langfuse public keyLANGFUSE_BASEURL: Langfuse base URL (default: https://cloud.langfuse.com)_ to make copilot-proxy use the default token.
_ to make copilot-proxy use the default token.docker run -p 3000:3000 -v /path/to/storage:/app/.storage -v /path/to/.env:/app/.env ghcr.io/hankchiutw/copilot-proxy:latest
Licensed under the MIT License.
163 commits
TypeScript
96.9%
Dockerfile
1.3%
JavaScript
1.0%
A simple HTTP proxy that exposes your GitHub Copilot free quota as an OpenAI-compatible API
55
stars
163
commits
TypeScript
primary language
Sep 22, 2025
updated
❗❗❗ I have rewritten the project as Coxy, which is technically more scalable and has an improved UI/UX. Please take a look. Issues or feature requests are welcome.
A simple HTTP proxy that exposes your GitHub Copilot free quota as an OpenAI-compatible API.
https://api.githubcopilot.com
/chat/completions, /modelsdocker run -p 3000:3000 ghcr.io/hankchiutw/copilot-proxy:latest
pnpx(recommended) or npx
pnpx copilot-proxy
http://localhost:3000 to generate the token by following the instructions.
http://localhost:3000/api
curl --request POST --url http://localhost:3000/api/chat/completions --header 'content-type: application/json' \
--data '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hi"}]
}'
authorization: Bearer <token> and it will override the default token.PORT for setting different port other than 3000.PORT: Port number to listen on (default: 3000)LOG_LEVEL: Log level (default: info)STORAGE_DIR: Directory to store tokens (default: .storage)
LANGFUSE_SECRET_KEY: Langfuse secret keyLANGFUSE_PUBLIC_KEY: Langfuse public keyLANGFUSE_BASEURL: Langfuse base URL (default: https://cloud.langfuse.com)_ to make copilot-proxy use the default token.
_ to make copilot-proxy use the default token.docker run -p 3000:3000 -v /path/to/storage:/app/.storage -v /path/to/.env:/app/.env ghcr.io/hankchiutw/copilot-proxy:latest
Licensed under the MIT License.
163 commits
TypeScript
96.9%
Dockerfile
1.3%
JavaScript
1.0%