pinme-llm

Integrate OpenRouter-backed LLM access into PinMe Workers with TypeScript.

1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/glitternetwork/pinme-worker-template --skill pinme-llm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pinme-llm
Source: https://github.com/glitternetwork/pinme-worker-template/tree/main/skills/pinme-llm
Command: npx skills add https://github.com/glitternetwork/pinme-worker-template --skill pinme-llm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps PinMe Worker projects call OpenRouter-backed LLM APIs safely from TypeScript without exposing the real OpenRouter key, while keeping requests scoped to the correct PinMe project.

Core Features & Use Cases

  • Model discovery: List available OpenRouter models through the PinMe proxy.
  • Chat completions: Build non-streaming or streaming chat routes that forward OpenRouter request bodies as-is.
  • Web search via tools: Use OpenRouter web search from inside chat completions when a Worker needs live information.
  • Robust worker integration: Handles PinMe environment variables, project-scoped authentication, request size limits, and passthrough error handling.
  • Use case: A PinMe backend can answer user questions, stream tokens to the frontend, or fetch current information with web search while keeping secrets on the platform.

Quick Start

Ask the assistant to generate a PinMe Worker route that sends a chat completion request through the PinMe OpenRouter proxy with the correct environment variables and error handling.

Frequently Asked Questions about pinme-llm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenRouter LLMs to Cloudflare Workers using TypeScript?

To add OpenRouter LLMs to Cloudflare Workers, you can generate TypeScript backend routes that forward chat completion requests through the PinMe proxy. This integration handles environment variables, project-scoped API-key authentication, and passthrough error handling.

Can I stream chat completions via SSE from a PinMe Worker route?

Yes, you can stream chat completions via SSE from a PinMe Worker route. The Skill builds streaming chat routes that forward OpenRouter request bodies as-is, allowing Workers to stream tokens to the frontend while keeping secrets on the platform.

Does OpenRouter web search work inside Cloudflare Workers chat completions?

OpenRouter web search works inside Cloudflare Workers chat completions by using tools within the forwarded request body. This allows a PinMe backend to fetch current information with web search while keeping the OpenRouter key scoped to the correct project.

How do I list available OpenRouter models through a PinMe proxy?

You can list available OpenRouter models through the PinMe proxy using the model discovery feature. This generates a TypeScript backend route that safely queries OpenRouter without exposing the real API key, keeping requests scoped to your PinMe project.

What are the limitations of using PinMe Workers for OpenRouter LLM requests?

Limitations of using PinMe Workers for OpenRouter LLM requests include enforced request-size validation limits and passthrough error handling for raw OpenRouter responses. The Skill applies project-scoped authentication, meaning requests must be correctly scoped to the specific PinMe project.