Personal Agents · OpenAI Agents API compatible
Build a personal AI agent for your app.
Configure an agent to research public sources, summarize documents, or analyze data. Choose a supported model and tools, then start a hosted Session from your application.
- Supported models
- Data APIs
- OpenAI SDK
- One balance
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.sandbase.ai/v1",
api_key=os.environ["SANDBASE_API_KEY"],
)
agent = client.beta.agents.create(
model="anthropic/claude-sonnet-5.5",
instructions="Brief me on AI news.",
)
# Wait until the Agent projection is ready before creating a Session.One account
Everything your Agent needs, already connected.
SandBase hosts the runtime and connects supported models and built-in tools. Custom MCP connections can require their own credentials.
Supported models
Claude, GPT, Gemini, DeepSeek and more from one catalog. Pick a default and override it per Session.
Connected tools
Choose built-in SandBase MCP tools or configure your own connections. Attach Skills for repeatable workflows.
A place to work
Each Session runs in a managed runtime where your Agent can use tools, keep files and carry on a task.
Every run on record
Sessions keep the transcript, tool calls and files, so you can see what your Agent did and continue where it stopped.
Research workflow
Turn research leads into a reading decision
Decide what to read next with a personal research assistant, then refine the plan as your priorities change.
Input
Supply a research question, reading preferences and source-linked notes—for example, finding a practical agent project for someone who knows basic Python. Pass local results into the Session explicitly.
Steps
Request a reading order, selection reasons and unresolved checks. In the same active Session, add a constraint such as preferring Python examples, then review history to compare decisions. SandBase keeps Session state between turns.
Output
Request a
reading-plan.mdwith original links, reasons and questions to verify. The hosted workspace supports files and generated artifacts; this format is a workflow goal, not a demonstrated result.
Limit. Summaries are leads, not proof that a page or video was reviewed. Continuing one Session is not durable knowledge across new Sessions.
How it works
One Session, from your code to the result.
Your code sends work over the Agents API. SandBase keeps the Session, runs a native agent harness in a hosted sandbox, and gives it the model and tools you chose.
Application
Your code
- OpenAI SDK
- HTTP + SSE
SandBase Agents API
- Agents & versions
- Sessions & turns
- Events & history
- One key, one balance
Built on OpenAgentCore
Hosted environment
Harness
- Codex
- Claude Code
- MiniMax Code
Workspace · shell · files
- Model
- Supported catalog model
- Tools
- SandBase MCP · 2,000+ APIs
- HarnessThe agent loop
- Each Session runs Codex, Claude Code or MiniMax Code natively. The harness owns the model and tool loop; you pick it on the Agent.
- EnvironmentA place to work
- Every Session gets a hosted sandbox with a workspace, a shell and files. Results it writes come back as Session artifacts.
- ModelYour choice of model
- Choose a model supported by your Agent runtime. Set a default on the Agent and override it when you start a Session.
- ApplicationYour application
- Send input, stream events and read history with the OpenAI SDK. SandBase keeps the Session state between turns.
Define · Test · Use
From an idea to an Agent you can call.
Shape it in the Console, try it in a Session, then use it wherever your code runs.
- 01
Define
Write its instructions, choose a model, and attach Skills and MCP connections. Configuration updates create new versions.
- 02
Test
Chat with it in a Session in the Console and watch each tool call before anything depends on it.
- 03
Use anywhere
Create Sessions from your app, script or backend through the Agents API with your SandBase key.
Compatible by design
Use the OpenAI SDK with SandBase Agents.
Use the SandBase base URL and key for supported Agents API operations. Check the documentation for Session requirements and SandBase MCP configuration.
- POST
/agentsCreate an Agent configuration - POST
/agents/{agent_id}Update an Agent configuration with the SDK - PATCH
/agents/{agent_id}Update an Agent only if its row version matches - POST
/agents/sessionsStart a Session from a saved Agent, optionally overriding its model - POST
/agents/sessions/{id}/eventsSend input or cancel the current turn - GET
/agents/sessions/{id}/eventsStream live events over SSE without replay - GET
/agents/sessions/{id}/itemsRead the history: messages, tool calls and results
- Authenticate with
Authorization: Bearer <SandBase API key>. TheOpenAI-Betaheader is optional. If supplied, useagents=v1. - Read message and turn history through items or turns after a disconnect. The reconnect stream starts with a snapshot.
- Models
- OpenAI models
- Models supported by the selected runtime
- Harness
- Codex
- Codex, Claude Code or MiniMax Code
- Tools
- Tools you wire up
- Selected SandBase MCP tools, custom MCP connections and Skills
- Billing
- Model and container rates
- One SandBase balance for models, tools and runs
- Console
- Code first
- Define and test in the Console, then call from code
Open source underneath
Built on OpenAgentCore.
SandBase Agents runs on OpenAgentCore, the open-source implementation of the OpenAI Agents API from MiniMax, released under the MIT License. The protocol your Agent speaks is open, and so is the engine that runs it.
- Same protocol as the OpenAI Agents API
- Native Codex, Claude Code and MiniMax Code harnesses
- Replaceable sandboxes, harnesses and model providers
SandBase runs it for you: hosted sandboxes, the model catalog, SandBase MCP and billing on one account.
agent.session.turn.output_text.delta"Three stories today…"agent.session.turn.output_text.delta"1. A new open model…"agent.session.turn.completedstatus: idle
Questions
Personal Agent FAQ
An Agent you define once: its instructions, default model, Skills and MCP connections. It lives in your SandBase workspace, keeps its versions, and runs in Sessions you start from the Console or from code.
Yes for Agents and Sessions. Point the OpenAI SDK at https://api.sandbase.ai/v1 with your SandBase API key and use client.beta.agents and client.beta.agents.sessions. The SDK requires environment={"type":"openai_hosted"} when creating a Session. Text input, cancellation, live events and history are supported. Image input events and function tools that require the client to return results are currently unsupported.
Choose a model supported by your Agent runtime. Set a default on the Agent and override it when you create a Session; a Session keeps its model for its whole life.
Tool availability depends on the selected connections. Register custom MCP servers as SandBase connections and reference them in mcp_connections. Authenticated servers can require a Secret. An explicit connection list replaces the built-in selection unless you include it. The OpenAI inline MCP tools format is unsupported.
From your SandBase balance: the model tokens your Agent uses and the tools it calls, at the prices shown in the catalog. Every Session and charge appears in Activities.
OpenAgentCore, the open-source, MIT-licensed implementation of the OpenAI Agents API from MiniMax (github.com/MiniMax-AI/OpenAgentCore). SandBase hosts it with managed sandboxes, the SandBase model catalog, SandBase MCP and one balance.
No. The Console is the quickest way to define and test an Agent, but everything it does goes through the same API, so you can create Agents and Sessions entirely from code.
