
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@openrouter/devtools
Advanced tools
Development-only telemetry capture for OpenRouter TypeScript SDK.
.devtools/openrouter-generations.json)Already installed as part of the monorepo:
@openrouter-monorepo/sdk-devtools-typescript
import { createOpenRouterDevtools } from '@openrouter-monorepo/sdk-devtools-typescript';
import { OpenRouter } from '@openrouter/sdk';
const sdk = new OpenRouter({
apiKey: process.env.OPENROUTER_API_KEY,
hooks: createOpenRouterDevtools()
});
That's it! The devtools will automatically capture all SDK requests and responses.
const sdk = new OpenRouter({
apiKey: process.env.OPENROUTER_API_KEY,
hooks: createOpenRouterDevtools({
storagePath: '.custom-path/generations.json', // Default: '.devtools/openrouter-generations.json'
serverUrl: 'http://localhost:5000/api/notify', // Default: 'http://localhost:4983/api/notify'
})
});
{
"id": "1702345678901-abc123",
"started_at": "2024-12-11T10:30:00.000Z",
"operation": "chat",
"model": "openai/gpt-4",
"status": "success",
"steps": [...]
}
{
"run_id": "1702345678901-abc123",
"step_number": 1,
"type": "chat",
"started_at": "2024-12-11T10:30:00.000Z",
"completed_at": "2024-12-11T10:30:02.500Z",
"request": {
"model": "openai/gpt-4",
"messages": [...],
"parameters": {...}
},
"response": {
"content": "Hello!",
"usage": {
"prompt_tokens": 10,
"completion_tokens": 2,
"total_tokens": 12
},
"provider": "openai",
"model": "gpt-4-0613"
},
"duration_ms": 2500
}
sendChatCompletionRequest - Chat completions APIcreateResponses - Responses APIAll other SDK operations are ignored.
Throws error if NODE_ENV === 'production':
Error: OpenRouter devtools cannot be used in production.
Remove devtools initialization or use environment-based conditional initialization.
Default: .devtools/openrouter-generations.json
Sends POST to http://localhost:4983/api/notify when data changes.
Devtools failures never break SDK operations:
Apache-2.0 (same as OpenRouter SDK)
FAQs
Development-only telemetry capture for OpenRouter TypeScript SDK
The npm package @openrouter/devtools receives a total of 55 weekly downloads. As such, @openrouter/devtools popularity was classified as not popular.
We found that @openrouter/devtools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.