Skip to content

feat: Gemini CLI 지원 추가 및 문서 보강#3

Open
asyncFlow-dad wants to merge 1 commit into
zoeymakes:mainfrom
asyncFlow-dad:main
Open

feat: Gemini CLI 지원 추가 및 문서 보강#3
asyncFlow-dad wants to merge 1 commit into
zoeymakes:mainfrom
asyncFlow-dad:main

Conversation

@asyncFlow-dad

@asyncFlow-dad asyncFlow-dad commented Jul 14, 2026

Copy link
Copy Markdown

요약

  • Claude, Codex에 이어 Gemini CLI를 세 번째 사용량 소스로 추가 (Pro / Flash / Flash Lite 일일 쿼터, Google Code Assist retrieveUserQuota 사용).
  • 자격증명은 Gemini CLI 자체 Google OAuth 사용(macOS Keychain gemini-cli-oauth, 또는 레거시 ~/.gemini/oauth_creds.json). OAuth client id/secret은 하드코딩 없이 설치된 @google/gemini-cli 패키지에서 런타임 추출.
  • 토큰 갱신은 기본적으로 메모리 전용 (TOKEN_GHOST_GEMINI_WRITEBACK=1로 Keychain/파일 되쓰기 옵트인).
  • Gemini 조회도 Claude 캡처처럼 TTL 캐시 적용 (TOKEN_GHOST_GEMINI_TTL_MIN, 기본 5분) — SwiftBar 폴링마다 Google API/Keychain 두드리지 않도록.
  • README, README.ko, CHANGELOG, 신규 SECURITY.md에 신규 데이터 소스 및 처리 방식 문서화.

Closes #2.

테스트 계획

  • python3 -m py_compile token_ghost.py
  • 수동: gemini CLI 설치 + Google 로그인(/auth) → 메뉴에 Pro/Flash/Flash Lite 바 표시
  • 수동: API-key/Vertex 전용 Gemini 인증 → 메뉴에 바 대신 설정 안내 표시
  • 수동: gemini CLI 미설치 → "gemini CLI not found" 안내 표시

- Introduced support for Gemini CLI, allowing users to view daily quotas for Pro, Flash, and Flash Lite using Google-login credentials.
- Updated README and README.ko.md to reflect Gemini integration and usage instructions.
- Enhanced CHANGELOG.md with detailed notes on new features, privacy improvements, and cleanup tasks.
- Added SECURITY.md to outline the security policy and data handling practices.
- Improved caching and OAuth token management for Gemini, with options for in-memory refresh and write-back to Keychain or legacy credentials.
@asyncFlow-dad asyncFlow-dad changed the title feat: add Gemini CLI support and enhance documentation feat: Gemini CLI 지원 추가 및 문서 보강 Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Gemini CLI 지원 추가 (Pro/Flash/Flash Lite 쿼터)

1 participant