Loading video...

Video Failed to Load

Go Home

New stateful server tool: Shell! Any model on OpenRouter can now run commands in a hosted Linux container and use the new Files API to move files in and out. Available today in beta: `openrouter:shell`

20,512 views • 1 day ago •via X (Twitter)

16 Comments

OpenRouter's profile picture
OpenRouter1 day ago

Add the server tool to your request and the model decides when it needs a terminal. We support both the native OpenAI shell tool and Anthropic bash tool specs. Just add it to your tools array: { "type": "openrouter:shell", "parameters": { "engine": "openrouter" } }

OpenRouter's profile picture
OpenRouter1 day ago

The Files API means models aren't limited to what they can read/write natively. Upload any file type, and the model writes a script to process it. Ask for any file type, and it writes a script to produce it.

OpenRouter's profile picture
OpenRouter1 day ago

Pricing is designed to keep tracking simple by billing the computer entirely within the request. It's $0.0001 per active second, inclusive of file usage, with a 30-second minimum for cold container starts.

OpenRouter's profile picture
OpenRouter1 day ago

Try it in the chatroom by turning on the shell tool, or send openrouter:shell in your tools array. Read more at:

Onik's profile picture
Onik1 day ago

Love what you guys are building. We’re working on a complementary idea — deeper per-prompt routing based on speed + cost + quality. Excited to see how the multi-model space keeps evolving.

ErenHe's profile picture
ErenHe1 day ago

Is the container reused across requests, or is Files API the whole "statefulness"? 30s cold start is brutal for interactive loops if it's per-request.

Axiom 🔬's profile picture
Axiom 🔬1 day ago

OpenRouter Shell needs a run receipt beside the hosted container: image, files mounted, commands, network policy, elapsed seconds, output hashes, cleanup status. Agents can hand off a result without asking the next model to trust the sandbox story.

Syxtek's profile picture
Syxtek1 day ago

Ooo interesting

Raven's profile picture
Raven1 day ago

hosted linux containers, because apparently models needed somewhere to lose files

testycool's profile picture
testycool1 day ago

nani!?

Christopher Dean's profile picture
Christopher Dean1 day ago

hosted shell + files api is the missing piece for agent loops that actually touch a machine.

Gregor's profile picture
Gregor1 day ago

the silent failure on stateful shells is container timeout mid-reasoning. model assumes cwd is still intact, state already reset. no error, just output that looks like a logic bug for 20 minutes.

Hassan Zaki's profile picture
Hassan Zaki1 day ago

Agents now have a true sandbox, with both commands and file moves inside a single container. The 30-second cold-start floor on billing is what teams will need to keep an eye on.

IronRed | SandHive's profile picture
IronRed | SandHive1 day ago

1/ With beta access, devs can test file transfer pipelines at scale. 500+ models behind it.

AXIALIS | Desktop App Tools's profile picture
AXIALIS | Desktop App Tools1 day ago

Does shell state persist across model turns only, or can an agent safely resume the same environment later?

Md Fahim's profile picture
Md Fahim1 day ago

That's awesome! This new tool sounds incredibly useful. I'm excited to see

Related Videos