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.

AI CLI·22 commands·Last updated 2026-09-10
open-interpreterinterpreteraiagentcoding-agentclilocal-model

Install and Launch 5

pip install open-interpreter
Install Open Interpreter via pip
pipx install open-interpreter
Isolated install via pipx (recommended)
interpreter
Start an interactive session in the cwd
interpreter --version
Print the installed version
interpreter --help
List all commands and flags

Run Modes and Flags 7

interpreter --local
Run with a local model (no cloud key)
interpreter --model gpt-4o
Select a cloud model
interpreter -y
Auto-accept all actions (use with care)
interpreter --os
Allow the agent to control the OS
interpreter --api_base https://api.openai.com/v1
Point at a custom OpenAI-compatible endpoint
interpreter --api_key sk-xxxx
Pass the API key directly
interpreter --profile coding
Use a named profile config

Safety and Interaction 7

interpreter --safe_mode
Enable safe mode to limit risky actions
interpreter --server
Start a CDP server for the web UI
interpreter resume --last
Resume the most recent session
/model
Switch model during a session
/help
Show interactive help
/clear
Clear the current conversation
/exit
Quit the interpreter

Advanced 3

vim ~/.interpreter/profile.yaml
Edit profile to set default model and behavior
interpreter --verbose
Print verbose debug output
python -c "from interpreter import interpreter; interpreter.chat('refactor utils')"
Call it programmatically from Python

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