PinMe Worker LLM (OpenRouter) Integration
A reference skill that teaches Claude to write correct PinMe Worker TypeScript for OpenRouter-backed models, chat completions, SSE streaming, and web search.
Web & APIIntermediate★ 3,737⑂ 273AI score 8/10Last updated: Jul 25, 2026
What it does
- Documents PinMe's OpenRouter proxy endpoints:
GET /api/v1/modelsandPOST /api/v1/chat/completions?project_name=.... - Explains the auto-injected Worker env vars (
API_KEY,PROJECT_NAME,BASE_URL) and the rule that Workers never hold the real OpenRouter key. - Ships copy-ready TypeScript for non-streaming calls, SSE passthrough responses, a frontend stream reader, and the
openrouter:web_searchserver tool with boundedmax_results. - Includes an HTTP error table (401/400/403/413/500/502) plus a reusable
extractPinmeOpenRouterErrorhelper and optional JSON wrapper.
Who it's for
- Developers building Worker backends on the PinMe platform who need LLM features.
- Claude Code users who want generated PinMe code to use the right headers, query params, and error handling.
- Full-stack devs wiring up a streaming chat UI quickly.
Example uses
- "Add a /api/chat route answering with openai/gpt-4o-mini" → code with
X-API-Keyand URL-encodedproject_name. - "Make the chat stream" → Worker returns an SSE passthrough while the frontend reader parses
data:lines and stops at[DONE]. - "Build an endpoint that searches the web and summarizes" → uses the
openrouter:web_searchtool with result caps to control cost.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/glitternetwork/pinme/HEAD/skills/pinme-llm/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/pinme-llm folder from the GitHub repo glitternetwork/pinme into my ~/.claude/skills/pinme-llm/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/glitternetwork/pinme.git && mkdir -p ~/.claude/skills && cp -r pinme/skills/pinme-llm ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/glitternetwork/pinme.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r pinme/skills/pinme-llm ~/.claude/skills/ - Verify that
~/.claude/skills/pinme-llm/SKILL.mdexists. - Restart Claude Code, then ask something like "Add an LLM chat API to my PinMe Worker" and the skill will be used automatically.
View source on GitHub ↗License: MIT