@volter/twin-openai
OpenAI
Local OpenAI Responses, Chat Completions and tool-use workflows. Replies use configured scenarios or labeled deterministic stubs; no model runs.
Mirror UI
Local twin screens with synthetic data · @volter/twin-openai 3.0.3
The example uses OpenAI 3.0.3. Keep its dependency pins when following it.
Setup gives the current installation instructions for @volter/twin-openai 3.0.3. Open the published README for credentials, seeds, supported operations and limits.
README shipped with @volter/twin-openai 3.0.3
These instructions were published with this package. Their tool versions may differ from the current starter cohort. Use Setup to install this version.
A local OpenAI API. It serves the calls the applications make (journeys/demand.json):
Use with an existing app
Use Node 22.6 or newer.
In an app that already uses this vendor, install this exact release and the product CLI:
npm install --save-dev --save-exact @volter/world@3.0.147 @volter/twin-openai@3.0.3
./node_modules/.bin/volter world init --name my-app --twins openai --source openai=@volter/twin-openai
Run the local executable from this app’s folder; if it is missing, complete the installation here before continuing.
Review the detected vendor and generated bindings before booting. Read the credential names and limitations below; the World supplies throwaway credentials. Then run your app's own command through the World:
./node_modules/.bin/volter world up
./node_modules/.bin/volter world run -- npm test
./node_modules/.bin/volter world log
./node_modules/.bin/volter world down
Here npm test is your app's existing command; replace it with your app or test command. down retains state.
A later up resumes it; do not reset or initialize again merely to return.
Publisher and catalog contribution instructions: the public publisher guide.
- the Responses API (Twenty, Rallly, Postiz and LibreChat, through the AI SDK's OpenAI provider and the openai SDK);
- Chat Completions (Workbench's agent, the on-call cookbook, Postiz, LibreChat), the models list, Files, Images (generations and edits), moderations, transcriptions and text to speech;
- LibreChat's Assistants v2: assistants, threads, messages, runs and their steps and tool outputs.
Around it are the dashboard pages (platform.openai.com: the log in and a project's API keys). The twin runs no model:
a turn is the World's scenario's, else a deterministic stub labeled [twin-stub:<model>].
A Protocol 3 pack (publisher guide). Its surface is generated
from OpenAI's published OpenAPI document (spec/). The derived core serves plain reads and writes. Handlers are in
src/semantics/<family>.ts, the scenario adapter in src/semantics/scenario.ts, and pages in src/screens.
world-openai serve [--port N] [--root DIR] [--read-only]
What it models
- Keys:
- A project key is made on the project's API keys page (shown once, held by its SHA-256), or issued to a World's applications by the credential door.
- A request with no key, or one the organization never made, is refused 401
invalid_api_key. So is a revoked key, or one of an archived project.
- Responses:
POST /v1/responses, streamed (named events, ending withresponse.completed) or not.- Function tools the stub calls while no tool output is pending;
previous_response_idcarrying the conversation. - Structured output (
text.formatwith a JSON schema) the stub answers with a value the schema admits.
- Chat Completions: the answer or its
chat.completion.chunkstream ending with[DONE], and tool calls. - Assistants v2:
- A run is worked when a read first looks at it.
- A run with function tools stops at
requires_actionfor their outputs, then completes with a stub reply. A run in flight can be cancelled. A run still waiting on its outputs at itsexpires_at, ten minutes after it was created, expires and refuses them. - The thread's messages and the run's steps are kept.
- Files: uploaded (multipart), read, downloaded, deleted. Missing locally held bytes are refused; refreshed file metadata does not supply content.
- Images:
POST /v1/images/generationsandPOST /v1/images/editsanswer a labeled placeholder image. DALL-E default URLs serve those bytes through the media lane for 60 minutes. - Moderations:
POST /v1/moderationsclassifies each input deterministically: text naming a category's own words is flagged in it, with its categories and scores; no model runs. - Speech:
POST /v1/audio/speechanswers an audio file in the format asked (mp3 unless named), billed by the characters it reads. - Transcriptions:
POST /v1/audio/transcriptionsanswers a labeled stub transcript, with the WAV duration from its header; other formats use a synthetic one-second duration. - Models: a static catalog.
- Realtime:
wss://api.openai.com/v1/realtime(Volter Harness's voice): every client event the reference lists: the session, the input audio buffer (append, commit, clear; no speech is detected in it), conversation items (create, retrieve, truncate, delete) and responses as events;output_audio_buffer.clear, WebRTC's and SIP's, is refused on the WebSocket. A response is the World's scenario's turn, else the labeled stub, spoken as silence with its transcript.
The subscription surface serves Open Autonomy, RH2, Browser Substrate and Volter Harness. On auth.openai.com it supplies browser consent with localhost callback, state and S256 PKCE, device user-code polling, authorization-code exchange, refresh and revocation. On chatgpt.com/backend-api/codex it serves Responses over HTTP/SSE and WebSocket, compaction and per-account model discovery. The native TUI’s /backend-api/wham usage, token activity, workspace-message and reset-credit views use a synthetic Plus account with no purchased credits. Account limits and expiry are explicit local policy where the private documentation gives no number. HTTP and socket model turns use configured scenarios or labeled deterministic stubs.
Doors
POST /_twin/accounts {email, name, password, role?}: a person of the World's organization, who logs in to the dashboard.POST /_twin/app-credentials: the Default project and a key for it, as the runtime issues them to a World's applications. It also issues the World’s synthetic subscription account and signed tokens;CODEX_HOMEis filled with a private directory containing Codex’sauth.jsonand file-storage config. The hosted browser/device pages accept the door’scodex_emailandcodex_password. No production account or key is used.
Not yet
Embeddings, fine-tuning, batches, uploads, evals, containers and the Admin API answer the documented gap. Vector stores supply the empty store and its readbacks that the published file-search examples require; the twin performs no embedding or retrieval. Stored chat completions and Responses support their published readbacks. The dashboard is limited to credential issuance; model calls are the product surface.
Undemanded private cloud tasks, remote configuration, account checks and workspace policy settings answer HTTP 404 in the pinned client’s accepted error envelope. Native cloud commands, remote control and experimental voice/plugin flows are outside these products’ configured subscription runtime; independently demanded REST and Realtime calls are described above.
Set up this release
The example uses OpenAI 3.0.3. Keep its dependency pins when following it.
For a complete example, follow Run a tool and stream its result. It includes the application code and its own exact dependency pins.
For a broader workflow, see Scripted answer and one-time refusal. Keep that example’s own dependency pins.
Use Node 22.6 or newer. Install this exact starter cohort in your app folder:
npm install --save-dev --save-exact @volter/world@3.0.158 @volter/world-core@3.0.148 @volter/world-runtime@3.0.156 @volter/world-console@3.0.149 @volter/twin-openai@3.0.3In your app’s folder, initialize a World with this implementation:
./node_modules/.bin/volter world init --name my-app --twins openai --source openai=@volter/twin-openaiReview the detected vendor and retain the generated bindings. The openai service’s source must select this version:
{
"source": {
"package": "@volter/twin-openai",
"version": "3.0.3"
}
}This is the source field, not a complete config. Keep the installed version, lockfile and generated service source in agreement. Use the release README for throwaway SDK credentials, seeds and limits.
The assessment records its own earlier tool versions under Measurements. This setup uses the current starter cohort.
Run your app’s own test command inside the World:
./node_modules/.bin/volter world up
./node_modules/.bin/volter world run -- npm test
./node_modules/.bin/volter world log
./node_modules/.bin/volter world downdown stops compute and retains state.
Versions and implementations
| Package / version | Publisher | Status | First use |
|---|---|---|---|
| @volter/twin-openai3.0.3 | volter-ai | Selected default | Passed |
| @volter/twin-openai3.0.2 | volter-ai | live | Not measured |
Evidence for 3.0.3
Installed first use · Passed
- Installed first use
- Passed
- Fresh app installation
- Verified
- Workflow scope
- Exact installed artifact; normal CLI initialization, unchanged SDK, result assertions and retained-state read-only resume where applicable
- Customer SDK versions
openai@7.28.0- CLI, kernel and runtime versions
@volter/world@3.0.147·@volter/world-core@3.0.147·@volter/world-runtime@3.0.147- World clock
- {"mode":"wall"}
- Retained-state readback
- Not applicable: This workflow requests an unstored completion and stream; it creates no vendor resource to read after restart.
- Stopped compute
- Verified
- Customer journey failures
- 0
API coverage, replay and browser measurements
Counts describe the declared HTTP surface, not separate command tables or other protocols. Consult the release README for those workflows.
- Assessment scope
- packaged-customer-journey; in-process
- Declared HTTP surface
- 60 served · 313 gaps · 373 declared operations
- Exercised HTTP operation coverage
- 41 / 373 declared operations (11%)
- Journey steps
- 150 answered / 175 steps
- Replay
- Equal across 2 runs
- Journey failures
- 0
- Browser target
- Not measured
- HTTP operations exercised through Chromium
- Not measured
- Chromium journey replay
- Not measured
- Browser response observation
- Not recorded
- Application-origin CORS coverage
- Not measured
- Native cookie-jar coverage
- Not measured
- DOM coverage
- Not measured
- Source code coverage
- Not measured
- State transition coverage
- Not measured
Operations not exercised
openai/codex:wham.accounts_send_add_credits_nudge_emailopenai/codex:wham.config_bundleopenai/codex:wham.create_taskopenai/codex:wham.settings_useropenai/codex:wham.tasksopenai/codex:wham.tasks_listopenai/codex:wham.tasks_turns_sibling_turnsopenai:CancelChatSessionMethodopenai:Compactconversationopenai:CreateChatSessionMethodopenai:CreateContaineropenai:CreateContainerFileopenai:CreateSkillopenai:CreateSkillVersionopenai:CreateVideoCharacteropenai:CreateVideoEditopenai:CreateVideoExtendopenai:CreateVideoRemixopenai:CreateWebhookEndpointopenai:CreateanAPIkeyforaserviceaccountopenai:Createanexternalstorageconfigurationopenai:Createcontentprovenancecheckopenai:DeleteContaineropenai:DeleteContainerFileopenai:DeleteSkillopenai:DeleteSkillVersionopenai:DeleteThreadMethodopenai:DeleteVideoopenai:DeleteWebhookEndpointopenai:Deleteanexternalstorageconfigurationopenai:Deleteorganizationspendlimitopenai:Deleteprojectspendlimitopenai:GetSkillopenai:GetSkillContentopenai:GetSkillVersionopenai:GetSkillVersionContentopenai:GetThreadMethodopenai:GetVideoopenai:GetVideoCharacteropenai:Getanexternalstorageconfigurationopenai:Getinputtokencountsopenai:Getorganizationspendlimitopenai:Getprojectsafetyalertopenai:Getprojectspendlimitopenai:Getsafetycaseopenai:ListContainerFilesopenai:ListContainersopenai:ListSkillVersionsopenai:ListSkillsopenai:ListThreadItemsMethodopenai:ListThreadsMethodopenai:ListVideosopenai:ListWebhookEndpointsopenai:ListWebhookEventTypesopenai:Listexternalstorageconfigurationsopenai:RetrieveContaineropenai:RetrieveContainerFileopenai:RetrieveContainerFileContentopenai:RetrieveVideoContentopenai:RetrieveWebhookEndpointopenai:RotateWebhookEndpointSigningSecretopenai:TestWebhookEndpointopenai:UpdateSkillDefaultVersionopenai:UpdateWebhookEndpointopenai:Updateorganizationspendlimitopenai:Updateprojectspendlimitopenai:Validateanexternalstorageconfigurationopenai:accept-live-sessionopenai:accept-realtime-callopenai:activateOrganizationCertificatesopenai:activateProjectCertificatesopenai:add-group-useropenai:add-project-groupopenai:addUploadPartopenai:admin-api-keys-createopenai:admin-api-keys-deleteopenai:admin-api-keys-getopenai:admin-api-keys-listopenai:archive-projectopenai:assign-group-roleopenai:assign-project-group-roleopenai:assign-project-user-roleopenai:assign-user-roleopenai:beta_Compactconversationopenai:beta_Getinputtokencountsopenai:beta_cancelResponseopenai:beta_createResponseopenai:beta_deleteResponseopenai:beta_getResponseopenai:beta_listInputItemsopenai:cancelBatchopenai:cancelEvalRunopenai:cancelFineTuningJobopenai:cancelUploadopenai:cancelVectorStoreFileBatchopenai:completeUploadopenai:create-groupopenai:create-liveopenai:create-organization-spend-alertopenai:create-projectopenai:create-project-roleopenai:create-project-service-accountopenai:create-project-spend-alertopenai:create-project-useropenai:create-realtime-callopenai:create-realtime-client-secretopenai:create-realtime-sessionopenai:create-realtime-transcription-sessionopenai:create-realtime-translation-client-secretopenai:create-roleopenai:createAgentopenai:createAgentEnvironmentFileopenai:createAgentEnvironmentTemplateopenai:createAgentSessionopenai:createAgentSessionEventsopenai:createBatchopenai:createCompletionopenai:createConversationopenai:createConversationItemsopenai:createEmbeddingopenai:createEvalopenai:createEvalRunopenai:createFineTuningCheckpointPermissionopenai:createFineTuningJobopenai:createImageVariationopenai:createThreadAndRunopenai:createTranslationopenai:createUploadopenai:createVaultopenai:createVaultCredentialopenai:createVectorStoreopenai:createVectorStoreFileopenai:createVectorStoreFileBatchopenai:createVideoopenai:createVoiceopenai:createVoiceConsentopenai:deactivateOrganizationCertificatesopenai:deactivateProjectCertificatesopenai:delete-groupopenai:delete-inviteopenai:delete-organization-spend-alertopenai:delete-project-api-keyopenai:delete-project-model-permissionsopenai:delete-project-roleopenai:delete-project-service-accountopenai:delete-project-spend-alertopenai:delete-project-useropenai:delete-roleopenai:delete-useropenai:deleteAgentopenai:deleteAgentEnvironmentTemplateopenai:deleteAgentSessionopenai:deleteAgentSessionArtifactopenai:deleteAssistantopenai:deleteCertificateopenai:deleteChatCompletionopenai:deleteConversationopenai:deleteConversationItemopenai:deleteEvalopenai:deleteEvalRunopenai:deleteFineTuningCheckpointPermissionopenai:deleteMessageopenai:deleteModelopenai:deleteResponseopenai:deleteVaultopenai:deleteVaultCredentialopenai:deleteVectorStoreopenai:deleteVectorStoreFileopenai:deleteVoiceConsentopenai:download-live-recordingopenai:downloadFileopenai:fork-live-sessionopenai:getCertificateopenai:getChatCompletionopenai:getChatCompletionMessagesopenai:getConversationopenai:getConversationItemopenai:getEvalopenai:getEvalRunopenai:getEvalRunOutputItemopenai:getEvalRunOutputItemsopenai:getEvalRunsopenai:getRunStepopenai:getThreadopenai:getVectorStoreopenai:getVectorStoreFileopenai:getVectorStoreFileBatchopenai:getVoiceConsentopenai:hangup-live-sessionopenai:hangup-realtime-callopenai:inviteUseropenai:list-audit-logsopenai:list-group-role-assignmentsopenai:list-group-usersopenai:list-groupsopenai:list-invitesopenai:list-organization-spend-alertsopenai:list-project-api-keysopenai:list-project-group-role-assignmentsopenai:list-project-groupsopenai:list-project-rate-limitsopenai:list-project-rolesopenai:list-project-service-accountsopenai:list-project-spend-alertsopenai:list-project-user-role-assignmentsopenai:list-project-usersopenai:list-projectsopenai:list-rolesopenai:list-user-role-assignmentsopenai:list-usersopenai:listAgentEnvironmentFilesopenai:listAgentEnvironmentTemplatesopenai:listAgentSessionArtifactsopenai:listAgentSessionEventsopenai:listAgentSessionItemsopenai:listAgentSessionSubagentItemsopenai:listAgentSessionSubagentTurnItemsopenai:listAgentSessionSubagentTurnsopenai:listAgentSessionSubagentsopenai:listAgentSessionTurnsopenai:listAgentSessionsopenai:listAgentsopenai:listBatchesopenai:listChatCompletionsopenai:listConversationItemsopenai:listEvalsopenai:listFilesopenai:listFilesInVectorStoreBatchopenai:listFineTuningCheckpointPermissionsopenai:listFineTuningEventsopenai:listFineTuningJobCheckpointsopenai:listInputItemsopenai:listOrganizationCertificatesopenai:listPaginatedFineTuningJobsopenai:listProjectCertificatesopenai:listRunsopenai:listVaultCredentialsopenai:listVaultsopenai:listVectorStoreFilesopenai:listVectorStoresopenai:listVoiceConsentsopenai:modify-projectopenai:modify-project-useropenai:modify-useropenai:modifyCertificateopenai:modifyRunopenai:modifyThreadopenai:modifyVectorStoreopenai:pauseFineTuningJobopenai:refer-live-sessionopenai:refer-realtime-callopenai:reject-live-sessionopenai:reject-realtime-callopenai:remove-group-useropenai:remove-project-groupopenai:resumeFineTuningJobopenai:retrieve-groupopenai:retrieve-group-roleopenai:retrieve-group-useropenai:retrieve-inviteopenai:retrieve-organization-data-retentionopenai:retrieve-organization-spend-alertopenai:retrieve-projectopenai:retrieve-project-api-keyopenai:retrieve-project-data-retentionopenai:retrieve-project-groupopenai:retrieve-project-group-roleopenai:retrieve-project-hosted-tool-permissionsopenai:retrieve-project-model-permissionsopenai:retrieve-project-roleopenai:retrieve-project-service-accountopenai:retrieve-project-spend-alertopenai:retrieve-project-useropenai:retrieve-project-user-roleopenai:retrieve-roleopenai:retrieve-useropenai:retrieve-user-roleopenai:retrieveAgentopenai:retrieveAgentEnvironmentopenai:retrieveAgentEnvironmentTemplateopenai:retrieveAgentSessionopenai:retrieveAgentSessionArtifactopenai:retrieveAgentSessionArtifactContentopenai:retrieveAgentSessionSubagentopenai:retrieveAgentSessionSubagentTurnopenai:retrieveAgentSessionTurnopenai:retrieveBatchopenai:retrieveFileopenai:retrieveFineTuningJobopenai:retrieveModelopenai:retrieveVaultopenai:retrieveVaultCredentialopenai:retrieveVectorStoreFileContentopenai:rotateVaultCredentialopenai:runGraderopenai:searchVectorStoreopenai:unassign-group-roleopenai:unassign-project-group-roleopenai:unassign-project-user-roleopenai:unassign-user-roleopenai:update-groupopenai:update-organization-data-retentionopenai:update-organization-spend-alertopenai:update-project-data-retentionopenai:update-project-hosted-tool-permissionsopenai:update-project-model-permissionsopenai:update-project-rate-limitsopenai:update-project-roleopenai:update-project-service-accountopenai:update-project-spend-alertopenai:update-roleopenai:updateAgentopenai:updateAgentEnvironmentTemplateopenai:updateAgentSessionopenai:updateChatCompletionopenai:updateConversationopenai:updateEvalopenai:updateVectorStoreFileAttributesopenai:updateVoiceConsentopenai:uploadCertificateopenai:usage-audio-speechesopenai:usage-audio-transcriptionsopenai:usage-code-interpreter-sessionsopenai:usage-completionsopenai:usage-costsopenai:usage-embeddingsopenai:usage-file-search-callsopenai:usage-imagesopenai:usage-moderationsopenai:usage-vector-storesopenai:usage-web-search-callsopenai:validateGrader
Conformance results
- decided: 0 failures · every served operation is decided with its demand; every demanded and every refreshed operation is served
- published: 0 failures · what a release publishes holds every unit: its manifest, its spec and its journeys
- cited: 0 failures · every vendor fact cited is recorded as a page that answered, each quote found on it
- refresh: 0 failures · every stored resource of a vendor-backed unit declares how it is read back, and a unit that sends events ingests the vendor's
- registered: 0 failures · a vendor-backed unit, lane or not, reaches the registered pack's state system
- allowance: 0 failures · a rate budget above the fallback rests on the vendor's documented allowance, cited in its manifest
- client: 0 failures · driven by the vendor's own client (its official SDK), served as a World runs it, the vendor's documented behaviour holds · 5 case(s) through the vendor's client
- life: 0 failures · the life walked over HTTP against the pack served as a World runs it, with its scenario: every check held
- standalone: 0 failures · served by its server.ts as a World runs it, the pack answers HTTP and the boot probe, and each declared socket upgrades
Publisher, admission and provenance
- Publisher
- volter-ai/twin-packs-open
- Source commit
- 7d221ec6209fe08ccdfc4909e3f2d348eba91447
- Catalog record commit
- fb77a946981be1832ff85a1484625f5990625657
- Package integrity
sha512-mESE509bpr3Ecpur+NEq/7s78qUa8aI4W0DV/M3EGkWNBKBNi6cH7CZ/+/rY9OmAtG9dsReAzVOww9uXxeqkKQ==- Admission mode
- Trusted internal publisher · maintainer merge
- Catalog assessment
- Bundled report checksum verified
- Assessed at
- Not recorded
- Assessment input head
- 68f8d7e7602a621cfebc07cd64035e69640648b7
- Evidence
- Assessment and admission
Catalog snapshot · @volter/twin-catalog@0.2.62
- Source commit
2d891e44624083a0ee54c058f1a566f050f38f1e- Catalog digest
72cc7d129522aaa089c84552b9d0839ab4cb0924ee7bd56ab359f827cddaa258- Installer integrity
sha512-MelxBw6h8W8k67EMu7SlYXOPwg8Z0QVcpDNKEcMzB8gH4v0JfYK2vuL7WdXNY1epjPZqxyK/5pEvDCiRqU0nAA==
