@oyng/opencode-agy-authReverse-engineered Antigravity CLI (Code Assist) OAuth + model provider plugin for opencode, with web search, quota and image tools.
1
713
近 7 天 666
40.0
生态多维模型
1 天前
2026-08-18
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@oyng/opencode-agy-auth@1.1.5"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@oyng/opencode-agy-auth@1.1.5"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @oyng/opencode-agy-authopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
A reverse-engineered client for the Google Antigravity CLI (Agy / Code Assist), bundled as an opencode plugin. It adds OAuth authentication and a google-agy model provider so opencode can call Gemini, Claude, and GPT models through the Code Assist backend, plus web search, quota, and image tools.
Features
- Google OAuth 2.0 (PKCE) — browser authorization with automatic token refresh.
- Model support — Gemini 3.7 / 3.6 / 3.5 / 3.1 Flash & Pro series,
claude-sonnet-4-6,claude-opus-4-6-thinking,gpt-oss-120b-medium. - Tools:
agy_usage— inspect Code Assist quota and limitswebsearch_cited— grounded web search with inlined citations and aSources:listread_url_content— fetch and clean page contentgenerate_image— image generation and editing
- Native context compaction — protocol-aligned summarization and tool-call flattening.
- Thinking-chain fidelity — streaming deduplication, signature self-healing, system-reminder stripping.
Installation
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"@oyng/opencode-agy-auth"
]
}
Debugging
AGY_DEBUG=1 opencode
Logs are written to ./agy_chat_log/ in the working directory.