OpenAI Agents API(developers.openai.com)
277 points by aquir 16 hours ago | 155 comments
tl;dr: OpenAI's new Agents API exposes the Codex harness as a managed service, handling sessions, orchestration, context compaction, and recovery while apps supply tools and pick an execution environment (OpenAI-hosted or self-hosted sandbox). Agents can run code, edit files, connect to MCP servers, use web search, and delegate to subagents, with persistent session state across turns. Billing follows standard model, tool, and container rates; currently US-only data residency with no ZDR support.
HN Discussion:
  • Managed agent harness solves real complexity around state, environments, and tool integration
  • Self-hosting sandbox option makes this genuinely useful and reduces lock-in concerns
  • This pushes vendor lock-in; agent infrastructure should be open source or cloud-neutral
  • Remote agent hosting is backwards since real friction lies with accessing local data
  • ~Distinction between LLM endpoints and agent harnesses is becoming meaningless, so this is a natural evolution