auth

auth is a command for Claude Code from backspacevenkat/polydev-claude-code-plugin. It costs 5 tokens per session (704 once invoked), scanned A, original, MIT.

A command that checks whether Polydev is authenticated, showing the account's credits and available tools.

In plain words
What is it for?
Run it to check Polydev authentication and credits, using the available connection or a supplied user token when needed.
Why use it?
It makes it easier to tell whether Polydev access is configured and whether the required tools are available before using them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the polydev plugin — 4 commands shipped together

Good fit Run it to check Polydev authentication and credits, using the available connection or a supplied user token when needed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/backspacevenkat/polydev-claude-code-plugin/auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/backspacevenkat/polydev-claude-code-plugin

Made for: Claude Code.

Or install polydev, the plugin that ships this one along with the rest of its 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auth

README.md
[![agentmods](https://agentmods.dev/badge/commands/backspacevenkat/polydev-claude-code-plugin/auth/github.svg)](https://agentmods.dev/commands/backspacevenkat/polydev-claude-code-plugin/auth)
Your own site
<a href="https://agentmods.dev/commands/backspacevenkat/polydev-claude-code-plugin/auth"><img src="https://agentmods.dev/badge/commands/backspacevenkat/polydev-claude-code-plugin/auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auth

Your own site · 80×15
<a href="https://agentmods.dev/commands/backspacevenkat/polydev-claude-code-plugin/auth"><img src="https://agentmods.dev/badge/commands/backspacevenkat/polydev-claude-code-plugin/auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.00704
Opus 5.5 $0.00002 $0.00282
Sonnet 5.5 $0.00001 $0.00141
Haiku 4.5 $0.00001 $0.00070

Measured today against content hash ada43f3a031f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

auth scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RESULT=$(curl -s -X POST "https://www.polydev.ai/api/mcp" \
plugins/polydev/commands/auth.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/polydev-auth - Check Status

Check your Polydev authentication status and available tools.

Instructions

When the user runs /polydev-auth:

Step 1: Check if MCP tools are available

Look for tools starting with mcp__plugin_polydev_mcp__ in your available tools list.

Step 2a: If MCP tools ARE available

Call the get_auth_status tool:

mcp__plugin_polydev_mcp__get_auth_status({})

If the result says "sandboxed environment" or browser login is unavailable, and the user has a token, pass it directly:

mcp__plugin_polydev_mcp__get_auth_status({ user_token: "pd_user_token_here" })

Step 2b: If MCP tools are NOT available (Cowork / sandboxed environments)

Check authentication status via bash:

# Check if token exists
if [ -n "$POLYDEV_USER_TOKEN" ]; then
  # Verify token with the server
  RESULT=$(curl -s -X POST "https://www.polydev.ai/api/mcp" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $POLYDEV_USER_TOKEN" \
    -d '{"action": "check_status"}')
  echo "$RESULT" | python3 -m json.tool 2>/dev/null || echo "$RESULT"
elif [ -f "$HOME/.polydev.env" ]; then
  # Try loading from file
  source "$HOME/.polydev.env"
  if [ -n "$POLYDEV_USER_TOKEN" ]; then
    RESULT=$(curl -s -X POST "https://www.polydev.ai/api/mcp" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $POLYDEV_USER_TOKEN" \
      -d '{"action": "check_status"}')
    echo "$RESULT" | python3 -m json.tool 2>/dev/null || echo "$RESULT"
  else
    echo "No token found. Run /polydev:login to authenticate."
  fi
else
  echo "Not authenticated. Run /polydev:login to authenticate."
fi

Step 3: Display the results

Show the user:

  • Authentication status (connected/not connected)
  • Account email
  • Configured models
  • If not authenticated, suggest running /polydev:login

Example

User: /polydev-auth

If authenticated:

Polydev Status

Authenticated: Yes Account: [email protected]

Dashboard: https://polydev.ai/dashboard

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -3 lines · -2 tokens per session ada43f3a031f
  2. 2mo ago First seen · 103 lines · 7 tokens per session scan A 94a74999c35d

Subscribe to this mod's changes

auth is a command published in the GitHub repository backspacevenkat/polydev-claude-code-plugin (1 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 704 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

auth compared with commands from other repositories

auth next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
authbackspacevenkat/polydev-claude-code-pluginCommand1todayMITA5Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code
speckit.bug.fixgithub/spec-kitCommand148kyesterdayMITA12Claude Code