Right-click, "Run Here" for tens to hundreds of lines of code generated by large language models as "one-time" programs.
After installation, the program will automatically register a Windows 11 context menu item: Run Code Here.
Supports the following languages:
batpowershellpythonluanimgo
On Chinese systems, the default runtime environment for some languages (such as lua) may cause encoding issues.
Switch to the UTF-8 runtime environment in settings to resolve these problems.
These two modes control the generation path of temporary files. For general scripts, the Ensure Cleanup mode is sufficient.
However, if your script contains statements like os.path.abspath(__file__) that retrieve the actual script path, you'll need to use Ensure Compatibility mode.
Note that in Ensure Compatibility mode, temporary files may remain in the directory if not properly cleaned up due to abnormal terminal closure or other reasons.
Built-in Large Language Model Integration (contributed by @Tritium0041)
RunOnce supports built-in large language model integration. Scripts generated by the model will be automatically pasted into the editor. Configure the API KEY in Settings → LLM Settings. OpenAI-compatible API calls are supported.
