[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108779":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":12,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},108779,"agy-auth","fikrilal\u002Fagy-auth","fikrilal","Multi-account switcher for Google Antigravity CLI & Desktop (agy)",null,"Go",101,18,52,1,0,4,40,24,64.69,"MIT License",false,"main",true,[25,26,27,28,29,30,31],"account-switcher","agy","agy-cli","antigravity","cli","golang","oauth","2026-11-23 06:41:13","2026-11-23 17:42:36","# agy-auth\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@fikrilal\u002Fagy-auth?label=npm)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@fikrilal\u002Fagy-auth)\n[![CI](https:\u002F\u002Fgithub.com\u002Ffikrilal\u002Fagy-auth\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ffikrilal\u002Fagy-auth\u002Factions\u002Fworkflows\u002Fci.yml)\n[![license](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Ffikrilal\u002Fagy-auth)](LICENSE)\n\n`agy-auth` is an unofficial multi-account switcher for [Google Antigravity CLI](https:\u002F\u002Fantigravity.google\u002Fdocs\u002Fcli\u002Foverview) (`agy`). Keep personal, work, and test accounts side by side, switch the live credential, and see plan and quota limits without signing in again.\n\n![Interactive Account Switcher](assets\u002Fdemo-switch.png)\n\n## Highlights\n\n- Switch accounts by row number, alias, email, or account ID.\n- See plan, 5-hour, weekly, group, and reset columns in `list` and `switch`.\n- Automatically rotate to accounts with remaining 5-hour quota with `agy-auth rotate`.\n- Compare Antigravity quota groups with `agy-auth usage` and `usage --all`.\n- Use live views with automatic switching away from exhausted groups.\n- Keep encrypted account snapshots and automatic backups.\n\n## Install\n\nnpm is the recommended install:\n\n```shell\nnpm install -g @fikrilal\u002Fagy-auth\nagy-auth version\n```\n\nRun it without a global install:\n\n```shell\nnpx @fikrilal\u002Fagy-auth list\n```\n\n> The unscoped npm name `agy-auth` is an unrelated project. Install `@fikrilal\u002Fagy-auth`; it provides the `agy-auth` command.\n\n## Quick start\n\n```shell\n# Add an account directly through Google OAuth.\nagy-auth login --alias personal\n\n# Already signed in with agy? Save that account instead:\n# agy-auth add --alias personal\n\n# Add a second account.\nagy-auth login --alias work\n\n# Inspect and switch.\nagy-auth list\nagy-auth switch work\n\n# Toggle back to the previous account.\nagy-auth switch -\n```\n\nAfter switching, restart `agy`; a running session keeps the old credential in memory. By default, `agy-auth switch` updates both the CLI credential and Antigravity Desktop profile; use `--relaunch` to restart Desktop automatically.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `agy-auth list [--active] [--no-sync] [--no-usage] [--live]` | List accounts, plan, and quota |\n| `agy-auth add [--alias \u003Calias>] [--target all\\|cli\\|desktop]` | Save the account signed in to agy or Desktop |\n| `agy-auth login [--alias \u003Calias>] [--no-browser] [--via-agy]` | Add an account through Google OAuth |\n| `agy-auth switch [\u003Cquery>\\|-] [--live] [--target all\\|cli\\|desktop] [--relaunch]` | Switch interactively, by query, or to the previous account |\n| `agy-auth rotate [--target all\\|cli\\|desktop] [--relaunch] [--force]` | Automatically switch to an account with remaining quota |\n| `agy-auth remove [\u003Cquery>...] [--all] [--logout] [--yes] [--live]` | Remove stored accounts |\n| `agy-auth alias set \u003Cquery> \u003Calias>` | Set an alias |\n| `agy-auth alias clear \u003Cquery>` | Clear an alias |\n| `agy-auth alias list` | List aliases |\n| `agy-auth current` | Print the live agy account |\n| `agy-auth status` | Show storage paths and credential health |\n| `agy-auth usage [\u003Cquery>] [--all]` | Show or compare quota groups |\n| `agy-auth config live [--interval \u003Cseconds>]` | Show or set the live refresh interval |\n| `agy-auth import \u003Cfile-or-dir> [--alias \u003Calias>] [--activate]` | Import credential JSON |\n| `agy-auth import --purge` | Rebuild the registry from stored snapshots |\n| `agy-auth export [--dir \u003Cdirectory>] [\u003Cquery>...]` | Export credentials |\n| `agy-auth path` | Print storage locations |\n| `agy-auth clean [--dry-run]` | Prune old backups and orphan snapshots |\n| `agy-auth version [--check]` | Print the version; `--check` queries the latest release |\n\nQueries match row number, account ID, alias, email, or account ID prefix.\n\nGlobal options: `--json` for machine-readable output and `--no-color` to disable colors. See the [user guide](docs\u002Fuser-guide.md#json-output) for JSON details.\n\n## Quota and live views\n\n`agy-auth list` shows the current plan and the 5-hour\u002Fweekly quota groups, including reset times. `agy-auth usage --all` shows every group for every stored account:\n\n![Quota Groups Comparison](assets\u002Fdemo-usage.png)\n\n```shell\nagy-auth usage --all\n```\n\nFor an interactive view:\n\n```shell\nagy-auth list --live\nagy-auth switch --live\nagy-auth remove --live\n```\n\nIn `switch --live`, pressing Enter switches and keeps the view open. The view can also switch automatically when a quota group is exhausted. See the [user guide](docs\u002Fuser-guide.md#quota-and-live-views) for keys and details.\n\n## Updates\n\n`agy-auth` checks the latest npm release at most once every 24 hours. On an interactive terminal it offers to update in place; otherwise it prints the update command. Run:\n\n```shell\nagy-auth version --check\n```\n\nto check immediately. Disable automatic checks with `AGY_AUTH_NO_UPDATE_CHECK=1`. npm installs update through npm; standalone binaries verify the release checksum before replacing themselves.\n\n## Storage and safety\n\n`agy-auth` uses the same credential storage as `agy` (OS keyring with a file fallback). Account snapshots and active-credential backups are encrypted with AES-256-GCM. `agy-auth path` prints the storage locations.\n\n> Back up `~\u002F.config\u002Fagy-auth\u002Fencryption.key` separately. Without it, encrypted snapshots cannot be recovered. Exported credentials are plaintext; delete them after use.\n\nSee [Security](SECURITY.md) and the [user guide](docs\u002Fuser-guide.md#storage-and-switching) for the trust model and recovery details.\n\n## Requirements\n\n- Antigravity CLI installed. `agy-auth login` adds accounts directly; it uses the installed CLI to discover the OAuth client. Signing in to `agy` first is only needed for `agy-auth add` and for running `agy` after a switch.\n- Linux, macOS, or Windows. Linux uses a Secret Service provider when available and otherwise falls back to file storage.\n- Node.js 18+ for the npm package. The package bundles prebuilt binaries, so no Go toolchain is required.\n\n## Learn more\n\n- [User guide](docs\u002Fuser-guide.md) — storage, quota, OAuth, JSON, environment variables\n- [Security](SECURITY.md) — credential handling and reporting\n- [Internals](docs\u002Finternals.md) — implementation details\n- [Contributing](CONTRIBUTING.md) and [Development](docs\u002Fdevelopment.md) — building and testing\n- [Release process](docs\u002Frelease.md) and [Changelog](CHANGELOG.md)\n- [Documentation index](docs\u002FREADME.md)\n\n## Disclaimer\n\nThis project is not affiliated with Google. Use it at your own risk. The default OAuth login uses the same public client as Antigravity CLI; review Google's terms and your account policies before using it with a work or enterprise account.\n","agy-auth 是一个为 Google Antigravity CLI（agy）设计的多账号切换工具，支持在个人、工作和测试等不同 Google 账户间快速切换认证凭据。核心功能包括按别名\u002F邮箱\u002F序号切换账户、实时查看各账户的配额（5小时、周限额、分组限额等）、自动轮转至仍有配额的账户（rotate），以及加密存储账户快照与自动备份。它通过 OAuth 集成获取凭证，同步更新 CLI 与 Antigravity 桌面端配置，并可选自动重启桌面应用。适用于频繁使用多个 Google 账户调用 Antigravity API 的开发者或测试人员，提升多环境验证与配额管理效率。",2,"2026-11-24 04:35:14","CREATED_QUERY"]