In short.
OpenRouter DevTools documentation is a reference for developers investigating local AI request logging, but neither published OpenRouter client currently provides a complete supported integration. The remaining @openrouter/devtools package offers development-only telemetry hooks and local JSON storage. The CLI and viewer are retired, streaming Agent SDK responses are unsupported, and capture failures can silently leave records incomplete. These are documented behaviors; nothing was installed or run.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://openrouter.ai/docs/agent-sdk/dev-tools/devtools.md], including its retirement notices, compatibility warnings, installation commands, configuration, capture behavior and troubleshooting. Linked pages and the documentation index are excluded. The supplied original-source capture is selected-page.txt, dated 2026-11-23T08:23:04.815Z, with source revision sha256:32b16322c742378b2bc607daba5fbabaa194b0f8f48e107ce5d7d72cf3b6ce9f. Nothing was installed or executed; functional behavior, performance and integrations remain untested.
The overview
Identity
This documentation describes the separate @openrouter/devtools telemetry package. It distinguishes that available, pre-release package from the retired OpenRouter CLI and DevTools viewer. The package captures data through SDK hooks and stores it locally; it no longer includes a maintained viewer.
Assessment
The page is useful for understanding the package's intended behavior and substantial compatibility barriers. It does not establish a ready-to-use integration: @openrouter/agent accepts hooks but produces unsupported responses, while @openrouter/sdk lacks typed public options for attaching them. Adoption therefore depends on finding a compatible integration that this page does not supply.
Users
The reference is most useful to SDK developers evaluating request logging or investigating missing telemetry. Beginners can learn what information a capture might contain, but should expect an unresolved integration step. Developers needing production monitoring or a maintained graphical viewer will find that the documented package does not meet those requirements.
Capabilities
For compatible operations that complete successfully, the page describes capture of prompts and messages, model parameters, generated content, token usage, provider and model details, finish reasons, timestamps and duration. Stored records organize operations into runs and individual request-response steps, with status and error metadata. These capabilities are conditional on successful capture.
Using it
Requirements
The package requires a development environment, a compatible hook integration and write access to its storage location. Creating hooks throws an error when NODE_ENV equals production. The page does not specify supported runtime versions or a package version, and installation instructions alone do not establish client compatibility.
Mechanism
Hooks intercept requests and responses, parse their bodies and write telemetry to .devtools/openrouter-generations.json by default. Body parsing is awaited within the SDK hook lifecycle, so capture adds overhead. Hooks preserve the original request or response and swallow capture failures. Parsing or storage failures can leave telemetry missing or incomplete; optional notification failures are ignored.
Setup
The documented npm installation command is npm install --save-dev @openrouter/devtools. Equivalent development-dependency commands are provided for pnpm, Yarn, Bun and Deno.
createOpenRouterDevtools() accepts storagePath and serverUrl options. The default notification address is [http://localhost:4983/api/notify], a legacy viewer endpoint for which no maintained server is provided. The page supplies no complete supported public client wiring example.
Example
As an illustration, a successfully captured compatible request could produce a step containing its model, messages, generated response, token counts and duration within a run in the local JSON file. This describes the documented record structure, not an observed result. The page does not provide a working end-to-end client example.
Assessment & evidence
Limitations
@openrouter/agent callModel always uses streaming Responses API output. DevTools attempts JSON parsing, does not parse the server-sent event stream and does not normalize Responses API schemas. The generated @openrouter/sdk client cannot attach the plain hooks through its typed public constructor options.
The recognized operation IDs are createResponses and sendChatCompletionRequest; recognition does not establish working integration. Other operations, including embeddings, are ignored. Production use is blocked, the viewer is retired, and capture failures may be silent.
Reasoning
The decisive distinction is between hooks existing and a client being able to produce complete telemetry through them. Neither documented public client completes that path. A successful model request also cannot prove capture succeeded, because telemetry errors are swallowed. Any adoption decision should therefore depend on evidence of complete records for the intended integration.
Alternatives
Switching from the Agent SDK to the generated @openrouter/sdk client is explicitly ruled out as a complete supported workaround. The page names no maintained replacement viewer or alternative telemetry product. Comparative features, compatibility and costs of other tools are not assessed.
Evidence
The evidence is the complete documentation page at [https://openrouter.ai/docs/agent-sdk/dev-tools/devtools.md], captured on 23 November 2026. It supports the descriptions of configuration, storage, retirement and compatibility limitations. No package source inspection or execution evidence is supplied, so actual capture behavior and performance are not independently established.
Access & freshness
Costs
Package pricing, model API charges and operating costs are unknown from this page. Local storage does not establish that use is free. Parsing overhead is acknowledged, but there are no measurements of latency, memory use, storage growth or financial cost.
Rights
The selected page does not state a documentation license, package license or redistribution permissions. It also does not establish terms governing captured prompts and responses. Those rights remain unknown from the supplied evidence.
Freshness
At capture, the page describes the package as pre-release and the CLI and viewer as retired. It supplies no package version, release date or dated compatibility matrix. The capture date identifies when this documentation was obtained; it does not establish when the software last changed.
Actions
Before adopting the package, obtain a supported integration example for the exact client and response format you intend to use. Keep initialization in development, confirm storage permissions and check that expected request, response and usage fields actually appear. If a maintained viewer or production monitoring is essential, seek another tool; neither is provided here.
