diff --git a/README.md b/README.md index 884af9cd2..b52955622 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index a5adbb8e7..345a9546f 100644 --- a/package.json +++ b/package.json @@ -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 .", diff --git a/start-claude.cmd b/start-claude.cmd new file mode 100644 index 000000000..5446f334e --- /dev/null +++ b/start-claude.cmd @@ -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... \ No newline at end of file diff --git a/start-copilot-api.cmd b/start-copilot-api.cmd new file mode 100644 index 000000000..492e05f58 --- /dev/null +++ b/start-copilot-api.cmd @@ -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 diff --git a/start.bat b/start.bat index 1a0f8cb83..c621304bd 100644 --- a/start.bat +++ b/start.bat @@ -17,4 +17,4 @@ echo. start "" "https://ericc-ch.github.io/copilot-api?endpoint=http://localhost:4141/usage" bun run dev -pause +pause \ No newline at end of file