# Build a personal AI agent for your app.

> Personal Agents · OpenAI Agents API compatible. Pick a model and tools, test it in the Console, then call it from your app with the OpenAI SDK.

Source: https://www.sandbase.ai/agents

## Everything your Agent needs, already connected.

Models, tools and a hosted runtime on one account.

- **Any supported model**: Claude, GPT, Gemini, DeepSeek and more.
- **Connected tools**: SandBase MCP tools, your own MCP servers and Skills.
- **A place to work**: Every Session gets a hosted sandbox with a shell and files.
- **Every run on record**: Transcript, tool calls and files are kept per Session.

## One Session, from your code to the result.

Your code calls the Agents API. SandBase runs the agent in a hosted sandbox with the model and tools you chose.

- Your code (OpenAI SDK, HTTP + SSE) calls the SandBase Agents API: Agents & versions, Sessions & turns, Events & history, One key, one balance. Built on OpenAgentCore.
- The Agent runs in a hosted environment: a harness (Codex, Claude Code, MiniMax Code), a workspace · shell · files, a supported catalog model and SandBase MCP · 2,000+ APIs.

## From an idea to an Agent you can call.

1. **Define**: Instructions, a model, Skills and MCP connections.
2. **Test**: Chat with it in the Console and watch each tool call.
3. **Use anywhere**: Start Sessions from your code with your SandBase key.

## Use the OpenAI SDK with SandBase Agents.

Point the OpenAI SDK at the SandBase base URL and use your SandBase key.

```python
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.
```

Paths relative to `https://api.sandbase.ai/v1`:

| Method | Path | Purpose |
| --- | --- | --- |
| POST | `/agents` | Create an Agent |
| POST | `/agents/sessions` | Start a Session |
| POST | `/agents/sessions/{id}/events` | Send input or cancel |
| GET | `/agents/sessions/{id}/events` | Stream events (SSE) |
| GET | `/agents/sessions/{id}/items` | Read the history |

|  | OpenAI | SandBase |
| --- | --- | --- |
| Models | OpenAI models | Supported catalog models |
| Harness | Codex | Codex, Claude Code or MiniMax Code |
| Tools | Tools you wire up | SandBase MCP, your MCP and Skills |
| Billing | Model and container rates | One SandBase balance |

## Built on OpenAgentCore.

SandBase Agents runs on OpenAgentCore, the MIT-licensed implementation of the OpenAI Agents API from MiniMax.

- Same protocol as the OpenAI Agents API
- Codex, Claude Code and MiniMax Code harnesses
- Swappable sandboxes, harnesses and models
- OpenAgentCore on GitHub: https://github.com/MiniMax-AI/OpenAgentCore

## Public Agents

Ready-made Agents you can clone into your workspace.

- [YouTube Transcript service](https://www.sandbase.ai/agents/agt_d65e2a2b-b149-42c1-9d7f-dcd2d05f17cb.md): Extract full transcripts and captions from YouTube videos for content analysis, summarization, note-taking, and repurposing. Supports multiple languages and auto-generated captions. Ideal for research, content creation, and accessibility workflows. · by SandBase
- [WeChat Channels Research service](https://www.sandbase.ai/agents/agt_f1f0ff04-d6da-4513-ad33-4b099caa03f0.md): Search videos, analyze channel profiles, track live streams, and research content engagement on WeChat Channels (Video Accounts). Covers video search, channel profiling, live stream monitoring, comment analysis, and content collections. · by SandBase
- [Weibo Research service](https://www.sandbase.ai/agents/agt_0c82f6df-6c90-4931-bb83-ee5e961df5d9.md): Monitor Weibo hot searches, track trending topics, analyze user profiles, and research public sentiment on China's largest microblogging platform. Covers real-time trending charts, keyword-based content search, user engagement analysis, and comment sentiment extraction. · by SandBase
- [YouTube Research service](https://www.sandbase.ai/agents/agt_ac281e04-f143-4e32-85e5-80f21e902fde.md): Search videos and channels, analyze content performance, extract transcripts, read comments for sentiment, and discover trending Shorts on YouTube. Covers video search, channel strategy analysis, comment extraction, caption/transcript access, and audience engagement research. · by SandBase
- [SEO Keyword Insights service](https://www.sandbase.ai/agents/agt_797bb6fc-0ae7-453a-b8df-5f5c52f745ee.md): SEO research agent that discovers, validates, and prioritizes keywords using DataForSEO capabilities via SandBase. · by SandBase
- [Xiaohongshu Research service](https://www.sandbase.ai/agents/agt_89b1c573-124f-42cd-b7b4-83bc5c3e5925.md): Search notes, analyze creators, track trending topics, and research consumer sentiment on Xiaohongshu (RED/Little Red Book). Covers content discovery, creator profile analysis, product reviews, topic trends, and shopping behavior insights on China's leading lifestyle and e-commerce community. · by SandBase

## Personal Agent FAQ

### What is a personal Agent on SandBase?

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.

### Is it compatible with the OpenAI Agents API?

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.

### Which models can my Agent use?

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.

### What tools can it reach?

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.

### How is it billed?

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.

### What is SandBase Agents built on?

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.

### Do I have to use the Console?

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.

## Get started

- Connect an AI client (Claude Code, Cursor, Codex and 22 more): `npx -y @sandbaseai/cli@latest connect --client auto`
- Setup instructions for AI agents: https://www.sandbase.ai/skill.md
- API base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`
- Full index of Markdown pages: https://www.sandbase.ai/llms.txt
