OpenRouter
Lost points on 7 checks
- cost3/10
- time2/10
- efficiency1/10
- zero errors0/10
- partial credit6/10
- task completed0/30
- used cli correctly0/20
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.
- 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
env_var auth + non-interactive + JSON output = best, browser-only auth = poor
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