@volter/twin-openai
OpenAI
Local OpenAI Responses, Chat Completions and tool-use workflows. Replies use configured scenarios or labeled deterministic stubs; no model runs.
Publisher README included in @volter/twin-openai 3.0.2. Setup gives the installation instructions for this selected version.
A local OpenAI API. It serves the calls the applications make (journeys/demand.json):
Use with an existing app
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.92 @volter/twin-openai@3.0.2
npx volter world init --name my-app --twins openai --source openai=@volter/twin-openai
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:
npx volter world up
npx volter world run -- npm test
npx volter world log
npx 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
Use Node 22.6 or newer. Install the CLI, then the exact packages shown alongside:
npm install -g @volter/world@3.0.108In your app’s folder, initialize a World with this implementation:
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.2"
}
}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.
Run your app’s own test command inside the World:
volter world up
volter world run -- npm test
volter world log
volter world downdown stops compute and retains state.
Versions and implementations
| Package / version | Publisher | Status | First use |
|---|---|---|---|
| @volter/twin-openai3.0.2 | volter-ai | Selected default | Not measured |
Evidence for 3.0.2
Installed first use · Not measured
Installed first use was not measured for this release. HTTP coverage and publisher trust do not establish this result.
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
- a7a76117050be67d8cecb3c19da3900044c30bf8
- Catalog record commit
- 2064bfcc2bc3ac5db0cfbb215fd83ff931d9cb10
- Package integrity
sha512-DbNSre3DPt6mY1VKRX9Tdevl2Gg0l2vi9Jx7FGH23Xl3WEV+tWCyiUMDSDc8uoCBT0p1VUR7xz8svjRDukDORw==- Admission mode
- Trusted internal publisher · maintainer merge
- Catalog assessment
- Bundled report checksum verified
- Assessed at
- Not recorded
- Assessment input head
- 98414ea7b82bd934874d2d7507f4c32c4b931116
- Evidence
- Assessment and admission
Catalog snapshot · @volter/twin-catalog@0.2.41
- Source commit
a4c5e0664985a7f5a173b58cd307b88a7ddd2795- Catalog digest
5103e721dd9632a05ec4d5348d1b9e668ee092b3edf634c0e4b08f08efb76527- Installer integrity
sha512-uadY72Kz68IvyrNGcUCyJIOXAPQJz9dsyUgG7DUpTVFgZNseWyEQ1We/cSDi4Z9gPtd11owQAJ3EtAuIutcSQw==