---
title: "From model to agent: Equipping the Responses API with a computer environment"
description: "OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows."
url: "https://swe.quest/articles/from-model-to-agent-equipping-the-responses-api-with-a-computer-environment-102e043c05e5f9e2"
canonical: "https://openai.com/index/equip-responses-api-computer-environment"
source: "OpenAI"
published: "2026-03-11"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 10
tags: ["ai-agents","llms","sandboxing","system-design"]
---

# From model to agent: Equipping the Responses API with a computer environment

A post on [OpenAI](https://swe.quest/sources/openai.md), published 2026-03-11, 10 min read, Deep dive. Original: [https://openai.com/index/equip-responses-api-computer-environment](https://openai.com/index/equip-responses-api-computer-environment)

## Summary

OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows. The API orchestrates the loop itself: it streams command output back to the model, runs multiple commands concurrently in separate sessions, and truncates large outputs while keeping their beginning and end. Native compaction carries long-running sessions across context-window limits. The containers stage files and SQLite databases instead of stuffing prompts, route network egress through a sidecar proxy with allowlists and domain-scoped secret injection, and load versioned 'skills' bundles (SKILL.md plus resources) that the model explores via shell commands.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Unix shell basics
- context windows

## Keywords

Responses API, shell tool, Codex, agent skills, SQLite, GPT-5.2, context compaction

## Related posts

- [Unrolling the Codex agent loop](https://swe.quest/articles/unrolling-the-codex-agent-loop-9f9b82453a544efc.md): OpenAI · 2026-01-23 · Medium · 16 min read · AI agents, AI for coding, LLMs, Developer tools
  Codex CLI's agent loop repeatedly sends a prompt to the Responses API, executes any tool calls the model requests, and appends their outputs until the model returns an assistant message that ends the turn.
- [Scaling Managed Agents with stable interfaces](https://swe.quest/articles/scaling-managed-agents-with-stable-interfaces-06b4cb4f85923c79.md): Anthropic Engineering · 2026-04-08 · Medium · 9 min read · AI agents, System design, Sandboxing & isolation, Resilience, LLMs
  Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic \`execute(name, input) → string\` tool call.
- [Harness, Scaffold, and the AI Agent Terms Worth Getting Right](https://swe.quest/articles/harness-scaffold-and-the-ai-agent-terms-worth-getting-right-0e5aba5b0f70e57a.md): Hugging Face · 2026-05-25 · Easy · 12 min read · AI agents, LLMs, Model training
  A glossary of AI agent terms that are often conflated. The model is a stateless LLM.
- [Beyond the Chatbot: Event-Driven Agents in Action](https://swe.quest/articles/beyond-the-chatbot-event-driven-agents-in-action-fe3eb0d5f18a275b.md): Docker · 2025-07-28 · Medium · 9 min read · AI agents, Event-driven architecture, TypeScript, LLMs, Containers
  A GitHub webhook-triggered agent workflow automatically detects "I finished the tutorial" pull requests on Docker's sample repos, generates an encouraging comment, and closes them without any chat interface.
- [Build a Multi-Agent System in 5 Minutes with cagent](https://swe.quest/articles/build-a-multi-agent-system-in-5-minutes-with-cagent-b6fd900693f4f3cc.md): Docker · 2025-10-14 · Medium · 4 min read · AI agents, LLMs, Developer tools
  cagent is an open-source Docker tool that defines multi-agent AI systems declaratively in a single YAML file.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
