Chat with an AI model in your terminal without opening a browser, using any OpenAI or Anthropic-compatible API endpoint
Run AutoRun in web UI mode to get a browser-based chat interface on localhost for a more visual coding assistant experience
Pipe a code snippet or question to AutoRun in non-interactive mode to get an AI answer as plain text for use in scripts
Switch between different AI providers or models mid-session using in-REPL commands without restarting the tool
Run the provided install.bat (Windows) or install.sh (macOS/Linux) to create a venv and register the autorun command.
AutoRun is a command-line AI coding assistant written in Python that connects to any AI service compatible with the OpenAI or Anthropic API format. You configure an API endpoint and key, then run it from a terminal to ask coding questions, get explanations, or request help with code in an interactive session. The tool supports three methods for API configuration. A first-run setup wizard walks you through entering the API type, base URL, key, and model name on first launch. The same information can be provided through environment variables set before launching. Or you can configure the connection from inside the running session using short commands such as /api and /model. Configuration is stored in a file in your home directory so it persists between sessions. Once running, AutoRun offers three modes of use. The default is an interactive REPL where you type questions and receive answers in the terminal. A web UI mode starts a local server at a configurable port, accessible in your browser, that provides a graphical chat interface for the same underlying functionality. A pipe mode lets you pass a single question on the command line and receive the answer as plain text, which makes it straightforward to integrate into scripts or pipelines. Installation requires Python 3.8 or newer. The recommended approach is a provided install script (a batch file on Windows, a shell script on macOS and Linux) that creates a virtual environment and registers a global autorun command. Manual installation via pip is also supported. The README includes a bilingual section with the same content in Chinese for Mandarin-speaking users. The README does not mention a license.
← gao-ruilin on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.