OpenAgentCore

The OpenAI Agents API, open source and self-hosted. Run Codex, Claude Code or MiniMax Code on your own machines with your own models, through the official OpenA

What is OpenAgentCore?

The OpenAI Agents API, open source and self-hosted. Run Codex, Claude Code or MiniMax Code on your own machines with your own models, through the official OpenAI SDK.

Overview of OpenAgentCore

What it is

OpenAgentCore is an open-source, self-hosted implementation of the OpenAI Agents API. It allows you to run Codex, Claude Code, or MiniMax Code on your own machines using your own models, through the official OpenAI SDK.

Key features

  • Same API as OpenAI. Set OPENAI_BASE_URL and the official OpenAI SDK, or plain HTTP, works unchanged.
  • Your agent, your model. Each Session runs Codex, Claude Code or MiniMax Code natively, as it runs on your machine, with the model provider you configure.
  • Compute that sleeps, workspaces that stay. On microsandbox, idle sandboxes release compute and resume on a compatible node with their files intact. E2B pauses idle sandboxes in place. Docker and your own Linux, macOS or Windows machine also run Sessions.
  • Replaceable parts. Sandbox Providers, workspace filesystems, Harnesses and model providers plug in through defined protocols.

Use cases

  • Self-hosting agent sessions with custom models on your own infrastructure.
  • Building applications on top of the OpenAI-compatible Agents API.
  • Running Codex, Claude Code, or MiniMax Code in isolated environments.
  • Operating multi-tenant agent platforms with replaceable components.

Getting started

Install Core, Web and PostgreSQL on Linux or macOS with Docker: sh curl -fsSL https://openagentcore.dev/install.sh | bash On Windows, in PowerShell: powershell irm https://github.com/MiniMax-AI/OpenAgentCore/releases/latest/download/install.ps1 | iex Then call it with the OpenAI SDK, with OPENAI_BASE_URL set to your API base URL and OPENAI_API_KEY to the Project API key: python from openai import OpenAI client = OpenAI() session = client.beta.agents.sessions.create( environment=… ) See the repository README for full details.

License and pricing

Licensed under the MIT License. Open source and free to use.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/minimax-aiopenagentcore.svg)](https://yunodb.com/tools/minimax-aiopenagentcore?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/minimax-aiopenagentcore?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/minimax-aiopenagentcore.svg" alt="Featured on YunoDB" height="20"></a>