ShellServerToolConfig - TypeScript SDK

ShellServerToolConfig type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Configuration for the openrouter:shell server tool

Example Usage

1import { ShellServerToolConfig } from "@openrouter/sdk/models";
2
3let value: ShellServerToolConfig = {};

Fields

FieldTypeRequiredDescriptionExample
enginemodels.ShellServerToolEngineWhich shell engine to use. “openrouter” runs commands server-side in the OpenRouter sandbox. “auto” (default) keeps the provider’s native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.openrouter
environmentmodels.ShellServerToolEnvironmentServer-side execution environment for the shell tool. Only container-backed environments are supported; “local” shells are not.{"type": "container_auto"}
sleepAfterSecondsnumberHow long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days).900