Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By devxoulv0.5.0MITIn 1 marketplace
Lets you run Google Workspace CLI calls across several accounts, with each call pinned to its own config directory. A PreToolUse hook on every Bash call blocks gws commands missing that directory and foreground gws auth login.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
gws-cli, multi-account, google-accounts, oauth-login, command-guardrail, pretooluse-hook, gmail, gws ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Multi-account management for gws, the Google Workspace CLI. A monorepo shipping plugins for four coding agents out of one shared core:
gws calls, installed via the bundled marketplace (git clone).tool.execute.before hook and auto-registered skill, published to npm as opencode-gws-multi-account.tool.before hook and a contributed skill, published to npm as typeclaw-gws-multi-account.tool_call extension hook and a bundled skill, published to npm as omo-gws-multi-account.All four plugins share the same enforcement logic (packages/core) and the same SKILL.md. One source tree, four targets.
The gws CLI reads GOOGLE_WORKSPACE_CLI_CONFIG_DIR to pick which account's credentials to use. The simplest way to juggle multiple accounts is to put each account's credentials in its own subdirectory and point the env var at the right one:
GOOGLE_WORKSPACE_CLI_CONFIG_DIR=~/.config/gws/[email protected] gws auth login
GOOGLE_WORKSPACE_CLI_CONFIG_DIR=~/.config/gws/[email protected] gws auth login
That gives you a per-account layout:
~/.config/gws/
├── [email protected]/
│ ├── client_secret.json
│ ├── credentials.enc
│ └── token_cache.json
└── [email protected]/
├── client_secret.json
├── credentials.enc
└── token_cache.json
And from then on, every call names its account explicitly:
GOOGLE_WORKSPACE_CLI_CONFIG_DIR=~/.config/gws/[email protected] gws gmail ...
GOOGLE_WORKSPACE_CLI_CONFIG_DIR=~/.config/gws/[email protected] gws gmail ...
This works — but it's easy for an agent to forget the prefix, and when it does, gws silently falls back to the default account and writes to the wrong inbox / calendar / drive. This package is the guardrail: a hook that inspects every gws invocation and blocks any call missing the env var with an explanatory message the agent can act on. The layout above becomes a contract; the agent picks the account from ~/.config/gws/accounts.json and the hook makes sure it actually did.
It also blocks a second footgun: foreground gws auth login. That command starts an interactive OAuth callback server and blocks until a browser redirect completes; the agent shell's ~60s command timeout kills it mid-flow and leaves the user with a dead URL. The hook catches this and points the agent at the background-spawn flow in references/auth-login.md. Legitimate background spawns (... gws auth login ... & or nohup gws auth login ... &) pass through unchanged.
See skills/gws-multi-account/SKILL.md for the full layout contract.
/plugin marketplace add devxoul/gws-multi-account
/plugin install gws-multi-account@gws-multi-account
Add to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gws-multi-account"]
}
The plugin registers its bundled skill at runtime through opencode's config hook — your config files are never modified.
Add the package to plugins[] in your typeclaw.json:
{
"plugins": ["typeclaw-gws-multi-account"]
}
The plugin's plugin factory contributes a tool.before hook (same enforcement as the other hosts) and the bundled gws-multi-account skill via skillsDirs. Restart the agent to load it.
omo install npm:omo-gws-multi-account
The package is a standard senpi/pi package: its package.json pi manifest loads dist/extension.js (a tool_call hook that blocks offending bash calls) and the bundled skills/ directory. Add -l to install it for the current project only.
VAR=value gws ... prefix (Git Bash, WSL), the hook accepts the env var set earlier in the same command in PowerShell ($env:GOOGLE_WORKSPACE_CLI_CONFIG_DIR = "..."; gws ...) and cmd (set "GOOGLE_WORKSPACE_CLI_CONFIG_DIR=..." && gws ...), and treats gws.exe as gws. The Claude Code plugin may not load: Claude Code did not expand ${CLAUDE_PLUGIN_ROOT} in hooks.json on Windows (anthropics/claude-code#32486, auto-closed as inactive without a fix), so the hook path may never resolve. That is variable interpolation inside Claude Code, not this package.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub devxoul/gws-multi-account --plugin gws-multi-accountPlugins from other owners that cover similar ground