If you're building Workers on PinMe's platform and need to call LLMs through OpenRouter, this skill walks you through the proxy setup so your code never touches the real API key. It covers the models endpoint, chat completions with streaming support, and how to wire up OpenRouter's web search tool through the completions API. The examples are TypeScript heavy and show both non-streaming and SSE passthrough patterns. Useful when you're wiring up AI features in a PinMe Worker and need to understand the environment variables, query string requirements, and error codes that come back from their proxy layer.

skills.sh installs
503
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add glitternetwork/pinme --skill pinme-llm --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from glitternetwork/pinme

All 5
1hkuds avatarcli-anything-wiremockhkuds/cli-anythingPython CLI harness for WireMock HTTP mock server administration503skills.sh installs
22ykwang avatarhtml-visual2ykwang/agent-skillsGenerate an interactive single-file HTML visualization — mockup, wireframe, ERD, flowchart, chart, slides, architecture diagram, dashboard, timeline, mindmap, k500skills.sh installs
3bobmatnyc avatarzustandbobmatnyc/claude-mpm-skillsMinimal, unopinionated state management library for React with simple hook-based API, no providers, and minimal boilerplate for global state without Redux compl496skills.sh installs
4mjunaidca avatarpolymarket-analyzermjunaidca/polymarket-skillsUse this skill whenever the user wants to find trading opportunities, detect arbitrage, analyze a market, perform edge detection, find mispricing, do probabilit490skills.sh installs
5freestylefly avatarcanghe-danger-x-to-markdownfreestylefly/canghe-skillsConverts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to ma489skills.sh installs
6openclaudia avatarkeyword-researchopenclaudia/openclaudia-skillsPerform keyword research using the SemRush API. Use when the user says "find keywords", "keyword research", "what should I rank for", "keyword ideas", "search v489skills.sh installs