Changelog / 0.4.0

Omi CLI 0.4.0

November 21, 2026

The biggest Omi CLI release yet: run your own models (local with Ollama or LM Studio, or any provider with your own key), rewind code and chat to any earlier task, hooks, custom commands and skills, git worktrees for parallel sessions, a command sandbox, PR reviews on GitHub, and a VS Code extension.

In this release

  • Your own modelsomi -m ollama:<model> or lmstudio:<model> runs fully local with no sign-in; openai:, anthropic:, gemini:, deepseek:, and openrouter: use your own API key; byo: talks to any OpenAI-compatible server. Those turns go straight to the provider and never count against your Omi limits.
  • /rewind [n] puts the code and the conversation back to before any task in the session (or just the code, or just the chat).
  • Hooks on SessionStart, UserPromptSubmit, PreToolUse, PostToolUse and Stop (.omi/settings.json); exit code 2 blocks. Project hooks run only after you trust them.
  • Custom slash commands (.omi/commands/<name>.md, with $ARGUMENTS) and skills (.omi/skills/<name>/SKILL.md). Commands and skills written for Claude Code in .claude/ work as they are.
  • omi -w <name> works in its own git worktree, so parallel sessions never touch each other's files.
  • --sandboxcommands may write only inside the project, with no network (macOS built in, Linux with bubblewrap).
  • omi review prints a Markdown review of your branch; omi github writes a GitHub Actions workflow that reviews every pull request and answers @omi in PR and issue comments.
  • A VS Code extension (also for Cursor and other VS Code-based editors): open Omi beside your code and send the file or selection.

Your own models

Put a provider in front of the model name. ollama: and lmstudio: run on your computer, offline, and need no BuildItOmi sign-in. openai:, anthropic:, gemini:, deepseek:, and openrouter: use your own API key from OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, or OPENROUTER_API_KEY. byo: talks to any OpenAI-compatible server at OMI_BYO_BASE_URL.

Those turns go straight from your computer to that provider. They never pass through the Omi CLI service and never count against your Omi limits; your key never leaves your computer except to its own provider. web_search still uses the Omi service, so it needs a sign-in.

Pick one any time with /model ollama:qwen3-coder; /model auto goes back to Omi's models.

omi -m ollama:qwen3-coder
ANTHROPIC_API_KEY=… omi -m anthropic:claude-sonnet-4-5
OMI_BYO_BASE_URL=http://localhost:8000/v1 omi -m byo:my-model

Rewind

/rewind lists the tasks in this session. /rewind 3 puts every file changed since task 3 back how it was and makes the conversation forget tasks 3 onward. /rewind 3 code only puts back the files; /rewind 3 chat only rewinds the conversation. /undo still undoes the last task's files.

/rewind
/rewind 3
/rewind 3 code

Hooks

Add commands to .omi/settings.json (this project) or ~/.omi/settings.json (every project) under "hooks", for SessionStart, UserPromptSubmit, PreToolUse, PostToolUse and Stop. Each gets the event as JSON on stdin. A matcher (a tool name or regular expression) limits PreToolUse and PostToolUse to some tools.

Exit code 2 blocks: PreToolUse stops the tool, UserPromptSubmit stops the prompt, and Stop sends Omi back to work; what the hook prints to stderr goes to Omi. Text a UserPromptSubmit or SessionStart hook prints is added as context.

Project hooks are commands from the repository, so Omi shows them and runs them only after you trust that exact file (--trust-hooks for scripts). Claude Code's hook format is accepted too.

{ "hooks": { "PostToolUse": [{ "matcher": "edit_file|write_file", "command": "npx prettier --write ." }] } }
/hooks

Custom commands and skills

Each .omi/commands/<name>.md (or ~/.omi/commands/ for every project) becomes /<name>. $ARGUMENTS is what you type after it, $1 to $9 its words; a description: line in front matter shows in /commands. Folders make namespaces (/git:pr).

A skill is a folder with SKILL.md (name and description in front matter) in .omi/skills/ or ~/.omi/skills/. Omi sees the list and reads a skill when a task matches it.

Commands and skills in .claude/commands and .claude/skills work as they are.

/fix-issue 142
/commands
/skills

Worktrees, sandbox, review

omi -w <name> makes a git worktree at .omi/worktrees/<name> on branch omi/<name> and works there, so several Omi sessions can work on one repository at once. omi worktree list and omi worktree remove <name> tidy up.

--sandbox runs every command so it can write only inside the project and the temp folders, with no network; --sandbox-net allows the network. It uses macOS's built-in sandbox, or bubblewrap on Linux.

omi review --base main reviews your branch's changes and prints Markdown, reading only. omi github writes .github/workflows/omi.yml: it reviews every pull request, and a repository member's "@omi <task>" comment on a PR or issue runs the task and pushes the change (opening a PR for an issue). Add your token as the secret OMI_TOKEN. --output-format markdown prints only the final answer.

omi -w fix-login
omi --sandbox
omi review --base main
omi github

VS Code extension

Download cli.builditomi.com/omi-cli.vsix and install it (Extensions → … → Install from VSIX). Cmd/Ctrl+Esc opens Omi beside your code; Cmd/Ctrl+Alt+K sends the selection as @file (lines a-b). It runs the real omi, so every feature and model works. Also works in Cursor, Windsurf and other VS Code-based editors.

Changed since this release

  • • 0.5.0: omi github's workflow also runs cloud agents (omi cloud), installs Omi from cli.builditomi.com, and uses Node.js 22. Run omi github in a new repository, or copy the new workflow over the old one.

Get it

A newer version is out (0.5.0); updating installs that, with everything in this release. Run omi update, or install again with npm install -g @builditomi/cli.

Download the VS Code extension (.vsix) · Docs