Overview
The ChatGPT Simulator is a local development environment that replicates ChatGPT’s widget runtime.Why Use the Simulator?
Instant Feedback
See changes immediately with hot module replacement. No more constantly reloading ChatGPT.
Visualize Design Variations
Toggle between light/dark themes, mobile/tablet/desktop views, and other platform states.
Testing
Perform manual and automated tests locally. Create CI/CD integration and regression tests.
No Deployment Needed
Develop locally without setting up MCP servers.
Quick Start
If you set up your project via the sunpeak framework, the simulator is already set up! Simply run it with:To configure the simulator manually, see Add to Existing Project.
Simulations
Simulations define test scenarios for your resources—combining tool definitions, mock data, and platform state.- Framework (JSON)
- Library (TypeScript)
In the sunpeak framework, simulations are JSON files with auto-discovery. The resource component and metadata are automatically linked based on filename prefix.In the sunpeak framework, simulations are JSON files in The resource component (See Framework Simulations for the complete JSON schema and conventions.
src/simulations/. The filename must start with the resource name:example-resource.tsx) and metadata (example-resource.json) are automatically linked based on the example- prefix in the simulation filename.For library users not using the framework, see the Simulation API Reference for creating simulations programmatically in TypeScript.
ChatGPTSimulator - for local testing
ChatGPTSimulator - for local testing
The For custom setups, you can manually configure the simulator:View ChatGPTSimulator API Reference
ChatGPTSimulator component provides a local development environment that replicates ChatGPT’s widget runtime.For projects using the sunpeak framework, simulations are auto-discovered. Just run:runMCPServer - for platform testing
runMCPServer - for platform testing
The See runMCPServer API Reference for configuration options and connecting to ChatGPT.View MCP Server API Reference
runMCPServer function serves your simulations to ChatGPT via the Model Context Protocol.Dive Deeper
Framework Simulations
JSON-based simulations with auto-discovery for framework users.
Simulation API Reference
TypeScript interface for library users.
ChatGPTSimulator API Reference
Full component documentation and configuration options.