feat: add Windows PowerShell installers for Codex and Qwen, fix BOM issue
- codex/ucodex_install.ps1: downloads Rust binary from GitHub + patches config - qwen/uqwen_install.ps1: npm install + patcher + env vars - gemini/ugemini_install.ps1: fix UTF-8 BOM in settings.json (Set-Content → WriteAllText) - README.md: add Windows CMD/PowerShell configure instructions for Gemini, Codex, Qwen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
60
README.md
60
README.md
@@ -122,7 +122,7 @@ npm install -g @google/gemini-cli
|
||||
|
||||
> Node.js required. Install from https://nodejs.org/ if not present.
|
||||
|
||||
Then configure:
|
||||
Then configure (Linux / macOS):
|
||||
```bash
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
@@ -136,46 +136,64 @@ cat > ~/.gemini/settings.json << 'EOF'
|
||||
EOF
|
||||
```
|
||||
|
||||
Then configure (Windows — run in **PowerShell**, not CMD):
|
||||
```powershell
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
$d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d | Out-Null
|
||||
[System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"}},"telemetry":{"enabled":false,"logPrompts":false}}')
|
||||
```
|
||||
|
||||
Or use CMD:
|
||||
```cmd
|
||||
setx GEMINI_API_KEY "ClauderAPI"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
mkdir "%USERPROFILE%\.gemini" 2>nul
|
||||
echo {"security":{"auth":{"selectedType":"gemini-api-key"}},"telemetry":{"enabled":false,"logPrompts":false}} > "%USERPROFILE%\.gemini\settings.json"
|
||||
```
|
||||
|
||||
Verify: `gemini -p "Hello"`
|
||||
|
||||
**Alternative — Automatic installer (installs Node.js, CLI, patches, settings):**
|
||||
|
||||
Linux / macOS:
|
||||
```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.
|
||||
Windows (PowerShell as Administrator):
|
||||
```powershell
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding
|
||||
powershell -ExecutionPolicy Bypass -File gemini\ugemini_install.ps1
|
||||
```
|
||||
|
||||
See [gemini/README.md](gemini/README.md) for details.
|
||||
|
||||
### Codex CLI — Install
|
||||
|
||||
> Codex CLI is a compiled Rust binary (not npm). Install via GitHub releases.
|
||||
|
||||
**Step 1 — Clone repo and install binary:**
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding/codex
|
||||
cp codex_config.example.json codex_config.json
|
||||
# Edit codex_config.json — set your base_url and api_key
|
||||
```
|
||||
|
||||
**Step 2 — Install + patch:**
|
||||
|
||||
```bash
|
||||
sudo bash ucodex_install.sh
|
||||
```
|
||||
|
||||
Or manually:
|
||||
```bash
|
||||
sudo bash update-codex.sh # Install/update binary
|
||||
sudo python3 codex_patcher.py --apply # Apply config patches
|
||||
**Windows (PowerShell as Administrator):**
|
||||
```powershell
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding
|
||||
powershell -ExecutionPolicy Bypass -File codex\ucodex_install.ps1
|
||||
```
|
||||
|
||||
**Step 3 — Verify:** `codex exec "Hello"`
|
||||
Verify: `codex exec "Hello"`
|
||||
|
||||
**Update:**
|
||||
**Update (Linux):**
|
||||
```bash
|
||||
cd unlimitedcoding/codex
|
||||
git pull
|
||||
@@ -209,14 +227,22 @@ python3 qwen_patcher.py --settings-only
|
||||
|
||||
Verify: `qwen -p "Hello"`
|
||||
|
||||
**Alternative — Automatic installer (installs Node.js, CLI, patches, settings):**
|
||||
**Alternative — Automatic installer:**
|
||||
|
||||
Linux / macOS:
|
||||
```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
|
||||
```
|
||||
|
||||
Windows (PowerShell as Administrator):
|
||||
```powershell
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding
|
||||
powershell -ExecutionPolicy Bypass -File qwen\uqwen_install.ps1
|
||||
```
|
||||
|
||||
See [qwen/README.md](qwen/README.md) for details, models, and troubleshooting.
|
||||
|
||||
### Manual install from release
|
||||
|
||||
Reference in New Issue
Block a user