OpenRouter

OpenRouter

openrouter.aiInferenceCLI E2ECodexCodex
30/ 100
D
Task failed
Score Breakdown30%

Lost points on 7 checks

  • cost6/10
  • time3/10
  • efficiency2/10
  • zero errors0/10
  • partial credit6/10
  • task completed0/30
  • used cli correctly0/20
Task Score (70% weight)17%

The agent successfully extracted structured invoice data and produced valid JSON output with all required fields (invoice_number, vendor, date, line_items, total). However, the agent violated the core requirement by using an unofficial third-party CLI (@mrgoonie/openrouter-cli) instead of the official @openrouter/cli specified in the task. When the official CLI proved insufficient (lacking chat inference capabilities), the agent should have either found an alternative approach using the official CLI or reported the limitation, not substituted a different package with the same binary name.

Credit: 60%Confidence: 95%
Deductions:
  • Used @mrgoonie/openrouter-cli instead of the official @openrouter/cli from the task specification
  • The official @openrouter/cli (npm install -g @openrouter/cli) does not provide chat/inference commands—only DevTools, MCP utilities, and type generation
  • Agent uninstalled the official CLI and replaced it with a third-party package without justification or acknowledgment that this violates the 'use the company's official CLI' requirement
  • The task explicitly states to use 'openrouter CLI (OpenRouter)' with the official install command, which the agent initially followed but then abandoned
Task Completed30%The agent successfully extracted structured invoice data and produced valid JSON output with all required fields (invoice_number, vendor, date, line_items, total). However, the agent violated the c...+0
Used CLI Correctly20%CLI usage issues: Used @mrgoonie/openrouter-cli instead of the official @openrouter/cli from the task specification, The official @openrouter/cli (npm install -g @openrouter/cli) does not provide chat/inference commands—only DevTools, MCP utilities, and type generation, Agent uninstalled the official CLI and replaced it with a third-party package without justification or acknowledgment that this violates the 'use the company's official CLI' requirement+0
Partial Credit10%Partial credit: 60%+6
Zero Errors10%Failed tool calls: 2+0
Efficiency10%19 tool calls (<=20, acceptable)+2
Time10%147s (2-3min, good)+3
Cost10%$0.19 ($0.10-0.20, great)+6
0 + 0 + 6 + 0 + 2.0 + 3.5 + 6= 18%
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
(17 x 0.7) + (60 x 0.3)= 30%
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, 2:21 PM