Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
13fee2a
feat(routing): add key-based mode and fallback routing
jc01rho Jan 16, 2026
45624ec
Merge commit '4dc7af5a5d136a9dff72f047274d1653d056f391'
Jan 16, 2026
77322f9
Delete .github/workflows/docker-image.yml
jc01rho Jan 16, 2026
ed22738
feat(api): add routing mode and fallback management endpoints
jc01rho Jan 16, 2026
3930f64
Merge remote-tracking branch 'upstream/main'
Jan 16, 2026
37947cf
fix: context canceled errors incorrectly marking auth as failed
jc01rho Jan 17, 2026
5ec3e15
Merge remote-tracking branch 'upstream/main'
Jan 17, 2026
a420b24
Merge commit 'f8f3ad84fcaf33443746e6c0d2eba420220046bb'
Jan 17, 2026
eeab7cf
feat(api): add quota, last_error, next_retry_after to auth-files resp…
jc01rho Jan 17, 2026
12f6be3
Merge remote-tracking branch 'upupstream/main'
Jan 18, 2026
ed57ebc
feat(antigravity): extract and store subscription tier info
jc01rho Jan 18, 2026
f59cbba
feat(api): expose antigravity tier in management API
jc01rho Jan 18, 2026
3701ff0
feat(antigravity): log tier info in requests
jc01rho Jan 18, 2026
fabae2d
chore: add sisyphus work plan and notepads for antigravity tier detec…
jc01rho Jan 18, 2026
3688f5e
Merge remote-tracking branch 'upstream/main'
Jan 19, 2026
a399c7d
Merge commit '2542c2920dc3d7f568737fe333d19b7a78bcd7f5'
Jan 19, 2026
53c7dce
Merge remote-tracking branch 'upstream/main'
Jan 20, 2026
f261efa
Merge remote-tracking branch 'upstream/main'
Jan 20, 2026
ca50521
fix(antigravity): resolve malformed_function_call error for gemini-3-…
jc01rho Jan 20, 2026
de568a4
fix(antigravity): preserve tier info during token refresh
jc01rho Jan 20, 2026
a459599
Merge commit 'ef4508dbc8fce4e660e55aa1673c25819a903630'
Jan 21, 2026
af93643
fix: apply PR #1131 - Fix Gemini tool calling for Antigravity
jc01rho Jan 21, 2026
9a8c7e0
fix: apply PR #1131 - Fix Gemini tool calling for Antigravity
jc01rho Jan 21, 2026
18caa3f
feat: add web search tool support for Claude/OpenAI/Gemini formats (P…
jc01rho Jan 22, 2026
52484f2
Merge remote-tracking branch 'upstream/main'
Jan 22, 2026
5b93c53
fix(auth): trigger fallback when all keys disabled or pending
jc01rho Jan 22, 2026
6350302
Merge upstream commit abfca6aa (refactor: reorder gemini schema clean…
jc01rho Jan 22, 2026
8b1533d
Merge upstream commit 19b4ef33 (feat: PATCH endpoint for auth files)
jc01rho Jan 23, 2026
ec0baf9
Merge cliplus/main (9fccc86b): executor payload config, Kiro auth fix…
jc01rho Jan 24, 2026
fdf86b0
Merge commit '0d6ecb01' into merge-lab
jc01rho Jan 24, 2026
da39d04
fix: restore upstream version of antigravity_openai_request.go to fix…
jc01rho Jan 24, 2026
02177c6
feat(sdk): export FetchAntigravityProjectInfo for tier info access
jc01rho Jan 24, 2026
90f5bc1
fix(backend): add tier info to antigravity auths
jc01rho Jan 24, 2026
9fc64fc
feat(sdk): add tier detection by name patterns
jc01rho Jan 24, 2026
f613d91
feat(usage): add per-model failure count to statistics API
jc01rho Jan 24, 2026
b0c0659
fix(kiro): add virtual model IDs to enable OAuth model alias mapping
jc01rho Jan 24, 2026
2246e89
fix(kiro): prevent duplicate agentic variant generation
jc01rho Jan 24, 2026
96547f2
chore(kiro): add debug logging for OAuth model alias resolution
jc01rho Jan 24, 2026
13a1047
fix(kiro): remove unsupported Opus models and fix OAuth alias hot-reload
jc01rho Jan 24, 2026
db99913
fix(iflow): improve error logging for token refresh and streaming fai…
jc01rho Jan 24, 2026
551cbda
fix(thinking): prevent Gemini 400 error when both budget and level ar…
jc01rho Jan 24, 2026
7e9863d
feat: Add Trae provider support
jc01rho Jan 25, 2026
adb0434
feat: Add Trae provider support to OAuth and executor
jc01rho Jan 25, 2026
252e758
feat: Add AmpCode provider support
jc01rho Jan 25, 2026
6494710
Merge cliplus/main with HEAD (use HEAD for conflicts)
jc01rho Jan 25, 2026
569a370
Merge upstream/main (use HEAD for iflow_executor conflict)
jc01rho Jan 25, 2026
60c3186
Revert "feat: Add AmpCode provider support"
Jan 26, 2026
58fecdc
Merge remote-tracking branch 'upstream/main'
Jan 26, 2026
b225d4e
refactor(trae): Follow Qwen pattern - add CreateTokenStorage/UpdateTo…
jc01rho Jan 26, 2026
6184735
Merge remote-tracking branch 'upstream/main'
Jan 26, 2026
510be7e
fix(trae): Return auth URL immediately in RequestTraeToken response
jc01rho Jan 26, 2026
4ba6f64
fix(trae): Use main server callback and file polling for OAuth flow
jc01rho Jan 26, 2026
3ab687b
fix(kiro): Add token estimation fallback for Kiro model
jc01rho Jan 26, 2026
2b68238
feat(trae): implement OAuth flows and update project configuration
jc01rho Jan 27, 2026
7d51efc
Merge remote-tracking branch 'upstream/main'
Jan 27, 2026
39eeb7d
chore(deps): Add machineid dependency for device fingerprinting
jc01rho Jan 28, 2026
823f71b
Merge commit '9e5b1d24e8bdecedc7e705a939fd037cec6fa8d7'
Jan 28, 2026
62ecc1e
feat(logging): add comprehensive request logging and blocking
jc01rho Jan 28, 2026
3880b15
fix(logging): ensure model name is logged when handler reads body first
jc01rho Jan 28, 2026
0f8b50c
fix(logging): improve log format to show model and auth independently
jc01rho Jan 28, 2026
20a2818
feat(logging): add provider and provider-auth info to request logs
jc01rho Jan 28, 2026
aa1e988
feat(trae): add native OAuth types and fingerprint extensions
jc01rho Jan 28, 2026
e2521d6
feat(trae): implement native OAuth URL generation
jc01rho Jan 28, 2026
a61c677
feat(trae): add /authorize callback handler for native OAuth
jc01rho Jan 28, 2026
d4e8c15
refactor(trae): remove deprecated Google OAuth flow
jc01rho Jan 28, 2026
9d7df11
refactor(trae): remove deprecated GitHub OAuth flow
jc01rho Jan 28, 2026
c5bd05a
feat(trae): implement Execute and ExecuteStream methods
jc01rho Jan 28, 2026
72b6cc0
fix: Add Trae userJwt parsing in OAuth callback handler
jc01rho Jan 29, 2026
e0fa66f
fix(logging): propagate provider auth info to gin context for logging
jc01rho Jan 29, 2026
ce653ee
fix(logging): add gin.Context to request context for provider auth pr…
jc01rho Jan 29, 2026
fde05b2
Merge upstream/main (d7d54fa) into main
jc01rho Jan 30, 2026
af086e8
feat(ci): add Discord webhook notification on successful release
jc01rho Jan 30, 2026
abb23b4
Merge tag 'v6.7.37-0'
Jan 31, 2026
f87ddd4
feat(trae): add Native OAuth login support with redirect=0
jc01rho Jan 31, 2026
e355abf
Merge tag 'v6.7.38-0'
Jan 31, 2026
fd6d618
Merge remote-tracking branch 'upstream/main'
Jan 31, 2026
7585d00
feat(cli): add --trae-login and --trae-import CLI flags
jc01rho Jan 31, 2026
36ca128
feat(trae): implement correct Trae API format for chat completions
jc01rho Jan 31, 2026
d2793c9
feat(kilocode): implement Kilocode Device Auth and API integration
jc01rho Feb 1, 2026
37fd6ad
fix(kilocode): register KilocodeAuthenticator in auth manager
jc01rho Feb 1, 2026
04aeefe
Merge remote-tracking branch 'upstream/main'
Feb 1, 2026
327c5ae
chore: update management.html with Kilocode UI support
jc01rho Feb 1, 2026
d9b5bba
chore: update management.html with upstream merge (c3e652e)
jc01rho Feb 1, 2026
7d3cc09
feat(kilocode): add dynamic free model fetching from Kilocode API
jc01rho Feb 1, 2026
f790d54
fix(kilocode): use static model list instead of API fetch
jc01rho Feb 1, 2026
b418cd5
fix(kilocode): normalize model names and remove /models validation
jc01rho Feb 1, 2026
dbb8aa6
chore: remove server binary and add to gitignore
jc01rho Feb 1, 2026
ed7ad3a
fix(kilocode): update free model list - remove kimi-k2.5, add minimax…
jc01rho Feb 1, 2026
0cb4c0c
Revert "fix(kilocode): update free model list - remove kimi-k2.5, add…
jc01rho Feb 1, 2026
fa8aad2
feat(kilocode): add VS Code extension headers for free model access
jc01rho Feb 1, 2026
bf51879
fix(kilocode): update headers and model IDs for free model access
jc01rho Feb 1, 2026
c28b808
Merge remote-tracking branch 'upstream/main'
Feb 1, 2026
ff7f5b5
fix(trae): improve v1 API integration with token_usage parsing and fi…
jc01rho Feb 1, 2026
bd0cbfb
feat(trae): add v3 API support for gpt-5.x, gemini-3, kimi-k2 models
jc01rho Feb 1, 2026
583a48a
feat(trae): add static v1 models (gpt-4o, deepseek-V3/R1, claude37)
jc01rho Feb 1, 2026
759a778
feat(trae): add model aliases to static list for v1 API
jc01rho Feb 2, 2026
b9b3049
fix(kilocode): add X-Kilocode-Tester header for free model access and…
jc01rho Feb 2, 2026
1a585d4
fix(kilocode): resolve model alias to full OpenRouter format for free…
jc01rho Feb 2, 2026
9715aa5
fix(kilocode): filter SSE comments to prevent JSON parse errors
jc01rho Feb 2, 2026
a477852
feat(fallback): add detailed logging for fallback reason
jc01rho Feb 2, 2026
84ad6e8
feat(kilocode): add explicit model alias mappings for kimi2, glm4, etc.
jc01rho Feb 2, 2026
7302834
refactor(kilocode): remove hardcoded model aliases, delegate to config
jc01rho Feb 2, 2026
d6207c6
debug(oauth-alias): add debug logs for alias resolution troubleshooting
jc01rho Feb 2, 2026
07160fe
debug(oauth-alias): add channel logging at applyOAuthModelAlias entry
jc01rho Feb 2, 2026
91abfbd
debug(kilocode): add executor logging for model alias flow tracing
jc01rho Feb 2, 2026
0cf989d
fix(oauth-alias): set auth_kind for file-loaded auths
jc01rho Feb 2, 2026
a216bf8
debug(oauth-alias): add logging to trace alias resolution flow
jc01rho Feb 2, 2026
13ae121
fix(kilocode): strip :free suffix from model names for API calls
jc01rho Feb 2, 2026
21dff8f
debug(kilocode): add INFO level logging for model normalization
jc01rho Feb 2, 2026
01d0fb7
fix(kilocode): update API base URL and preserve :free suffix
jc01rho Feb 2, 2026
5141a17
Merge upstream cliplus/main b9cdc2f5
jc01rho Feb 2, 2026
7dd18f4
fix(translator): remove non-standard 'interleaved' field from OpenAI …
jc01rho Feb 3, 2026
f7b51ed
fix: Add tool_use.id validation and sanitization for Kiro provider
jc01rho Feb 3, 2026
9600842
feat: Add detailed request body logging for Kiro 400 errors
jc01rho Feb 3, 2026
552cd61
Merge tag 'v6.7.45'
Feb 3, 2026
5df3b19
Merge upstream commit 1548c567 - sponsors & project list
jc01rho Feb 4, 2026
3ace0c3
Merge branch 'main' of github.com:jc01rho/CLIProxyAPIPlus
jc01rho Feb 4, 2026
673c57b
Merge remote-tracking branch 'upstream/main'
Feb 5, 2026
be3e620
fixed
Feb 5, 2026
4c23a08
Merge commit 'f0bd14b64f540ef16553dcb6b0a6252d3efdb7b6'
Feb 5, 2026
1ba2aa7
Merge tag 'v6.7.53-0'
Feb 6, 2026
a5d0288
fix(sdk): restore bytes.Clone to prevent JSON truncation in streaming…
jc01rho Feb 6, 2026
4af9181
fix(executor): restore bytes.Clone in Gemini executors
jc01rho Feb 6, 2026
21fae15
fix(executor): restore bytes.Clone in AI Studio and Qwen executors
jc01rho Feb 6, 2026
2489cd2
fix(executor): restore bytes.Clone in Claude, iFlow, and Codex executors
jc01rho Feb 6, 2026
6042bef
fix(executor): restore bytes.Clone in remaining executors and logging
jc01rho Feb 6, 2026
03570e9
feat(executor): increase default HTTP timeout to 300s for GLM-4.7 sup…
jc01rho Feb 6, 2026
8a95e27
fix(executor): remove Client.Timeout to prevent streaming deadline er…
jc01rho Feb 6, 2026
06482bc
Merge remote-tracking branch 'upstream/main'
Feb 6, 2026
7ea0603
Merge remote-tracking branch 'upstream/main'
Feb 7, 2026
91c4a15
Merge remote-tracking branch 'upstream/main'
Feb 8, 2026
5cabc33
Merge remote-tracking branch 'upstream/main'
Feb 9, 2026
1fdc799
Remove Trae provider - complete removal of Trae implementation
Feb 9, 2026
fe2b3d3
Merge remote-tracking branch 'upstream/main'
Feb 10, 2026
7c6e59a
Merge remote-tracking branch 'upstream/main'
Feb 10, 2026
19392b1
Merge commit 'c6bd91b86b9bc4800a833996d3bbe9702e4ab32b'
Feb 11, 2026
c12d17d
Merge remote-tracking branch 'upstream/main'
Feb 11, 2026
af0f39c
Merge commit 'f361b2716da08496c478d9cdcde4ccfbd64b4f59'
Feb 12, 2026
09c355b
Merge remote-tracking branch 'upstream/main'
Feb 13, 2026
ea677b1
feat(iflow): improve OAuth token refresh with expires_at handling
Feb 13, 2026
cb9b3f7
feat(kilocode): add dynamic model fetching with static fallback
Feb 13, 2026
2d61771
fix(oauth-alias): allow multiple source models to share same alias
Feb 13, 2026
7faa33e
feat(registry): add kilocode and kimi to model definitions endpoint
Feb 13, 2026
a06c8c6
feat(registry): add trae to model definitions endpoint
Feb 13, 2026
aa79005
fix(trae): update auth import to read from storage.json like quotio
Feb 13, 2026
c6815a7
Remove Trae provider entirely — quotio treats it as quota-tracking on…
Feb 13, 2026
171a5f8
Merge remote-tracking branch 'upstream/main'
Feb 13, 2026
36a992d
fix(kilocode): improve free model detection and add provider filtering
Feb 13, 2026
3ae34fe
Merge upstream d560c20c with conflict resolution
Feb 15, 2026
f1cdaa5
Merge commit 'b5fe78eb70fd8e77cff8800280b33c64f28447cd'
Feb 15, 2026
badeb65
fix(iflow): advance token refresh to 36 hours before expiry
Feb 17, 2026
2b50496
Merge upstream e186ccb0 with kilo/kilocode consolidation
Feb 17, 2026
31cf3b8
refactor(kilo): improve login UX with auto browser open and formattin…
Feb 18, 2026
4ec8f43
feat(cline): add provider constant and WorkOS OAuth authentication
Feb 18, 2026
c2a5c9b
feat(cline): add model registry definitions
Feb 18, 2026
5c4eb58
feat(cline): add request executor for Cline API
Feb 18, 2026
6d1e01e
feat(cline): add SDK authenticator and refresh registration
Feb 18, 2026
358cf2b
feat(cline): add CLI login command and auth manager registration
Feb 18, 2026
5c16aaf
feat(cline): wire provider into service and OAuth routing
Feb 18, 2026
290f8ed
feat(cline): add CLI login flag and web OAuth management handler
Feb 18, 2026
da3e28a
fix(cline): add client_type and redirect params to OAuth flow
Feb 18, 2026
cedaac6
fix(cline): handle callback with base64 token data and optional state
Feb 18, 2026
4c1640c
feat(cline): add minimax-m2.5 free model and enhance dynamic model fe…
Feb 18, 2026
ac857b6
fix(cline): add grantType to token refresh and extension headers to A…
Feb 18, 2026
03c74ef
chore: remove Cline provider implementation
Feb 18, 2026
90ec337
fix(security): replace hardcoded OAuth secrets with package constants
Feb 18, 2026
98c19cf
Merge remote-tracking branch 'upupstream/dev'
Feb 18, 2026
47a030a
Merge remote-tracking branch 'upstream/main'
Feb 19, 2026
aaa8800
Merge upstream 2b8c466e (StreamResult refactor, TUI, passthrough head…
Feb 20, 2026
1e4db51
Merge branch 'main' of github.com:jc01rho/CLIProxyAPIPlus
Feb 20, 2026
2a36b1e
Merge remote-tracking branch 'upstream/main'
Feb 20, 2026
8a17f0f
feat: add gemini-3.1-pro-preview to Gemini CLI models
Feb 20, 2026
085d995
fix(responses): use data-only SSE format for better client compatibility
Feb 20, 2026
ec16857
fix(responses): strip event: lines from SSE stream for client compati…
Feb 20, 2026
8ce8591
fix(codex): strip event: prefix from upstream SSE stream
Feb 20, 2026
d1c2afc
fix(responses): strip all event: lines from SSE chunks
Feb 20, 2026
a5e36a5
Merge tag 'v6.8.24' into HEAD
google-labs-jules[bot] Feb 21, 2026
7b7f243
Merge pull request #2 from jc01rho/merge-upstream-v6.8.24-16401083871…
jc01rho Feb 21, 2026
b19e8ec
Merge remote-tracking branch 'upstream/main'
Feb 22, 2026
2d2a301
Merge remote-tracking branch 'upstream/main'
Feb 23, 2026
0e4adf8
Merge tag 'v6.8.27-0'
Feb 25, 2026
8f03f86
Merge remote-tracking branch 'upstream/main'
Feb 26, 2026
8b24462
fix(iflow): improve token refresh error handling for server overload
Feb 26, 2026
e2f63f8
fix(iflow): persist oauth refresh metadata in management auth flow
Feb 26, 2026
867e65e
Merge remote-tracking branch 'upstream/main'
Feb 27, 2026
10d67b6
feat(iflow): match official iFlow CLI request patterns for detection …
Feb 27, 2026
dda38a0
Merge remote-tracking branch 'upstream/main'
Feb 27, 2026
2caf87f
feat(cline): add provider constant, OAuth auth, and static models
Feb 27, 2026
0b9ce4a
feat(cline): implement executor, CLI login, and SDK authenticator
Feb 27, 2026
e8d048f
feat(cline): complete service registration and management routes
Feb 27, 2026
0c1ed44
feat(cline): complete service registration and management routes
Feb 27, 2026
74d7e14
feat(cline): add --cline-login CLI flag for OAuth authentication
Feb 28, 2026
d7443dc
fix(antigravity): match User-Agent with AntigravityManager for better…
Feb 28, 2026
986eb29
fix(auth): register cline authenticator in CLI and service managers
Feb 28, 2026
5925dd7
fix(auth): handle cline callback without state and parse token directly
Feb 28, 2026
eb7865f
fix(auth): parse cline expiresAt as string and handle multiple base64…
Feb 28, 2026
61815a6
fix(cline): fetch only free models dynamically and harden callback JS…
Feb 28, 2026
7aca72d
feat(cline): add token refresh and OpenRouter parity headers
Mar 1, 2026
7f026e2
Merge remote-tracking branch 'upstream/main'
Mar 1, 2026
8a03e3f
Merge upstream 7547d1d0 (v6.8.39) with theirs strategy
Mar 2, 2026
01b1e93
fix(auth): restore clineCallbackPort constant after upstream merge
Mar 2, 2026
34c5c06
feat: add provider info to gin logger context
Mar 3, 2026
8b20a6f
feat: log actual model name alongside alias in request logs
Mar 3, 2026
f59d64c
fix: log all HTTP status codes at Info level for consistent visibility
Mar 3, 2026
a95772d
Merge remote-tracking branch 'upstream/main'
Mar 3, 2026
f50dae1
Merge remote-tracking branch 'upstream/main'
Mar 4, 2026
c57cfc6
Merge tag 'v6.8.42-1'
Mar 5, 2026
c8af7cb
Merge remote-tracking branch 'upstream/main'
Mar 6, 2026
f9d93c3
fix(ci): allow third-party provider translator changes in PRs
Mar 6, 2026
5a4464d
fix: add missing switch keyword in gin_logger.go
Mar 6, 2026
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
140 changes: 0 additions & 140 deletions .github/workflows/docker-image.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/pr-path-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
with:
files: |
internal/translator/**
!internal/translator/kiro/**
!internal/translator/antigravity/**
!internal/translator/codex/**
!internal/translator/gemini-cli/**
- name: Fail when restricted paths change
if: steps.changed-files.outputs.any_changed == 'true'
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ jobs:
VERSION: ${{ env.VERSION }}
COMMIT: ${{ env.COMMIT }}
BUILD_DATE: ${{ env.BUILD_DATE }}
- name: Discord Notification
if: success()
run: |
curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} \
-H "Content-Type: application/json" \
-d '{"content": "✅ **CLIProxyAPIPlus** Build Complete!\n\n**Version:** '${{ env.VERSION }}'\n**Commit:** '${{ env.COMMIT }}'\n**Build Date:** '${{ env.BUILD_DATE }}'\n\n🔗 [Release](https://github.com/'${{ github.repository }}'/releases/tag/'${{ env.VERSION }}')"}'
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Binaries
cli-proxy-api
cliproxy
/cliproxy
*.exe


Expand Down Expand Up @@ -54,3 +54,8 @@ _bmad-output/*
.DS_Store
._*
*.bak
*.json
.cli-proxy-api/
.sisyphus/
.tldr/
server
84 changes: 84 additions & 0 deletions .tldrignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# TLDR ignore patterns (gitignore syntax)
# Auto-generated - review and customize for your project
# Docs: https://git-scm.com/docs/gitignore

# ===================
# Dependencies
# ===================
node_modules/
.venv/
venv/
env/
__pycache__/
.tox/
.nox/
.pytest_cache/
.mypy_cache/
.ruff_cache/
vendor/
Pods/

# ===================
# Build outputs
# ===================
dist/
build/
out/
target/
*.egg-info/
*.whl
*.pyc
*.pyo

# ===================
# Binary/large files
# ===================
*.so
*.dylib
*.dll
*.exe
*.bin
*.o
*.a
*.lib

# ===================
# IDE/editors
# ===================
.idea/
.vscode/
*.swp
*.swo
*~

# ===================
# Security (always exclude)
# ===================
.env
.env.*
*.pem
*.key
*.p12
*.pfx
credentials.*
secrets.*

# ===================
# Version control
# ===================
.git/
.hg/
.svn/

# ===================
# OS files
# ===================
.DS_Store
Thumbs.db

# ===================
# Project-specific
# Add your custom patterns below
# ===================
# large_test_fixtures/
# data/
Binary file added assets/cubence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func main() {
var kiroIDCRegion string
var kiroIDCFlow string
var githubCopilotLogin bool
var kilocodeLogin bool
var clineLogin bool
var projectID string
var vertexImport string
var configPath string
Expand Down Expand Up @@ -126,6 +128,8 @@ func main() {
flag.StringVar(&kiroIDCRegion, "kiro-idc-region", "", "IDC region (default: us-east-1)")
flag.StringVar(&kiroIDCFlow, "kiro-idc-flow", "", "IDC flow type: authcode (default) or device")
flag.BoolVar(&githubCopilotLogin, "github-copilot-login", false, "Login to GitHub Copilot using device flow")
flag.BoolVar(&kilocodeLogin, "kilocode-login", false, "Login to Kilocode using device flow")
flag.BoolVar(&clineLogin, "cline-login", false, "Login to Cline using OAuth")
flag.StringVar(&projectID, "project_id", "", "Project ID (Gemini only, not required)")
flag.StringVar(&configPath, "config", DefaultConfigPath, "Configure File Path")
flag.StringVar(&vertexImport, "vertex-import", "", "Import Vertex service account key JSON file")
Expand Down Expand Up @@ -509,6 +513,9 @@ func main() {
} else if githubCopilotLogin {
// Handle GitHub Copilot login
cmd.DoGitHubCopilotLogin(cfg, options)
} else if kilocodeLogin {
// Handle Kilocode login
cmd.DoKilocodeLogin(cfg, options)
} else if codexLogin {
// Handle Codex login
cmd.DoCodexLogin(cfg, options)
Expand All @@ -528,6 +535,8 @@ func main() {
cmd.DoIFlowCookieAuth(cfg, options)
} else if kimiLogin {
cmd.DoKimiLogin(cfg, options)
} else if clineLogin {
cmd.DoClineLogin(cfg, options)
} else if kiroLogin {
// For Kiro auth, default to incognito mode for multi-account support
// Users can explicitly override with --no-incognito
Expand Down
10 changes: 9 additions & 1 deletion config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ quota-exceeded:

# Routing strategy for selecting credentials when multiple match.
routing:
strategy: 'round-robin' # round-robin (default), fill-first
strategy: "round-robin" # round-robin (default), fill-first
mode: "" # "" (default): rotate per provider:model, "key-based": rotate per model only (ignores provider)
# fallback-models: # (optional) auto-fallback on 429/401/5xx errors (chat/completion only)
# gpt-4o: claude-sonnet-4-20250514
# opus: sonnet
# fallback-chain: # (optional) general fallback chain for models not in fallback-models
# - glm-4.7
# - grok-code-fast-1
# fallback-max-depth: 3 # (optional) maximum fallback depth (default: 3)

# When true, enable authentication for the WebSocket API (/v1/ws).
ws-auth: false
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.26.0

require (
github.com/andybalholm/brotli v1.0.6
github.com/denisbrodbeck/machineid v1.0.1
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds github.com/denisbrodbeck/machineid to go.mod, but there are no references to it in the Go codebase. Please remove the dependency (or add the missing usage) to avoid unnecessary supply-chain surface area and keep go.mod tidy.

Suggested change
github.com/denisbrodbeck/machineid v1.0.1

Copilot uses AI. Check for mistakes.
github.com/atotto/clipboard v0.1.4
github.com/charmbracelet/bubbles v1.0.0
github.com/charmbracelet/bubbletea v1.3.10
Expand Down Expand Up @@ -91,8 +92,8 @@ require (
github.com/tidwall/pretty v1.2.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/sys v0.38.0 // indirect
golang.org/x/text v0.31.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc=
golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
Expand Down
Loading