pinme-auth

pinme-auth is a skill for Claude Code, Codex from glitternetwork/pinme. It costs 44 tokens per session (3,177 once invoked), scanned A, original, MIT.

A TypeScript guide for connecting a PinMe Worker to PinMe’s user-authentication service. It covers email/password accounts, identity-token checks, user lookups, and user lists.

In plain words
What is it for?
Use it when a PinMe Worker needs to create or inspect users, verify identity tokens, or call the authentication proxy API.
Why use it?
It removes the need to work out the required credentials, request fields, response shapes, and common errors for these authentication calls.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { public_client_config } from '../utils/config'.

not rated 3.8krepo +8 1mo ago A scan Socket: passSnyk: passSkillSpector: pass 44 tokens original MIT

Good fit Use it when a PinMe Worker needs to create or inspect users, verify identity tokens, or call the authentication proxy API.

Compare 6 skills from other repositories ↓
About the project

PinMe is a zero-configuration command-line tool for creating and deploying full-stack web projects with a frontend, Worker backend, and database, as well as uploading static sites. Developers and coding agents use it to launch or update frontend applications and their supporting services from one command. Its catalogue skills and instructions describe agent workflows for deploying with PinMe.

glitternetwork/pinme · 3,754 stars · on GitHub · pinme.eth.limo

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/glitternetwork/pinme
agentmods
npx agentmods add skills/glitternetwork/pinme/pinme-auth

Made for: Claude Code, Codex.

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 pinme-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-auth/github.svg)](https://agentmods.dev/skills/glitternetwork/pinme/pinme-auth)
Your own site
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-auth"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-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 pinme-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-auth"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,177 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.03177
Opus 5.5 $0.00018 $0.01271
Sonnet 5.5 $0.00009 $0.00635
Haiku 4.5 $0.00004 $0.00318

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

Security

Grade A, and why

pinme-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 1mo ago.

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.

const resp = await fetch(url.toString(), { method: 'GET', headers: { 'X-API-Key': env.API_KEY } });
skills/pinme-auth/SKILL.md · 367 lines

How it starts

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

PinMe Worker Auth API Integration

Guides how to call PinMe platform's Identity Platform auth proxy APIs in a PinMe Worker (TypeScript).

Environment Variables

// backend/src/worker.ts
export interface Env {
  DB: D1Database;
  API_KEY: string;       // 项目 API Key — 用于所有 auth 接口认证
  PROJECT_NAME: string;  // 项目名 — 所有 auth 接口必须同时传递
  BASE_URL?: string;     // 可选,默认 https://pinme.cloud
}

API_KEY 和 PROJECT_NAME 是所有 auth 接口的必填凭证,缺一不可。


认证方式(所有接口通用)

参数 传递方式 必填 说明
X-API-Key 请求头 是 项目 API Key
project_name Query 参数 是 必须与 X-API-Key 对应同一个项目

服务端会先校验这两个字段是否匹配同一个项目,再从项目配置中取出 tenant_id,然后转调 Identity Platform。


通用错误

场景 HTTP data.error
缺少 X-API-Key 401 X-API-Key header is required
缺少 project_name 400 project_name is required
API Key 和项目不匹配 401 Invalid API key or project name
项目未配置认证租户 400 Auth service not configured for this project

通用 TypeScript 类型

type ApiEnvelope<T> = {
  code: number   // 200=成功,其他=失败
  msg: string    // "ok" | "fail" | "invalid param"
  data: T
}

type ApiErrorData = { error?: string }

type UserInfo = {
  uid: string
  email: string
  display_name: string
  photo_url?: string
  disabled: boolean
  email_verified: boolean
}

API 1: 创建用户

Endpoint: POST {BASE_URL}/api/v1/auth/create_user?project_name={project_name}

仅用于邮箱密码注册。成功时用户已创建且验证邮件已发出;失败时自动回滚,不会留下僵尸账号。

创建成功后用户默认仍是"未验证"状态,需点击邮件验证链接后,verify_token 才能通过校验。

请求体

{ "email": "[email protected]", "password": "Test@12345678", "display_name": "Alice" }
字段 类型 必填
email string 是
password string 是
display_name string 否

错误

场景 HTTP data.error
缺少 email/password 400 email and password are required
上游创建失败 502 Failed to create user
发送验证邮件失败 500 Failed to send verification email. Please try again.

Read the full file on GitHub · 367 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. 1mo ago First seen · 367 lines · 44 tokens per session scan A f4f52a6a8e45

Subscribe to this mod's changes

pinme-auth is a skill published in the GitHub repository glitternetwork/pinme (3,754 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 3,177 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories