@aaronjmars/openroutercli 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -78,7 +78,7 @@ and run `openrouter login --management`.
78
78
  | **Multi-format inference** | `chat` (OpenAI), `messages` (Anthropic), `responses` (OpenAI Responses) - same auth, same flags, same JSON contract. |
79
79
  | **Batches** | `batches {create,list,get,wait,results,delete}` - send a JSONL file of chat / responses / messages / embeddings requests as one async job at about half price. |
80
80
  | **Embeddings + rerank + speech + video** | `embed` (text or images), `rerank`, `speech` (tone instructions, multi-speaker turns, voice references), `transcribe` (URL input, speaker labels, key terms, word timestamps), `video {create,wait,download}` (resolution, first/last frame, references, audio, extend) - async video jobs poll-until-done with `video wait <jobId>`. |
81
- | **Model discovery with detail** | `models list` (filter, sort by price/context), `models show <id>` (full pricing breakdown - prompt, completion, cache r/w, reasoning, image, web search), `models endpoints <id> --sort throughput\|latency\|prompt\|completion\|uptime --best` for choosing the right provider variant. |
81
+ | **Model discovery with detail** | `models list` (filter, sort by price/context, `--endpoints` by API path served), `models show <id>` (full pricing breakdown - prompt, completion, cache r/w, reasoning, image, web search), `models endpoints <id> --sort throughput\|latency\|prompt\|completion\|uptime --best` for choosing the right provider variant. |
82
82
  | **Benchmarks + rankings** | `benchmarks`, `classifications`, and `datasets {apps,daily,session-cost}` expose OpenRouter's current public benchmark and usage datasets. |
83
83
  | **Management analytics** | `analytics meta` discovers fields; `analytics query` runs metrics/dimensions/time-range queries with a management key. |
84
84
  | **Structured decisions** | `decisions` (alias `systemone`) calls System One for typed choice, score, and yes/no outputs, with optional image inputs (`--image`) and named image assets (`--assets`). `extract` (alias `extractions`, alpha) pulls typed fields (text, number, date, list, estimate, forecast...) out of text or attached image/PDF assets. |
@@ -139,6 +139,7 @@ openrouter batches wait <id> && openrouter batches results <id> -o out.jsonl
139
139
  openrouter models --filter claude --sort prompt
140
140
  openrouter models user --order newest
141
141
  openrouter models user --client codex # only models a coding harness offers
142
+ openrouter models --endpoints /api/alpha/extractions # models served on an API path
142
143
  openrouter models show anthropic/claude-sonnet-4.5
143
144
  openrouter models endpoints anthropic/claude-sonnet-4.5 --sort throughput --best
144
145
 
package/SKILL.md CHANGED
@@ -243,8 +243,9 @@ openrouter models --output-modalities image # image-OUTPUT models
243
243
  openrouter models user --order newest # account-filtered models, server-side sort
244
244
  openrouter models user --client codex # models the named harness offers (claude_code|claude_desktop|codex); honors --harness-models guardrails
245
245
  openrouter models --supported tools # filter by capability
246
+ openrouter models --endpoints /api/v1/messages # only models served on these API paths (csv, all must match)
246
247
  # Full detail for one model: pricing breakdown, architecture, supported params,
247
- # reasoning config, supported voices
248
+ # API paths it is served on, reasoning config, supported voices
248
249
  openrouter models show anthropic/claude-sonnet-4.5
249
250
 
250
251
  # Supported request parameters (undocumented endpoint, may change)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaronjmars/openroutercli",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Command-line interface for the OpenRouter API. Built for humans and LLM agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -50,6 +50,9 @@ Options for list:
50
50
  --providers <csv> Hosting provider names
51
51
  --distillable <true|false> Filter by distillation capability
52
52
  --zdr Only models with ZDR endpoints
53
+ --endpoints <csv> Only models served on every listed API path, e.g.
54
+ /api/v1/messages or /api/alpha/extractions
55
+ (without --output-modalities: every modality)
53
56
  --region <region> Only models with endpoints in a data region: eu | us
54
57
  --order <sort> Server-side sort: most-popular|newest|top-weekly|
55
58
  pricing-low-to-high|pricing-high-to-low|
@@ -96,6 +99,7 @@ function listQuery(values) {
96
99
  if (values.distillable !== undefined) query.distillable = values.distillable;
97
100
  if (values.zdr) query.zdr = "true";
98
101
  if (values.region) query.region = values.region;
102
+ if (values.endpoints) query.endpoints = values.endpoints;
99
103
  return query;
100
104
  }
101
105
 
@@ -117,6 +121,7 @@ const LIST_OPTIONS = {
117
121
  distillable: { type: "string" },
118
122
  zdr: { type: "boolean" },
119
123
  region: { type: "string" },
124
+ endpoints: { type: "string" },
120
125
  "min-age-days": { type: "string" },
121
126
  "max-age-days": { type: "string" },
122
127
  "min-intelligence-index": { type: "string" },
@@ -207,6 +212,12 @@ function renderModelDetail(m) {
207
212
  outln(" " + ((m.supported_parameters || []).join(", ") || "-"));
208
213
  outln("");
209
214
 
215
+ if (m.endpoints && m.endpoints.length) {
216
+ outln(c.bold("served on"));
217
+ outln(" " + m.endpoints.join(", "));
218
+ outln("");
219
+ }
220
+
210
221
  if (m.reasoning && Object.keys(m.reasoning).length) {
211
222
  outln(c.bold("reasoning"));
212
223
  for (const [k, v] of Object.entries(m.reasoning)) {