BlogOpenRouter
Server-Side Code Execution Tools for AI Agents, Compared
A server-side code execution tool runs the model's commands in the provider's sandbox during your API request, so you don't provision or secure a container. OpenAI, Anthropic, and Google run code for their own models. Our openrouter:shell tool runs commands for any model on the Responses and Messages APIs, and our openrouter:bash tool does the same on the Messages API. This article compares the four on runtime, isolation, persistence, and cost, shows a complete request against our sandbox with the output it returned, and describes the jobs that still need a sandbox platform of your own.
8 h ago openrouter.ai