Run OpenAI-style Python in your browser.
Model Coder is an educational sandbox for learning basic OpenAI-style Python coding syntax. It lets you experiment with prompts, responses, streaming, and async patterns in a safe environment.
The app runs entirely in your browser using PyScript for Python execution and supports dual-mode inference:
Toggle between modes using the GPU/CPU button in the toolbar. No prompts, code, or output are sent to external services.
Use the following parameters in your code to connect to the local inference engine:
https://local/openaikey123local-llm
Prompts are filtered locally using a moderation word list. If a blocked term is detected,
the app returns: I'm sorry. I can't help with that..
To get started, select a sample from the dropdown or write your own code in the editor pane, then click the run button. Check the model status in the top left to see when the model is ready to use. Happy coding!