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'.

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,738 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.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.svg" alt="Measured on agentmods" 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 30 Apr 2026
  • Snyk pass 30 Apr 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 $0.00022 $0.01588
Sonnet 5 $0.00009 $0.00635
Haiku 4.5 $0.00004 $0.00318

Measured 7d ago against content hash f4f52a6a8e45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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_KEYPROJECT_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. 7d 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,738 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. 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

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

omh-backend

This is a Hermes-native backend workflow skill.

rlaope/oh-my-hermes · 68 tokens

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/obsidian-mcp-server · 62 tokens

api-telemetry

Catalog of OpenTelemetry instrumentation built into framework @cyanheads/mcp-ts-core — spans, metrics, completion logs, env config, runtime caveats, custom instrumentation patterns, and cardinality rules. Use when enabling OTel export, adding custom spans or metrics in services, debugging missing telemetry, looking up…

cyanheads/obsidian-mcp-server · 85 tokens

unicli-explorer

Create new Uni-CLI adapters by exploring websites and APIs. Use when adding support for a new site, desktop app, or service that unicli doesn't cover yet.

olo-dot-io/Uni-CLI · 38 tokens

offline-queue

Generates an offline operation queue with persistence, automatic retry on connectivity, and conflict resolution. Use when user needs offline-first behavior, queued mutations, or pending operations that sync when back online.

rshankras/claude-code-apple-skills · 42 tokens