- a Project API key and the API base URL, from your administrator (Issue a Project API key);
- a ready node or E2B backend, so Core has somewhere to run the agent (Nodes);
- Python 3.9 or newer;
- a model: the installation’s default model, or your own provider’s model ID, base URL and API key. Model execution says which one a Session uses and which protocols each harness speaks.
1. Connect
Core serves the OpenAI Agents API, so the official OpenAI SDK works unchanged. It reads two environment variables:2. Start a Session
A Session is one agent conversation with its own workspace. Withopenai_hosted, Core creates a sandbox for it on a node or E2B and starts the harness inside.
With the installation’s default model, skip this. To use your own provider:
x_agents_coreholds Core’s additions to the OpenAI API; see Core extensions.- Keep the whole
agentobject inextra_body. SDK 3.13.0 replaces a body field with the matchingextra_bodyfield instead of merging them.
3. Wait for the result
A Session ID confirms creation, not success. Poll durable state; never resubmit to “retry”:completed Turn whose Items describe the new file. A timeout neither cancels the work nor proves it failed.