Open Interpreter CLI Cheatsheet - Terminal AI Coding Agent Full Reference
Open Interpreter turns an LLM into a terminal agent that reads files, edits code, and runs commands, working with cloud models like OpenAI or Anthropic as well as local models. It targets developers who want an AI agent inside their local workflow without leaving the terminal, and reviews changes before applying them. This sheet covers install, run modes, safety flags, and interactive commands so you can start on real projects immediately.
Install and Launch 5
pip install open-interpreterpipx install open-interpreterinterpreterinterpreter --versioninterpreter --helpRun Modes and Flags 7
interpreter --localinterpreter --model gpt-4ointerpreter -yinterpreter --osinterpreter --api_base https://api.openai.com/v1interpreter --api_key sk-xxxxinterpreter --profile codingSafety and Interaction 7
interpreter --safe_modeinterpreter --serverinterpreter resume --last/model/help/clear/exitAdvanced 3
vim ~/.interpreter/profile.yamlinterpreter --verbosepython -c "from interpreter import interpreter; interpreter.chat('refactor utils')"Tips
- Open Interpreter plans first and asks you to review; treat -y as an automation switch, not a daily default, to avoid unintended edits.
- Use --local with an OpenAI-compatible endpoint from LM Studio or Ollama to run fully offline.
- Switch models mid-session with /model without restarting the conversation.
FAQ
How is Open Interpreter different from chat-style Q and A?
It reads, edits, and runs commands on your project in the terminal and reviews changes with you before applying; plain Q and A only returns text.
Must I use a cloud API?
No. --local uses a local model, or point --api_base at any OpenAI-compatible endpoint including self-hosted ones.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Sep 10, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us