Home / Servers / OpenAI API / create_container

Create container

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Create container [POST /containers]

Name on the gateway: openai_api__create_container · may change things.

Parameters

NameTypeDescription
name requiredstringName of the container to create.
file_idsarrayIDs of files to copy to the container.
expires_afterobjectContainer expiration time in seconds relative to the 'anchor' time.
skillsarrayAn optional list of skills referenced by id or inline data.
memory_limit1g | 4g | 16g | 64gOptional memory limit for the container. Defaults to "1g".
network_policyobjectNetwork access policy for the container.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__create_container",
  "arguments": {
    "name": "…"
  }
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create container tool with name set to ….

More from OpenAI API