DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a coding agent Session through the OpenAI SDK with Open Agent Core

Install Core and Web, then start a Codex Session from Python using the OpenAI SDK.

Short answer: Run curl -fsSL https://openagentcore.dev/install.sh | bash on Linux or macOS, or irm https://github.com/MiniMax-AI/OpenAgentCore/releases/latest/download/install.ps1 | iex in PowerShell on Windows; then 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). All steps.

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

  1. Run curl -fsSL https://openagentcore.dev/install.sh | bash on Linux or macOS, or irm https://github.com/MiniMax-AI/OpenAgentCore/releases/latest/download/install.ps1 | iex in PowerShell on Windows.
  2. Open Web, sign in with the Core key the installer prints, set the public address and a default model.
  3. In Web, issue a Project API key and add sandbox capacity (a node or E2B).
  4. 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)
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer