Tooluck logoTooluck
SKILL.md

pinme-llm

Agent skill fromglitternetwork/pinme

Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.

How to install pinme-llm

install pinme-llm
# install the pinme pack with the skills CLI
npx skills add glitternetwork/pinme

# or add only this skill to Claude Code: copy the folder

skills/pinme-llm/

# into

~/.claude/skills/pinme-llm/ (all projects)

.claude/skills/pinme-llm/ (one project)

skills/pinme-llm/SKILL.md

MITFull file
1# PinMe Worker OpenRouter API Integration
2
3Guides 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.
4
5## Environment Variables
6
7The following environment variables are automatically injected when the Worker is created — no manual configuration needed:
8
9```typescript
10// backend/src/worker.ts
11export interface Env {
12 DB: D1Database;
13 API_KEY: string; // Project API Key from create_worker
14 PROJECT_NAME: string; // Actual project_name from create_worker; must match API_KEY
15 BASE_URL?: string; // Optional override for PinMe API base URL, defaults to https://pinme.cloud
16}
17```
18
19> `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`.
20
21---
22
23## Models API
24
25**Endpoint:** `GET {BASE_URL}/api/v1/models`
26**Authentication:** `X-API-Key` header (using `env.API_KEY`)
27**Request Body:** none
28
29Use this when the Worker needs to list available OpenRouter models. The response body, status, and headers are passed through from OpenRouter `/models`.
30
31```typescript
32async function listModels(env: Env): Promise<unknown> {
33 const baseUrl = env.BASE_URL ?? 'https://pinme.cloud';
34 const resp = await fetch(`${baseUrl}/api/v1/models`, {
35 headers: { 'X-API-Key': env.API_KEY },
36 });
37
38 if (!resp.ok) {
39…

Excerpt shown under the repository's MIT license.

More skills in pinme

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates