vibeproxy icon indicating copy to clipboard operation
vibeproxy copied to clipboard

How do I use Gemini in Factory CLI?

Open Whiteknight07 opened this issue 1 year ago • 6 comments

I have successfully authenticated my gmail account with the vibeproxy app but FACTORY.md doesnt have a config to use gemini 2.5 pro inside of it. So I was wondering how can I use gemini 2.5 pro inside factory cli.

Whiteknight07 avatar Oct 18 '25 01:10 Whiteknight07

@Whiteknight07 Try this config

{
  "custom_models": [
    {
      "model_display_name": "Gemini 2.5 Pro",
      "model": "gemini-2.5-pro",
      "base_url": "http://localhost:8317/v1",
      "api_key": "dummy-not-used",
      "provider": "generic-chat-completion-api"
    },
    {
      "model_display_name": "Gemini 2.5 Flash",
      "model": "gemini-2.5-flash",
      "base_url": "http://localhost:8317/v1",
      "api_key": "dummy-not-used",
      "provider": "generic-chat-completion-api"
    }
  ]
}

dalisoft avatar Oct 25 '25 10:10 dalisoft

Got this as an error @dalisoft

Image

Whiteknight07 avatar Oct 27 '25 22:10 Whiteknight07

Looks like your problem related to those issues

  • https://github.com/router-for-me/CLIProxyAPI/issues/97
  • https://github.com/router-for-me/CLIProxyAPI/issues/102
  • https://github.com/router-for-me/CLIProxyAPI/issues/123
  • https://github.com/router-for-me/CLIProxyAPI/issues/136

On core CLI (cli-proxy-api) project support may fixed it recently. Maybe this project uses old binary of cli-proxy-api, building from source may help or not.

dalisoft avatar Oct 28 '25 23:10 dalisoft

Anyone managed to get Gemini to work successfully in Vibe Proxy by recompiling cli-proxy-api?

appscaptain avatar Nov 19 '25 11:11 appscaptain

✅ Gemini support has been added to VibeProxy!

Working Models (Available Now):

  • gemini-2.5-pro - Most capable production model
  • gemini-2.5-flash - Fast and efficient
  • gemini-2.5-flash-lite - Lightweight and fastest

Setup Instructions:

1. Connect Gemini in VibeProxy:

  • Click the VibeProxy menu bar icon → Open Settings
  • Click "Connect" next to Gemini
  • Sign in with your Google account
  • Select a Google Cloud project (or accept default)

2. Add to Factory config (~/.factory/config.json):

{
  "custom_models": [
    {
      "model_display_name": "Gemini 2.5 Pro",
      "model": "gemini-2.5-pro",
      "base_url": "http://localhost:8317/v1",
      "api_key": "dummy-not-used",
      "provider": "openai"
    },
    {
      "model_display_name": "Gemini 2.5 Flash",
      "model": "gemini-2.5-flash",
      "base_url": "http://localhost:8317/v1",
      "api_key": "dummy-not-used",
      "provider": "openai"
    }
  ]
}

Full details: FACTORY_SETUP.md


About Gemini 3 Pro Preview:

Google's newest model (gemini-3-pro-preview, released Nov 18, 2025) is not yet supported in CLIProxyAPI 6.5.1. It requires the Vertex AI API instead of the standard Generative Language API.

Support is expected in an upcoming CLIProxyAPI release - likely within days. To prepare, enable the Vertex AI API in your Google Cloud project now.


Let us know if you have any issues!

ranaroussi avatar Nov 21 '25 12:11 ranaroussi

Closing as Gemini 2.5 support is now fully documented. See comment above for setup instructions!

ranaroussi avatar Nov 21 '25 12:11 ranaroussi