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. Keeping the Project API key in environment variables means anyone with access to that environment can start Sessions on your Core.
Who it is forAn engineer with an application already built on the OpenAI SDK who needs to move the backend to infrastructure they control.
The problemRewriting an app for a new API costs time, and the app may need to keep its current SDK calls.
The outcomeThe same SDK code sends agent Sessions to your Core installation, with no change to the request shape.
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
- Install Core and Web with
curl -fsSL https://openagentcore.dev/install.sh | bashon Linux or macOS, or the PowerShell command from the README on Windows. - In Web, configure the public address, set a default model and issue a Project API key.
- Set OPENAI_BASE_URL to https://core.example/v1 (your own API base URL) and OPENAI_API_KEY to the Project API key in the app's environment. (inferred, check the README)
- Add the extra_body agent setting with x_agents_core and harness from the README to choose the harness per Session.
- Run the app's existing test or a single request and check the returned Session ID.
Prompt for your agent
In the MiniMax-AI/OpenAgentCore repo, follow the README Quickstart to point an existing OpenAI SDK app at a Core installation at <API base URL>. Change only OPENAI_BASE_URL and OPENAI_API_KEY, then run <app test command> and confirm the request returns a Session ID from the self-hosted endpoint.
Caveat. The README says the Agents API uses the same protocol as OpenAI's Agents API, but it does not list every endpoint, so test the exact calls your app makes.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for MiniMax-AI/OpenAgentCore and "Point an existing OpenAI SDK app at self-hosted Core"
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