Learning resourcesReviewed · OpenRouter

OpenRouter Usage for Agents

OpenRouter’s Usage for Agents is a setup guide for developers adding OpenRouter guidance to AI coding assistants, but it does not include the linked skill’s underlying instructions. It explains installation of openrouter-typescript-sdk and illustrates ordinary and streaming Responses API calls.

Researched 23 Nov 2026

In short.

OpenRouter’s Usage for Agents is an installation guide for developers using coding assistants with OpenRouter, but the linked skill’s contents and behavior remain unassessed. It documents Claude Code, Cursor and GitHub CLI installation routes, describes SDK topics the skill is intended to cover, and supplies response and streaming examples in TypeScript, Python, Go and cURL. No commands or examples were executed. Prices, licensing, exact SDK versions and improvements to assistant output are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the complete selected page at [https://openrouter.ai/docs/client-sdks/usage-for-agents.md], including its documentation-index notice, installation instructions, compatibility table, capability descriptions, code examples, displayed outputs, Agent SDK note and repository notice. Linked repositories, the documentation index, assistant documentation and other linked pages are excluded. No commands, installation procedures or examples were executed; compatibility, authentication behavior and generated-code quality were not tested.

The overview

identity

Usage for Agents is an OpenRouter documentation page at [https://openrouter.ai/docs/client-sdks/usage-for-agents.md]. It introduces the official openrouter-typescript-sdk skill from [https://github.com/OpenRouterTeam/skills] and explains how to add it to coding assistants.

The page says the skill covers both the Client SDKs, identified as @openrouter/sdk, and the Agent SDK, identified as @openrouter/agent. The selected resource is the installation guide; the repository’s skill files are outside its contents.

assessment

The guide is useful for developers who already intend to integrate OpenRouter and want their coding assistant to have relevant SDK instructions. Its concrete installation routes and paired response examples provide a practical starting point.

Its usefulness as documentation is supported by the supplied material. Successful installation, assistant compatibility and the quality of code produced after installation remain unassessed.

users

Beginners can use the installation steps and example requests to understand how an assistant might help connect a project to OpenRouter. They will still need to handle project dependencies and API credentials, which the page does not fully explain.

Experienced developers may find it relevant for repeated SDK integration tasks involving responses, streaming, authentication and key management. The support table lists Claude Code, Cursor, OpenCode, GitHub Copilot, Codex, Amp, Roo Code and Antigravity; these are documented compatibility claims.

capabilities

The page says the skill provides guidance on SDK installation, the Responses API, embeddings for semantic search and retrieval-augmented generation, error handling, streaming and function calling. Retrieval-augmented generation means supplying retrieved information as context for a model response.

It also names model listing, chat completions, credits, programmatic API key management and OAuth using PKCE, an authentication flow for user-facing applications. Only response generation and streaming receive concrete code examples here; the other capabilities are described without demonstrations.

Using it

requirements

The page states that the skill works with assistants supporting the Agent Skills standard. Its GitHub CLI installation route requires GitHub CLI v2.90.0 or later; this minimum is specific to that route.

The API examples use OpenRouter credentials. Python, Go and cURL obtain the key through OPENROUTER_API_KEY, while the TypeScript example constructs OpenRouter without explicitly showing credential configuration. Exact SDK versions, runtime requirements and a complete dependency list are not supplied.

mechanism

The described mechanism is to install reusable SDK guidance into a compatible coding assistant so it can help write integration code. The page does not expose the skill’s instructions, loading rules or any supporting scripts, so the details of its behavior are unknown.

The examples show application code sending requests through an SDK or directly to [https://openrouter.ai/api/v1/responses]. Ordinary responses expose output to print; streaming examples process response.output_text.delta events as text arrives.

setup

For Claude Code, the documented sequence is /plugin marketplace add OpenRouterTeam/skills followed by /plugin install openrouter@openrouter.

For Cursor, the page directs users to Settings > Rules > Add Rule > Remote Rule (Github), using OpenRouterTeam/skills. The GitHub CLI command is gh skill install OpenRouterTeam/skills openrouter-typescript-sdk.

These instructions install assistant guidance. The page leaves the project’s dependency installation, complete authentication setup and verification of successful skill loading unexplained.

example

The TypeScript response example imports OpenRouter from @openrouter/sdk and calls client.responses.send. Its responsesRequest contains model ~anthropic/claude-sonnet-latest, input Hello! and stream false. It checks that the response contains output before printing that value as JSON.

The streaming example sets stream true, checks for a ReadableStream and prints event.delta when event.type equals response.output_text.delta. Python SDK examples and direct HTTP examples in Go and cURL accompany both patterns. The displayed outputs are documentation illustrations; none of these examples was executed.

Assessment & evidence

limitations

The page provides no installed-assistant demonstration, automated test results, performance measurements or comparison of generated code with and without the skill. It therefore does not establish gains in correctness or development speed.

Although examples appear in four languages, the installation target is named openrouter-typescript-sdk. Equivalent depth of skill guidance for Python and Go is not established. Higher-level agent loops and stop conditions are referred to separate Agent SDK documentation.

reasoning

The guide combines assistant installation instructions with concrete API interaction patterns, making it a reasonable entry point for an OpenRouter project. The examples explain the intended integration more clearly than the capability list alone.

The expected benefit is more informed assistance with SDK tasks. Confidence in that benefit is limited because the actual skill instructions and resulting assistant behavior are absent from the page. Suitability for a particular project requires further verification.

alternatives

Developers comfortable writing requests can use the page’s SDK or direct HTTP examples as starting references without installing assistant guidance. This is a practical option suggested by the examples, rather than a tested comparison.

For multi-turn agent loops, tool definitions and stop conditions, the page directs readers to the Agent SDK overview at [https://openrouter.ai/docs/agent-sdk/overview.md]. That linked page is outside the selected scope, so its capabilities and requirements are not assessed here.

evidence

The evidence is the complete Usage for Agents page at [https://openrouter.ai/docs/client-sdks/usage-for-agents.md]. It supplies installation commands, a compatibility table, a claimed topic list, code examples, sample outputs and links to the skill repository and related documentation.

This is first-party documentation supporting what OpenRouter describes and recommends. It does not independently establish installation success, compatibility or generated-code quality. No linked repository files or linked documentation pages are included.

Access & freshness

costs

The page provides no skill price, coding-assistant subscription price, API rates, model charges or example token usage. Installation cost and ongoing usage cost are unknown from this evidence. The availability of installation commands does not establish free use.

rights

The page links to the skill repository and welcomes contributions and feedback, but includes no license text or explicit redistribution grant. Permission to copy, modify or redistribute the skill or documentation is unknown from the selected page.

freshness

The supplied documentation snapshot was captured on 2026-11-23 at 01:18:42.579 UTC. The page gives no publication or last-update date and pins neither a skill commit nor an SDK release.

The example model identifier includes latest, so it does not identify a fixed model release. Installation availability, the model behind that identifier and compatibility with current SDK releases remain unverified.

actions

Before adopting the skill, inspect its repository instructions and license, confirm the installation route for your assistant, and establish the SDK and runtime versions required by your project.

After configuring credentials, verify one ordinary response and one streaming response in your own project. If OAuth, embeddings or API key management drives your decision, examine those features separately because this page only describes their coverage.

Evidence for this report

selected-page.txtselected · checked 2026-11-23