Authorization notice. Open Agent Core is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. The Core key and Project API key grant access to your installation, so store them in a secrets manager and do not commit them to code.
Who it is forA developer who wants to call a coding agent from an application and keep the runtime on their own infrastructure.
The problemHosted agent APIs may not fit where code, models or data must stay under your control.
The outcomeA self-hosted Core installation that returns a Session ID from an OpenAI SDK call, with the agent able to create files in /workspace.
What you need first
- Docker installed on Linux, macOS or Windows (the installer requires it)
- A machine where you can run the Core, Web and PostgreSQL installer
- A model provider you can configure in Web
- Python with the official OpenAI SDK for the example call
Steps
- Run
curl -fsSL https://openagentcore.dev/install.sh | bashon Linux or macOS, orirm https://github.com/MiniMax-AI/OpenAgentCore/releases/latest/download/install.ps1 | iexin PowerShell on Windows. - Open Web, sign in with the Core key the installer prints, set the public address and a default model.
- In Web, issue a Project API key and add sandbox capacity (a node or E2B).
- Export the variables: set OPENAI_BASE_URL to your API base URL (for example https://core.example/v1) and OPENAI_API_KEY to the Project API key. (inferred, check the README)
- Run the Python quickstart from the README, which calls client.beta.agents.sessions.create with harness set to codex, and print session.id.
Prompt for your agent
Using the MiniMax-AI/OpenAgentCore repo, install Core and Web on <target machine> and configure a default model and Project API key. Then run the README Python quickstart with OPENAI_BASE_URL set to <API base URL> and confirm it prints a Session ID. Verify that the Session finishes and that /workspace/hello.txt exists in the Session output.
Caveat. The README says the install needs Docker and that you must add sandbox capacity (a node or E2B) before Sessions can run.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for MiniMax-AI/OpenAgentCore and "Run a coding agent Session through the OpenAI SDK"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer