Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

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 & APIIntermediate3,737273AI score 8/10Last updated: Jul 25, 2026

What it does

  • Documents PinMe's OpenRouter proxy endpoints: GET /api/v1/models and POST /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_search server tool with bounded max_results.
  • Includes an HTTP error table (401/400/403/413/500/502) plus a reusable extractPinmeOpenRouterError helper 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

  1. "Add a /api/chat route answering with openai/gpt-4o-mini" → code with X-API-Key and URL-encoded project_name.
  2. "Make the chat stream" → Worker returns an SSE passthrough while the frontend reader parses data: lines and stops at [DONE].
  3. "Build an endpoint that searches the web and summarizes" → uses the openrouter:web_search tool 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/glitternetwork/pinme.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r pinme/skills/pinme-llm ~/.claude/skills/
  5. Verify that ~/.claude/skills/pinme-llm/SKILL.md exists.
  6. Restart Claude Code, then ask something like "Add an LLM chat API to my PinMe Worker" and the skill will be used automatically.