External Publication
Visit Post

Using allowlist in shell tools triggers error in the API

OpenAI Developer Community March 3, 2026
Source

Reporting working → non-working in the same call type is an important notation.

Preface: use a supported AI model → gpt-5.2

  1. Setting Data Controls in OpenAI platform:

  2. Creating hosted shell tool in Responses playground:

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

Loading comments...