Skip to content

Worker-side OpenRouter access through PinMe's proxy, covering models, chat completions, streaming, and web search.

CCM score
71 of 100
skills.sh installs
520
GitHub stars
3.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the GET /api/v1/models listing and the POST /api/v1/chat/completions proxy with its query parameters
  • Includes non-streaming and SSE streaming Worker examples plus a frontend SSE consumer for chat responses
  • Enforces a 1MB request body limit and a fixed error table mapping HTTP statuses 400 through 502 to PinMe messages
  • Designed for Cloudflare Worker TypeScript projects that must call OpenRouter without holding the real OpenRouter API key

Install

$ npx -y skills add glitternetwork/pinme --skill pinme-llm -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PinMe Worker OpenRouter API Integration

Guides how to call PinMe platform's OpenRouter proxy APIs in a PinMe Worker (TypeScript). Workers use the PinMe project API key; they never hold the real OpenRouter API key.

Environment Variables

The following environment variables are automatically injected when the Worker is created — no manual configuration needed:

// backend/src/worker.ts
export interface Env {
  DB: D1Database;
  API_KEY: string;       // Project API Key from create_worker
  PROJECT_NAME: string;  // Actual project_name from create_worker; must match API_KEY
  BASE_URL?: string;     // Optional override for PinMe API base URL, defaults to https://pinme.cloud
}

API_KEY authenticates the Worker to PinMe. PROJECT_NAME is required for chat/completions and must belong to the same project as API_KEY. When BASE_URL is not set, use https://pinme.cloud.


Models API

Endpoint: GET {BASE_URL}/api/v1/models Authentication: X-API-Key header (using env.API_KEY) Request Body: none

Details

Repository
github.com/glitternetwork/pinme
Categories
AI Agents & LLM Apps, Backend & APIs
License
MIT
First seen
Jun 3, 2026

Questions

What does the pinme-llm skill help an agent do?

The pinme-llm skill guides an agent to call OpenRouter-backed LLM APIs from a PinMe Worker written in TypeScript, covering models listing, chat completions, streaming, and OpenRouter web search. It helps the agent generate correct Worker TypeScript code for these calls. Workers authenticate with the PinMe project API key and never hold the real OpenRouter key.

Which category does pinme-llm belong to, and what sets it apart?

The pinme-llm skill is in the AI Agents & LLM Apps category on Claude Marketplaces. Its other top skills in that category include microsoft-foundry, azure-ai, and google-agents-cli-adk-code. This skill is specific to PinMe Workers, calling OpenRouter through the PinMe proxy with the project API key.

How do I install the pinme-llm skill?

Run npx -y skills add glitternetwork/pinme --skill pinme-llm -y in your project. After installing, the agent can write PinMe Worker code that calls OpenRouter models, chat completions, and web search.

What does the skill need to run in a PinMe project?

The Worker needs the environment variables API_KEY and PROJECT_NAME, which are injected when the Worker is created. PROJECT_NAME must belong to the same project as API_KEY. BASE_URL is optional and defaults to the PinMe base address.

More from glitternetwork/pinme

All 5

Similar to Pinme Llm

More AI Agents & LLM Apps