- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| lib | ||
| vendor | ||
| .gitignore | ||
| index.js | ||
| package.json | ||
| README.md | ||
duh-agy-auth
Native Antigravity (Google Cloud Code Assist) OAuth provider plugin for OpenCode. Serves both
Gemini and Claude model families through a single Google account, and includes a google_search
tool for real-time web search and URL analysis.
Install
git clone <repo-url>
opencode.jsonc:
{ "plugin": ["file:<clone-dir>/duh-agy-auth"] }
Restart opencode. No install, no build, zero dependencies. Models are declared in your
opencode.jsonc provider.google block.
Auth
opencode auth login opens an account-first manager: pick an account to act on it (switch /
deactivate / reactivate / remove), or Add account to browser-login — with an "Add another
account? (y/n)" loop for bulk import.
opencode auth logout is native.
Accounts store
~/.config/opencode/duh-agy-accounts.json — plugin-private store. The active account is mirrored
into auth.json, which remains the session source of truth.
Commands
| Command | Effect |
|---|---|
/agy or /agy list |
list accounts, active marker, token TTL |
/agy use accN|email |
switch active account (refreshes first) |
/agy status [acc] |
active account email, project id, token TTL |
google_search is on by default; opt out with ["file:<clone-dir>/duh-agy-auth", { "google_search": false }].
Env
OPENCODE_CONFIG_DIR(account store location, default~/.config/opencode)XDG_DATA_HOME(auth mirror location, default~/.local/share)