跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    yynag

    Agy Auth

    v1.1.5认证与凭证
    @oyng/opencode-agy-auth

    Reverse-engineered Antigravity CLI (Code Assist) OAuth + model provider plugin for opencode, with web search, quota and image tools.

    GitHub 星标

    1

    月装机量

    713

    近 7 天 666

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    npm version License: MIT

    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 limits
      • websearch_cited — grounded web search with inlined citations and a Sources: list
      • read_url_content — fetch and clean page content
      • generate_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.

    License

    MIT © 2026 oyng · Source