Skip to content
Agentmart
Submit a tool

agytoggle

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

Skill by stevengonsalvez

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/stevengonsalvez-agytoggle

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agytoggle

What's inside

Skill name
agytoggle
Description
Multi-account credential manager and profile switcher for the Antigravity CLI (agy).
License
MIT
Instructions
57 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Commands

```bash
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

```bash
# ~/.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`.

From stevengonsalvez/ainb-toolkit, MIT.

More from stevengonsalvez/ainb-toolkit

Signals

Stars
1
Forks
1
Open issues
4
Last commit (this folder)
Oct 5, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from stevengonsalvez

Cite this page

agytoggle skill. Agent Mart. https://agentmart.dev/skills/stevengonsalvez-agytoggle (last updated 2026-10-24)