auth

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

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.

agentmods
npx agentmods add commands/backspacevenkat/polydev-claude-code-plugin/auth
Clone the repo
git clone --depth 1 https://github.com/backspacevenkat/polydev-claude-code-plugin
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 725 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00007 $0.00725
Opus 5 $0.00003 $0.00362
Sonnet 5 $0.00001 $0.00145
Haiku 4.5 $0.00001 $0.00072

Measured yesterday against content hash 94a74999c35d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 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, credits, 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
  • Credits remaining
  • Subscription tier
  • If not authenticated, suggest running /polydev:login

Example

User: /polydev-auth

If authenticated:

Polydev Status

Authenticated: Yes Account: [email protected] Credits: 9,500 Tier: Premium

Dashboard: https://polydev.ai/dashboard

Read the full file on GitHub · 103 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. yesterday 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 (0 stars, last pushed 5mo ago), licensed MIT. It adds 7 tokens to every session and 725 once invoked, about $0.0000 per session on Opus 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.