Skip to content

Examples

Complete applications built on the Agents API. Each one runs against a real Core installation with a Project API key.

ExampleWhat it shows
Parsar Agent workbenchA product UI: models, Skills, MCP, reusable Agents, and Sessions on any runtime

Parsar Agent workbench ​

A small single-user product built on Core. You save model providers, Skills and MCP servers, combine them into Agents, then start Sessions in a managed sandbox, with no workspace, or on your own machine.

Source: example/parsar.

Run and configure it with the example README, which also owns its supported features, storage and validation.

What to look at ​

Each feature maps to one part of the API. Read the code next to the guide section:

FeatureAPI usedGuideCode
Server-side key and headersBearer key, OpenAI-Beta, route allowlistBefore you startserver.mjs
Agents with a harness and modelx_agents_core.harness, model_providerCore extensionsserver/sessions.mjs
Sessions on three runtimesopenai_hosted, none, self_hosted with workspace_directoryCreate a Sessionserver/sessions.mjs
Crash-safe Session creationIdempotency-Key, recovery from a lost responseIdempotencyserver/sessions.mjs
Live repliesEvent stream, text deltas, reconnect and reconcileStream eventssrc/lib/live-session.ts
Follow-ups and cancelInput events with idempotency keysSend inputsrc/Composer.tsx
HistoryPaging Turns and ItemsPaginationsrc/lib/api.ts
Skills and versions/skills, default versionSkillssrc/Skills.tsx
Connect your own machinex_agents_core.installation, Environment statusSelf-hosted executionsrc/ConnectMachine.tsx

Add an example ​

Create a directory under example/ with a README explaining how to run it and which API features it demonstrates, then add a row to this index. Follow the application example boundary.

Released under the MIT License.