Open Interpreter CLI Cheatsheet - Terminal AI Coding Agent Full Reference
The substantive difference between Open Interpreter and other coding agents is that it plans first and shows you the steps before touching files, which makes it usable on a real project rather than only in a throwaway sandbox - useful precisely when you are not sure how far the agent will go. When it fits: the task is operating an environment you already have, such as batch file processing, config edits, running analysis scripts, rather than authoring a new feature; and you need it to execute commands to verify results instead of only emitting code for you to run. Model selection has an order too - verify prompts and safety flags against a cloud model first, then switch to a local model, so you are never debugging two variables at once. This sheet covers installation and launch, run modes and flags, safety and interaction, and advanced usage, with emphasis on the auto-execute switch: it suits read-only or confined environments, and before using it in a repo with uncommitted work, confirm the working tree is clean.
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