{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "minimax-ai-openagentcore--run-coding-agent-sessions-via-openai-sdk",
 "repo": "MiniMax-AI/OpenAgentCore",
 "repo_url": "https://github.com/MiniMax-AI/OpenAgentCore",
 "repo_slug": "minimax-ai-openagentcore",
 "title": "Run a coding agent Session through the OpenAI SDK",
 "page_title": "How to run a coding agent Session through the OpenAI SDK with Open Agent Core",
 "summary": "Install Core and Web, then start a Codex Session from Python using the OpenAI SDK.",
 "who": "A developer who wants to call a coding agent from an application and keep the runtime on their own infrastructure.",
 "problem": "Hosted agent APIs may not fit where code, models or data must stay under your control.",
 "outcome": "A self-hosted Core installation that returns a Session ID from an OpenAI SDK call, with the agent able to create files in /workspace.",
 "steps": [
  "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.",
  "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README says the install needs Docker and that you must add sandbox capacity (a node or E2B) before Sessions can run.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "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"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "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."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/minimax-ai-openagentcore/run-coding-agent-sessions-via-openai-sdk/",
 "md": "https://dedupedai.com/use-cases/minimax-ai-openagentcore/run-coding-agent-sessions-via-openai-sdk/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/minimax-ai-openagentcore--run-coding-agent-sessions-via-openai-sdk.json",
 "api_version": "v1"
}
