mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
2.2 KiB
2.2 KiB
Droid CLI + ProxyPilot (Windows)
This repo can run a local OpenAI-compatible proxy (ProxyPilot) and configure Factory's droid CLI to use it via BYOK custom models.
One-time setup
- From the repo root, run:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\setup-droid-cliproxy.ps1 -ProxyApiKey "<your-proxy-api-key>"
This will:
- Build
bin\proxypilot-engine.exe(and also writes a back-compat copy asbin\cliproxyapi-latest.exe) - Write
C:\Users\<you>\.factory\config.jsonwith acustom_modelsentry pointing athttp://127.0.0.1:8317/v1
Start / stop the proxy
- Build (recommended after pulling updates):
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\build-cliproxyapi.ps1 - Start:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\start-cliproxy.ps1 - Stop:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\stop-cliproxy.ps1 - Restart:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\restart-cliproxy.ps1
Logs:
logs\proxypilot-engine.out.loglogs\proxypilot-engine.err.log
Auto-start at logon (Windows)
Prefer using ProxyPilot for autostart (it can toggle “Launch on login” in the tray menu), and start/stop the proxy from there.
One-time cleanup (if stop says "Access is denied")
That means the engine was started elevated (commonly via a scheduled task with RunLevel=HighestAvailable), and a normal restart can't kill it.
Run once in an elevated PowerShell:
taskkill /IM proxypilot-engine.exe /Ftaskkill /IM cliproxyapi.exe /F(back-compat)schtasks /Delete /TN "CLIProxyAPI-Logon" /F(if it exists; legacy autostart)
Use it in Droid
- In
droid, run/modeland pickCLIProxy (local) - In non-interactive mode, use:
droid exec --model custom:gpt-5.1 "..."(replace model as needed) scripts\setup-droid-cliproxy.ps1adds severalcustom:<model>entries (e.g.custom:gpt-5.2,custom:gpt-5.1-codex-max,custom:gemini-3-pro-preview)- For reasoning variants, pick a model like
CLIProxy (local): gpt-5.2 (reasoning: high)(this usesgpt-5.2(high)under the hood). gpt-5.1-codex-maxalso has reasoning variants (includingxhigh) likecustom:gpt-5.1-codex-max(xhigh).