모든 서버 도구
Shell
openrouter:shell
Responses 및 Messages API에서 모든 모델에 호스팅 셸을 제공합니다. 모델이 명령을 내리면 OpenRouter가 격리된 컨테이너에서 명령을 실행하고 stdout과 stderr를 모델에 반환합니다. 샌드박스를 기반으로 하는 OpenAI 호스팅 셸 도구와 동등한 기능입니다.
작동 방식
코드, 스크립트, 명령줄 도구를 실행할 때 사용합니다. 명령은 항상 호스팅 환경에서 실행되며 사용자 컴퓨터에서는 실행되지 않습니다.
- 1
모델 실행할 명령을 일괄 전송합니다.
- 2
OpenRouter 각 항목을 격리된 Linux 컨테이너에서 실행하고 stdout, stderr, 종료 코드를 캡처합니다.
- 3
모델 출력을 읽고, 같은 요청에서 명령을 더 실행할 수 있습니다.
제공업체 및 가격
명령은 모든 모델과 제공업체에서 항상 OpenRouter 샌드박스 내에서 실행됩니다. Responses API의 기본 셸 도구는 간편한 약식으로 사용할 수 있으며 동일한 샌드박스에서 실행됩니다.
OpenRouter sandbox
US$0.0001 / second
컨테이너를 시작하는 요청에 적용되는 최소 30.0s
OpenRouter가 운영하는 격리된 컨테이너에서 서버 측으로 명령을 실행합니다.
모든 요청에 Standard 모델 토큰 비용이 적용됩니다.
이 도구 사용
OpenRouter가 요청 중에 도구를 실행하고 결과를 모델에 반환하므로 클라이언트 측 도구 루프가 필요하지 않습니다.
지원되는 API: Responses and Anthropic Messages.
shell
curl https://openrouter.ai/api/v1/responses \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:shell"
}
],
"input": "Create a Python script that prints the first 20 Fibonacci numbers and run it."
}'문서에서 설정, 매개변수, 예제를 확인하십시오.
통합 가이드 읽기Frequently asked questions
Shell follows the Responses API hosted shell shape and works on the Responses and Messages APIs. Bash follows the Anthropic bash tool shape and is only available on the Anthropic Messages API.
관련 도구
코드 및 실행