[GH-ISSUE #72] 在无 GUI 的服务端配置 Gemini 时控制台没有打印出授权链接,而是提示在默认浏览器中打开 #61

Closed
opened 2026-02-27 07:17:45 +03:00 by kerem · 1 comment
Owner

Originally created by @ReiSuzunami on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/72

[Config Error] Failed to load config.json: ENOENT: no such file or directory, open 'config.json'
[Config] Using default configuration.
[System Prompt] Specified system prompt file not found: /opt/AIClient-2-API/input_system_prompt.txt
[Initialization] No provider pools configured. Using single provider mode.
[Initialization] Initializing single service adapter for gemini-cli-oauth...
[Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined
--- Unified API Server Configuration ---
  Primary Model Provider: gemini-cli-oauth
  [gemini-cli-oauth] OAuth Creds: Default discovery
  System Prompt File: /opt/AIClient-2-API/input_system_prompt.txt
  System Prompt Mode: append
  Host: localhost
  Port: 3000
  Required API Key: 123456
  Prompt Logging: none
------------------------------------------

Unified API Server running on http://localhost:3000
Supports multiple API formats:
  • OpenAI-compatible: /v1/chat/completions, /v1/responses, /v1/models
  • Gemini-compatible: /v1beta/models, /v1beta/models/{model}:generateContent
  • Claude-compatible: /v1/messages
  • Health check: /health
  • UI Management Console: http://localhost:3000/
[UI] Opened login page in default browser

这台服务器上没有安装任何图形化界面或浏览器,请问我该如何获取到 Gemini 授权链接呢?

Originally created by @ReiSuzunami on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/72 ``` [Config Error] Failed to load config.json: ENOENT: no such file or directory, open 'config.json' [Config] Using default configuration. [System Prompt] Specified system prompt file not found: /opt/AIClient-2-API/input_system_prompt.txt [Initialization] No provider pools configured. Using single provider mode. [Initialization] Initializing single service adapter for gemini-cli-oauth... [Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined --- Unified API Server Configuration --- Primary Model Provider: gemini-cli-oauth [gemini-cli-oauth] OAuth Creds: Default discovery System Prompt File: /opt/AIClient-2-API/input_system_prompt.txt System Prompt Mode: append Host: localhost Port: 3000 Required API Key: 123456 Prompt Logging: none ------------------------------------------ Unified API Server running on http://localhost:3000 Supports multiple API formats: • OpenAI-compatible: /v1/chat/completions, /v1/responses, /v1/models • Gemini-compatible: /v1beta/models, /v1beta/models/{model}:generateContent • Claude-compatible: /v1/messages • Health check: /health • UI Management Console: http://localhost:3000/ [UI] Opened login page in default browser ``` 这台服务器上没有安装任何图形化界面或浏览器,请问我该如何获取到 Gemini 授权链接呢?
kerem closed this issue 2026-02-27 07:17:45 +03:00
Author
Owner

@ReiSuzunami commented on GitHub (Nov 13, 2025):

没事了,我理解错 Wiki 了,以为这个链接是本项目生成的,原来是要用 Gemini CLI 生成

<!-- gh-comment-id:3525464439 --> @ReiSuzunami commented on GitHub (Nov 13, 2025): 没事了,我理解错 Wiki 了,以为这个链接是本项目生成的,原来是要用 Gemini CLI 生成
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#61
No description provided.