AI assistant with computer automation tools designed for small local LLMs. Grid-based screen interaction, persistent Python environment, cross-platform compatibility.
- Grid Screenshots: A1, B2, C3 grid overlays for precise clicking
- Persistent Python: Jupyter-like environment with auto-package install
- Cross-Platform: Wayland, X11, Windows, macOS support
- XML Tags: Simple response format for small LLMs
- Compact Code: Clean, minimal codebase
# Install globally with uv
uv tool install git+https://github.com/Notnaton/oiv2.git
# Or install locally for development
git clone <repo> && cd oiv2 && uv sync# Check system and get setup commands if needed
oiv2-setup
# Test installation
oiv2-test
# Launch the assistant
interpreterWayland: sudo apt install grim dotool
X11: sudo apt install scrot xdotool
Windows/macOS: No additional setup needed
screenshot()- Grid overlay screenshotclick_grid("A1")- Click grid positiontype_text("hello")- Type textpress_key("enter")- Press keyspython_exec("x=42")- Run Python (persistent)ls(),cat(),write()- File operationsrun("command")- Shell commands
User: Take a screenshot and click the browser icon
AI: <thinking>Need to see screen first, then locate browser</thinking>
<message>I'll take a screenshot to see what's available</message>
<tool_name>screenshot</tool_name>
<tool_args>{}</tool_args>
# After seeing grid: Browser appears to be at B2
<tool_name>click_grid</tool_name>
<tool_args>{"label": "B2"}</tool_args>
- 4x4 default grid (A1-D4)
- Click using simple coordinates instead of "blue button top-left"
- Perfect for small LLMs that can't do complex visual reasoning
- Zoom into grid cells for detailed interaction
Works with any OpenAI-compatible server:
- Ollama:
ollama serve(update base_url to localhost:11434) - LM Studio: Usually localhost:1234 (default)
- Text Generation WebUI: With OpenAI extension
Best models: Code Llama 7B+, Mistral 7B+, Qwen2.5 7B+
After installation, these commands are available globally:
interpreter- Main assistant interfaceoiv2-setup- Check system requirementsoiv2-test- Verify installationoiv2- Alternative name for main interface
Add tools by creating files in tools/ with @function_tool decorator. Tools auto-register on import.
License: MIT