Overview
Build applications with a managed agent runtime, durable sessions, and tools.
pnpm add @rebyteai/agent-sdkUse Node.js 22+ and set REBYTE_API_KEY. The SDK connects to Rebyte by default; no repository clone or base URL configuration is required.
Our two application repositories serve different purposes:
- A familiar SDK
- Compatible with the OpenAI Agents API client. Our maintained SDK fork connects to Rebyte by default—just add your API key. View supported features
- Trace execution
- Follow model calls, tool activity and token usage with execution traces tied to each session and turn. Explore observability
- Control access
- Isolate session files, restrict sandbox network access and keep service MCP credentials outside the sandbox in encrypted Vaults. Runtime security
On this page
Core conceptsFrom input to resultCurrent availabilityRebyte Agent SDKSDK and example applicationRebyte AppKit SDKCommerce AgentCore concepts
| Concept | Purpose |
|---|---|
| Agent | Reusable configuration: model, instructions, tools, and generation settings. |
| Environment | Optional compute and filesystem used by a session. |
| Session | Persistent execution and conversation state, with a resolved copy of the agent configuration. |
| Events and items | Events communicate inputs and progress; items retain messages and execution output. |
A Turn tracks one unit of work inside a session. An Artifact is an immutable deliverable produced by a completed turn. A saved Agent can be reused across Sessions; each managed Session owns its own environment.
From input to result
- Create a Session with an inline Agent definition or a saved Agent ID.
- Provide input at creation or submit it through the Session events endpoint.
- Receive text, tool activity, and lifecycle events as the runtime works.
- Read the resulting Items, Turn status, and Artifacts.
- Continue the Session with another task, or queue another task behind its active Turn.
Your application handles its UI and function tools. Rebyte manages execution and the Session's hosted environment. See Architecture.
Current availability
The production endpoint is https://api.rebyte.ai/v1. Use http://127.0.0.1:34567/v1 only with a running local Relay and a key for its local organization.
| Capability | Current implementation |
|---|---|
| Agents, Sessions, Turns, Items | Implemented |
| Live event streaming and input queuing | Implemented; historical events are not replayed; active-Turn input queues |
| Managed environments, inline files, Artifacts | Implemented |
| Functions, HTTP and stdio MCP, Vaults | Implemented with documented limits |
| Web search | Implemented; live mode only, no cached search or location targeting |
| Inline ZIP skills, plus Rebyte's GitHub-sourced skills | Implemented in managed environments |
| Webhooks, Plugins | Not yet supported |
| Execution tracing | Implemented through Langfuse; view Agent, Session and Turn traces in Platform |
| Multi-agent | Not yet supported |
| Automatic context compaction | Not yet supported |
The navigation follows OpenAI's guide. A hollow dot marks an unsupported capability. Compatibility is defined by the implemented fields and behavior, not by the presence of a page in this guide.
Rebyte Agent SDK
Rebyte maintains a source fork of the OpenAI Agents API TypeScript client.
Use the same client.beta.agents methods, streaming events and resource model,
with Rebyte credentials and a Rebyte endpoint configured by default.
import Rebyte, { rebyteSandbox } from '@rebyteai/agent-sdk';
const client = new Rebyte(); // reads REBYTE_API_KEY
const session = await client.beta.agents.sessions.create({
agent: { model: 'gpt-5.6-luna', instructions: 'Help the user.' },
environment: rebyteSandbox(),
input: 'Hello!',
});
Install the published SDK directly in your application; follow the Quickstart. No repository clone is required.
rebyteSandbox() configures Rebyte-managed compute. Omit environment when you
only need the Agent Loop, service MCP or client functions. Existing OpenAI API
clients remain compatible with supported endpoints. This fork is based on
openai@7.15.0; it is distinct from @openai/agents, which runs an Agent Loop in
your application. Python integrations can continue using openai==3.13.0 with
Rebyte's base URL; a Python fork is not included in this release.
The SDK sets OpenAI-Beta: agents=v1 automatically. Raw HTTP clients must supply
that header. Current availability describes server support.
SDK and example application
| Repository | What it provides | How to use it |
|---|---|---|
| rebyte-agent-toolkit | Reusable Agent SDK, AppKit and CLI, plus Node and Cloudflare examples. | Install packages from npm. Clone only to run the complete examples or contribute source changes. |
| commerce-agent-starter | A complete commerce demo with catalog, cart, Skills and client functions. | Clone it to run or customize the example storefront. |
Rebyte AppKit SDK
Rebyte AppKit is Rebyte's
application SDK, published in the Rebyte Agent Toolkit repository. It provides
@rebyteai/agent-react for React session state, @rebyteai/agent-ui for a ready-made
chat interface, @rebyteai/agent-server for the server adapter, and a configuration CLI.
Start with the Node application or Cloudflare application. The Rebyte SDK recipes cover Agent creation, independent Sessions, streaming, files and client functions. Install only the packages your application needs:
| npm package | Purpose |
|---|---|
@rebyteai/agent-sdk | TypeScript API client for Agents, Sessions, streaming and Artifacts. |
@rebyteai/agent-react | React hooks and session state. |
@rebyteai/agent-ui | Ready-made React chat interface and styles. |
@rebyteai/agent-server | Server adapter that keeps your Rebyte API key out of the browser. |
@rebyteai/cli | Create, update, validate and export Agent configuration from the terminal. |
pnpm add @rebyteai/agent-sdk
All five packages are published on npm. The same repository contains their source; you do not need to clone it to use the SDK or AppKit.
Commerce Agent
Commerce Agent is a complete example storefront. Its Python host implements catalog, cart and presentation functions, with a separate API Session for each conversation and per-Session Skills. Follow the Rebyte integration guide for setup and the execution flow.
AppKit uses the Rebyte Agent SDK fork. Commerce currently uses the official Python client against Rebyte’s compatible Agents API.
API Agents appear in Platform. They are independent of product UI Agent Profiles and Workspaces. A Session never inherits another Session's Sandbox or Artifacts because it uses the same saved Agent.
To list your organization's saved API Agents, use GET /v1/agents or
client.beta.agents.list(). See Agent listing and pagination
for authentication, a cURL request, and an SDK example that retrieves every page.