项目
在 GitHub 查看
pranrichh/gemini-canvas-proxy
关于
Free unlimited Gemini API for any OpenAI-compatible app.
人工智能与机器学习可以做什么
- Chat completions with tool calling, multimodal input, and image generation
- Compatible with Hermes Agent, OpenClaw, Opencode, OMP, the OpenAI SDK, curl
- Bearer auth, loopback-only by default
- Private MessageChannel bridge — no WebSocket, immune to Chrome's Local Network Access restrictions
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Turns a free Gemini Canvas session into a local OpenAI-compatible endpoint at http://127.0.0.1:8765/v1. Point any OpenAI client at it, use the generated token as the API key.
Quick start
git clone https://github.com/pranrichh/gemini-canvas-proxy.git
cd gemini-canvas-proxy
./setup.sh # Windows: .\setup.ps1
- Load the extension:
chrome://extensions→ Developer mode → Load unpacked →extension/. Paste the Extension ID when the setup script asks. - Open gemini.google.com → Canvas → "Create an HTML web app" → paste
canvas-proxy.htmlinto the code view → Preview. - Test:
PROXY_TOKEN="$(cat native_host/.proxy_token)"
curl http://127.0.0.1:8765/v1/chat/completions \
-H "Authorization: Bearer $PROXY_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"model":"gemini-3-flash-preview","messages":[{"role":"user","content":"Hello"}]}'
Docker: docker compose up -d --build, then noVNC at http://127.0.0.1:6080.
Features
- Chat completions with tool calling, multimodal input, and image generation
- Compatible with Hermes Agent, OpenClaw, Opencode, OMP, the OpenAI SDK, curl
- Bearer auth, loopback-only by default
- Private MessageChannel bridge — no WebSocket, immune to Chrome's Local Network Access restrictions
Architecture · API · Configuration · Deployment · Security · Troubleshooting · Integrations
License
MIT — using Canvas credentials outside Canvas may violate Google's Terms of Service.
探索相关项目
加载中…