- Step1: Install via npm or include the script in your HTML.
- Step2: Import CodeBox from the package or CDN.
- Step3: Set your OpenAI API key and enable the Code Interpreter plugin.
- Step4: Initialize CodeBox with configuration options (element selector, model).
- Step5: Mount CodeBox to the target DOM node.
- Step6: Handle execution events and retrieve outputs via provided callbacks.