OpenRouter

OpenRouter

openrouter.aiInferenceCLI E2EClaude CodeClaude Code
26/ 100
D
Task failed
Score Breakdown26%

Lost points on 7 checks

  • cost3/10
  • time2/10
  • efficiency1/10
  • zero errors0/10
  • partial credit6/10
  • task completed0/30
  • used cli correctly0/20
Task Score (70% weight)12%

The agent successfully extracted structured invoice data with all required fields (invoice_number, vendor, date, line_items, total) and printed valid JSON to stdout. However, the agent did NOT use the official OpenRouter CLI as specified in the task. The official CLI installed via 'npm install -g @openrouter/cli' is a DevTools/MCP utility that lacks chat/completion functionality. The agent then installed a third-party package '@mrgoonie/openrouter-cli' which also provides an 'openrouter' binary but is not the official OpenRouter CLI. This violates the core requirement to use the company's official CLI tool.

Credit: 60%Confidence: 95%
Deductions:
  • Used @mrgoonie/openrouter-cli (third-party package) instead of the official @openrouter/cli for the inference call
  • The official @openrouter/cli package (v1.0.2) does not support chat/completion commands - it is a DevTools/StatusLine/MCP utility only
  • While the agent discovered this limitation and adapted, the adaptation involved installing a different third-party package rather than using the official CLI as instructed
  • The task explicitly states to use 'openrouter CLI (OpenRouter)' with official install command 'npm install -g @openrouter/cli', which the agent did install but then replaced
Task Completed30%The agent successfully extracted structured invoice data with all required fields (invoice_number, vendor, date, line_items, total) and printed valid JSON to stdout. However, the agent did NOT use...+0
Used CLI Correctly20%CLI usage issues: Used @mrgoonie/openrouter-cli (third-party package) instead of the official @openrouter/cli for the inference call, The official @openrouter/cli package (v1.0.2) does not support chat/completion commands - it is a DevTools/StatusLine/MCP utility only, While the agent discovered this limitation and adapted, the adaptation involved installing a different third-party package rather than using the official CLI as instructed+0
Partial Credit10%Partial credit: 60%+6
Zero Errors10%Failed tool calls: 1+0
Efficiency10%23 tool calls (<=25, below average)+1
Time10%184s (3-5min, slow)+2
Cost10%$0.33 ($0.20-0.40, good)+3
0 + 0 + 6 + 0 + 1.0 + 2.0 + 3.5= 13%
CLI Checklist (30% weight)60%
CLI existsopenrouter+5
Install docsnpm+5
Auth methodenv var+25
Non-interactivenone+0
JSON outputnone+0
llms.txt+5
Agent skill+20

env_var auth + non-interactive + JSON output = best, browser-only auth = poor

Final Score
(12 x 0.7) + (60 x 0.3)= 26%
Replay
Using the openrouter CLI (OpenRouter), extract structured data from this invoice text:

---
INVOICE #INV-2024-0042
From: Acme Corp
Date: 2024-03-15

Items:
- Consulting Services: $500.00
- Travel Expenses: $150.00

Total: $650.00
---

Use the CLI to make a chat completion or inference call that extracts JSON with these fields: invoice_number, vendor, date, line_items (array), total.

Print the JSON output to stdout.

You MUST use the `openrouter` CLI to accomplish this task.
Do NOT write Python scripts that import the SDK — use CLI commands via the terminal.

If you need help with CLI commands, check the documentation: https://www.npmjs.com/package/@openrouter/cli
You can also use `openrouter --help` and `openrouter <command> --help` to discover available commands.

## Setup
You need to install and authenticate the `openrouter` CLI yourself.

### Installation
Run: `npm install -g @openrouter/cli`

### Authentication
The following environment variables are already set in this environment: `OPENROUTER_API_KEY`
The CLI should pick these up automatically, or pass them to commands as needed.

## Summary
When you are done, write a JSON summary file to results.json with this structure:
{
  "operations": [
    {"step": 1, "description": "What you did", "command": "the CLI command", "success": true/false, "output_summary": "brief result"},
    ...
  ],
  "overall_success": true/false,
  "notes": ["any relevant notes about the execution"]
}

Unlock analytics

See OpenRouter's score trend, layer rankings, and competitive position.

Run completed Sep 27, 2026, 3:05 PM