AGENT SKILL

agytoggle

Multi-account credential manager and profile switcher for the Antigravity CLI (agy).

License 许可
MIT
最近更新
2026-11-12
Stars
★ 1
Forks
1

01 前言 Front Matter

name
agytoggle
description
Multi-account credential manager and profile switcher for the Antigravity CLI (agy).

03 SKILL.md 正文

Commands

agytoggle list                                # show all accounts + status
agytoggle current                             # show active account
agytoggle switch <index|email>                # switch to specific account
agytoggle rotate                              # advance to next healthy account (uses saved strategy)
agytoggle rotate --strategy=<s>               # one-time: round-robin | random | sticky | least-used
agytoggle rotate --force                      # advance even if only one healthy account
agytoggle strategy [round-robin|random|sticky|least-used]  # view or set default strategy
agytoggle cooldown [hours=4]                  # mark current exhausted, rotate to next
agytoggle import                              # import active session into pool
agytoggle login                               # authenticate new account via browser OAuth
agytoggle auth-url [port=8085]                # print clean single-line OAuth authorization URL
agytoggle copy-url [port=8085]                # copy OAuth URL to clipboard via OSC 52
agytoggle open [port=8085]                    # open OAuth URL directly in Orca browser tab
agytoggle code <code|url>                     # exchange auth code or redirect URL directly
agytoggle add <email> <refreshToken>          # add account with refresh token to pool
agytoggle remove <index|email>                # remove account from pool

(Note: agysw is supported as a direct CLI alias for agytoggle)

Shell integration

# ~/.zshrc or ~/.bashrc
agy() {
  agytoggle rotate > /dev/null 2>&1
  /path/to/agy "$@"
}

agycool() { agytoggle cooldown "${1:-4}"; }  # call when quota hit

Rotation strategies

Strategy Behavior
round-robin Advance to next healthy in sequence, wrap around (default)
random Pick random healthy account
sticky Stay on current if healthy, switch only when exhausted
least-used Pick healthy account with oldest lastUsed timestamp

How it works

agy reads its active session from ~/.gemini/antigravity-cli/antigravity-oauth-token (and system keyring). agytoggle refreshes OAuth token for target account and writes credential envelope to both token file and platform keyring.

Config

Default accounts database: ~/.gemini/antigravity-cli/antigravity-accounts.json. Override with AGYTOGGLE_ACCOUNTS_PATH or AGYSW_ACCOUNTS_PATH. Active token location: ~/.gemini/antigravity-cli/antigravity-oauth-token. Override with AGYTOGGLE_TOKEN_PATH or AGYSW_TOKEN_PATH.

04 同仓库更多 Skills

stevengonsalvez
stevengonsalvez/ainb-toolkit

well-formed

Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.

★ 1
stevengonsalvez
stevengonsalvez/ainb-toolkit

underscore-tools

Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.

★ 1
stevengonsalvez
stevengonsalvez/ainb-toolkit

no-frontmatter

暂无简介

★ 1
stevengonsalvez
stevengonsalvez/ainb-toolkit

long-description

Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.

★ 1
stevengonsalvez
stevengonsalvez/ainb-toolkit

some-other-name

Fixture skill whose frontmatter name does not match its parent directory name.

★ 1
stevengonsalvez
stevengonsalvez/ainb-toolkit

bad_Name

Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.

★ 1