Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ https://github.com/user-attachments/assets/7654b383-669d-4eb9-b23c-06d7aefee8c5

## Prerequisites

- Bun (>= 1.2.x)
- Bun (>= 1.2.x) [Bun Installation](https://bun.com/docs/installation#windows)
- GitHub account with Copilot subscription (individual, business, or enterprise)

## Installation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"build": "tsdown",
"dev": "bun run --watch ./src/main.ts",
"dev": "bun run --watch ./src/main.ts start",
"knip": "knip-bun",
"lint": "eslint --cache",
"lint:all": "eslint --cache .",
Expand Down
10 changes: 10 additions & 0 deletions start-claude.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@ECHO OFF

set ANTHROPIC_BASE_URL=http://localhost:4141
set ANTHROPIC_AUTH_TOKEN=dummy-key
set ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4.5
set ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-4.5
set ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-4.5
call claude

ECHO Exist claude...
12 changes: 12 additions & 0 deletions start-copilot-api.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
echo ================================================
echo GitHub Copilot API Server with Usage Viewer
echo Start Copilot API Server at %~dp0
echo ================================================
echo.

ECHO Starting Copilot-Api service...

CALL CD /D %~dp0 && npm run dev

pause
2 changes: 1 addition & 1 deletion start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ echo.
start "" "https://ericc-ch.github.io/copilot-api?endpoint=http://localhost:4141/usage"
bun run dev

pause
pause