OpenRouter Launches Stateful Shell Tool with Per-Generation Cost Accounting
Key Info
OpenRouter has launched a beta "stateful server tool" called openrouter:shell, letting any model on the platform run commands in a hosted Linux container and use a new Files API to move files in and out. OpenRouter says the tool's design provides full line-item accounting for each generation — a capability it believes is unique to its platform.
Highlights
- Beta tool
openrouter:shellis available today; models can access it via the chatroom's shell tool toggle or by including it in the tools array. - The tool is model-agnostic and stateful, complemented by a new Files API for transferring files into and out of the container.
- Pricing keeps tracking simple: $0.0001 per active second, including file usage, with a 30-second minimum for cold container starts.
- OpenRouter claims it is the only platform offering full line-item accounting per generation.