feat: add Gemini CLI Patcher to unlimitedcoding
- New gemini/ section with patcher, config, installers - One-line install: curl | sudo bash - 6 patch targets (API URLs, auth, telemetry, env vars) - Supports gemini-2.5-pro/flash, gemini-3-pro/flash-preview - Updated Products table: Gemini CLI → Active (v0.29.5) - README in English and Russian Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
83
gemini/README.md
Normal file
83
gemini/README.md
Normal file
@@ -0,0 +1,83 @@
|
||||
# Gemini CLI — Patched
|
||||
|
||||
<!-- VERSION_BADGE:START -->
|
||||
Patched Gemini CLI for use with custom API endpoints.
|
||||
Latest: **v0.29.5** (6 patches).
|
||||
<!-- VERSION_BADGE:END -->
|
||||
|
||||
## One-Line Install
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/ugemini_install.sh | sudo bash
|
||||
```
|
||||
|
||||
This will:
|
||||
1. Check prerequisites (Node.js >= 20, Python3)
|
||||
2. Install `@google/gemini-cli` if not present
|
||||
3. Download and apply 6 patches
|
||||
4. Configure auth and env vars
|
||||
5. Verify with a test prompt
|
||||
|
||||
## Manual Install
|
||||
|
||||
```bash
|
||||
# 1. Install Gemini CLI
|
||||
npm install -g @google/gemini-cli
|
||||
|
||||
# 2. Download patcher
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/gemini_patcher.py -o /tmp/gemini_patcher.py
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/gemini_config.json -o /tmp/gemini_config.json
|
||||
|
||||
# 3. Apply patches
|
||||
sudo python3 /tmp/gemini_patcher.py --apply --config /tmp/gemini_config.json
|
||||
|
||||
# 4. Test
|
||||
gemini -p "Hello"
|
||||
```
|
||||
|
||||
## What Gets Patched
|
||||
|
||||
| # | Target | What |
|
||||
|---|--------|------|
|
||||
| 1 | `gemini_base_url` | Route API through proxy |
|
||||
| 2 | `vertex_base_url` | Route Vertex AI through proxy |
|
||||
| 3 | `sanitize_env_url` | Allow URLs in .env files |
|
||||
| 4 | `auth_env_whitelist` | Allow proxy URL in sandbox |
|
||||
| 5 | `user_settings` | Set API key auth, disable telemetry |
|
||||
| 6 | `system_env` | Inject env vars |
|
||||
|
||||
## Available Models
|
||||
|
||||
- `gemini-2.5-pro` — Main production model
|
||||
- `gemini-2.5-flash` — Fast model (default)
|
||||
- `gemini-2.5-flash-lite` — Fastest, lightweight
|
||||
- `gemini-3-pro-preview` — Next generation (preview)
|
||||
- `gemini-3-flash-preview` — Next gen Flash (preview)
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
**"GEMINI_API_KEY not set"**
|
||||
```bash
|
||||
export GEMINI_API_KEY="ClauderAPI"
|
||||
export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"
|
||||
```
|
||||
|
||||
**"IneligibleTierError"**
|
||||
Settings still using OAuth. Re-run patcher:
|
||||
```bash
|
||||
python3 gemini_patcher.py --settings-only
|
||||
```
|
||||
|
||||
**Rollback**
|
||||
```bash
|
||||
sudo python3 gemini_patcher.py --rollback
|
||||
```
|
||||
|
||||
## Files
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `gemini_patcher.py` | Main patcher — detects Gemini CLI, applies 6 patches |
|
||||
| `gemini_config.json` | Config — proxy URL, API key, models |
|
||||
| `ugemini_install.sh` | One-line installer |
|
||||
| `releases/index.json` | Version index |
|
||||
Reference in New Issue
Block a user