← Back to Skills Marketplace
Perplexity Sonar via Openrouter in CLI
by
James Keane
· GitHub ↗
· v1.0.0
· MIT-0
93
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-sonar
Description
Local OpenRouter Sonar web search CLI using the user's OpenRouter API key. Use when you want OpenRouter-backed web search or cited research from a local comm...
Usage Guidance
This package appears to do what it says: a local CLI that calls openrouter.ai using your OPENROUTER_API_KEY. Before installing: (1) verify the repository/source you clone (the package has no homepage in the registry); (2) be aware the README instructs you to run a Bun script from the repository — inspect the script yourself before making it executable; (3) set OPENROUTER_API_KEY only if you trust the code, and consider using a limited-scope API key or a dedicated account; (4) note the registry metadata omitted the required env var — treat that as a red flag and prefer source verification; (5) run the tool in an isolated environment if you are unsure (container/VM) and review network traffic if you need to confirm it only talks to openrouter.ai.
Capability Analysis
Type: OpenClaw Skill
Name: openclaw-sonar
Version: 1.0.0
The skill provides a legitimate CLI tool for interacting with OpenRouter's Sonar search models. The implementation in `scripts/openrouter-sonar.ts` uses standard API patterns and file operations consistent with its stated purpose, with no evidence of data exfiltration, unauthorized execution, or malicious instructions.
Capability Tags
Capability Assessment
Purpose & Capability
The skill's name/description match the included README, SKILL.md, and the Bun CLI script: it implements a local 'sonar' CLI that calls OpenRouter endpoints and maps Perplexity Sonar models. The declared registry metadata, however, does not list the required OPENROUTER_API_KEY even though the SKILL.md and script require it — this metadata omission is inconsistent.
Instruction Scope
Runtime instructions and the CLI code are limited to building chat-completion requests to openrouter.ai, listing models, and optionally writing user-requested output files. The SKILL.md does not direct the agent to read unrelated files or other credentials. The only environment variables referenced are OPENROUTER_API_KEY (required) and a couple of optional OPENROUTER_* variables, which are appropriate for the described function.
Install Mechanism
There is no packaged install spec in the skill registry; README suggests cloning the GitHub repo and symlinking the TypeScript/Bun script into ~/.local/bin. This is a common lightweight install pattern; it requires the Bun runtime and running a script from an external repo, which is expected but does carry the normal trust/runtime risk of executing third-party scripts locally.
Credentials
The code legitimately requires a single API credential (OPENROUTER_API_KEY) and optionally a model/referrer/title env var. However, the registry metadata claims 'Required env vars: none' while SKILL.md and the script state OPENROUTER_API_KEY is required. This inconsistency could lead to accidental disclosure or misconfiguration and should be corrected before use.
Persistence & Privilege
The skill is not always-enabled, does not request system-wide configuration changes, and does not modify other skills. It runs on demand as a local CLI; no elevated or persistent privileges are requested.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-sonar - After installation, invoke the skill by name or use
/openclaw-sonar - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of OpenRouter Sonar CLI skill.
- Provides a local `sonar` command-line interface for OpenRouter-backed web search and cited research.
- Supports multiple Sonar models and convenient short model names.
- Includes utilities for listing models, research queries, and saving output in various formats (`text`, `md`, `json`).
- Uses the user's `OPENROUTER_API_KEY` and optional environment variables for configuration.
- Offers file output and model selection via CLI options.
Metadata
Frequently Asked Questions
What is Perplexity Sonar via Openrouter in CLI?
Local OpenRouter Sonar web search CLI using the user's OpenRouter API key. Use when you want OpenRouter-backed web search or cited research from a local comm... It is an AI Agent Skill for Claude Code / OpenClaw, with 93 downloads so far.
How do I install Perplexity Sonar via Openrouter in CLI?
Run "/install openclaw-sonar" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Perplexity Sonar via Openrouter in CLI free?
Yes, Perplexity Sonar via Openrouter in CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Perplexity Sonar via Openrouter in CLI support?
Perplexity Sonar via Openrouter in CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Perplexity Sonar via Openrouter in CLI?
It is built and maintained by James Keane (@iamjameskeane); the current version is v1.0.0.
More Skills