BashServerToolEngine - TypeScript SDK

BashServerToolEngine type definition

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

Which 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.

Example Usage

1import { BashServerToolEngine } from "@openrouter/sdk/models";
2
3let value: BashServerToolEngine = "auto";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"auto" | "native" | "openrouter" | Unrecognized<string>