BashServerToolConfig - TypeScript SDK

BashServerToolConfig type definition

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

Configuration for the openrouter:bash server tool

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
enginemodels.BashServerToolEngineWhich bash engine to use. “openrouter” runs commands server-side in the OpenRouter sandbox. “auto” (default) and “native” use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.auto
environmentmodels.BashServerToolEnvironmentExecution environment for the bash server tool.{"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