feat: add auto-installer scripts for Gemini CLI and Qwen Code
- ugemini_install.sh: npm registry setup, Node.js auto-install, retry logic, env vars for all users - uqwen_install.sh: new installer — npm registry, patches, settings, env vars - README.md: add one-line installer commands for Gemini and Qwen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
39
README.md
39
README.md
@@ -108,9 +108,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force
|
||||
|
||||
### Gemini CLI — Install
|
||||
|
||||
**Step 1 — Install patched CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
**Linux / macOS (two commands):**
|
||||
```bash
|
||||
npm config set @google:registry https://npm.sensey24.ru/
|
||||
npm install -g @google/gemini-cli
|
||||
@@ -124,15 +122,11 @@ npm install -g @google/gemini-cli
|
||||
|
||||
> Node.js required. Install from https://nodejs.org/ if not present.
|
||||
|
||||
**Step 2 — Configure settings and environment:**
|
||||
|
||||
Then configure:
|
||||
```bash
|
||||
# Set environment variables
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Configure auth (switch from OAuth to API key)
|
||||
mkdir -p ~/.gemini
|
||||
cat > ~/.gemini/settings.json << 'EOF'
|
||||
{
|
||||
@@ -142,9 +136,17 @@ cat > ~/.gemini/settings.json << 'EOF'
|
||||
EOF
|
||||
```
|
||||
|
||||
**Step 3 — Verify:** `gemini -p "Hello"`
|
||||
Verify: `gemini -p "Hello"`
|
||||
|
||||
See [gemini/README.md](gemini/README.md) for Windows instructions, alternative install methods and details.
|
||||
**Alternative — Automatic installer (installs Node.js, CLI, patches, settings):**
|
||||
|
||||
```bash
|
||||
curl -fsSL -H "Authorization: token cadffcb0a6a3be728ac1ff619bb40c86588f6837" \
|
||||
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/ugemini_install.sh \
|
||||
-o /tmp/ugemini.sh && sudo bash /tmp/ugemini.sh
|
||||
```
|
||||
|
||||
See [gemini/README.md](gemini/README.md) for Windows instructions and details.
|
||||
|
||||
### Codex CLI — Install
|
||||
|
||||
@@ -184,9 +186,7 @@ See [codex/README.md](codex/README.md) for details, troubleshooting, and configu
|
||||
|
||||
### Qwen Code — Install
|
||||
|
||||
**Step 1 — Install patched CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
**Linux / macOS (two commands):**
|
||||
```bash
|
||||
npm config set @qwen-code:registry https://npm.sensey24.ru/
|
||||
npm install -g @qwen-code/qwen-code
|
||||
@@ -200,15 +200,22 @@ npm install -g @qwen-code/qwen-code
|
||||
|
||||
> Node.js required. Install from https://nodejs.org/ if not present.
|
||||
|
||||
**Step 2 — Configure settings and environment:**
|
||||
|
||||
Then configure:
|
||||
```bash
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding/qwen
|
||||
python3 qwen_patcher.py --settings-only
|
||||
```
|
||||
|
||||
**Step 3 — Verify:** `qwen -p "Hello"`
|
||||
Verify: `qwen -p "Hello"`
|
||||
|
||||
**Alternative — Automatic installer (installs Node.js, CLI, patches, settings):**
|
||||
|
||||
```bash
|
||||
curl -fsSL -H "Authorization: token cadffcb0a6a3be728ac1ff619bb40c86588f6837" \
|
||||
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/qwen/uqwen_install.sh \
|
||||
-o /tmp/uqwen.sh && sudo bash /tmp/uqwen.sh
|
||||
```
|
||||
|
||||
See [qwen/README.md](qwen/README.md) for details, models, and troubleshooting.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user