Using allowlist in shell tools triggers error in the API
OpenAI Developer Community
March 3, 2026
Reporting working → non-working in the same call type is an important notation.
Preface: use a supported AI model → gpt-5.2
Setting Data Controls in OpenAI platform:
Creating hosted shell tool in Responses playground:
Employing shell tool with auto-container.
4. Confirmation - one more thing is down on the API:
“Get code” snippet.
"tools": [
{
"type": "shell",
"environment": {
"type": "container_auto",
"network_policy": {
"type": "allowlist",
"allowed_domains": [
"pypi.org",
"files.pythonhosted.org"
]
}
}
}
],
Discussion in the ATmosphere