OmniAI for VS Code
Build and edit projects with the OmniAI agent, running on your own machine — no
Docker, no virtualisation, no 2 GB image pull.
What changed in 0.2.0
Earlier versions ran the agent inside a container. That meant installing Docker
or Podman, pulling a ~2 GB image, and waiting for a VM to boot on macOS and
Windows before the first prompt could run.
The agent now runs as an ordinary process. Setup is a ~45 MB Python environment,
created once, in the background.
The container is still available (omniai.agentRuntime: "docker") — its image
carries a full toolchain (JDK, Maven, Go, Rust, .NET, PHP, Ruby, Angular CLI)
that a laptop usually does not, so it remains the better choice for a project
that needs one of those and cannot install it locally.
Requirements
- VS Code 1.85 or newer
- Python 3.10 or newer, on your
PATH
- macOS:
brew install python@3.12
- Windows:
winget install Python.Python.3.12
- Linux:
sudo apt install python3 python3-venv
- An OmniAI account
Nothing else. The extension builds its own isolated environment under VS Code's
storage directory and never touches your system or project Python.
Getting started
- Sign in —
OmniAI: Sign In from the command palette.
- Open a project folder.
- Open the chat —
Ctrl/Cmd+Shift+I — and describe what you want.
The first run sets up the agent environment (about a minute). After that it
starts immediately.
To link a folder to an existing OmniAI project, run
OmniAI: Link This Folder to a Project.
The workspace lease
A project can be edited here or in the web builder. Letting both write at once
produces a state neither side can explain, so one side holds the lease at a
time and the other is read-only until it moves.
The status bar shows who has it:
|
|
| 🔓 OmniAI: free |
Nobody is editing. Click to take it. |
| 🔒 OmniAI: yours |
You hold it. The agent can run here. |
| ☁️ OmniAI: in use elsewhere |
Held by the web, or another machine. |
Starting an agent job takes the lease automatically if it is free. If someone
else holds it you can request a handover (they get a prompt) or take it
anyway.
Taking it is safe for files — nothing of theirs is deleted — but any changes they
have not synced stay on their machine until they reconcile.
Handing it back
OmniAI: Hand Workspace Back pushes your changes and releases the lease. The
extension offers this automatically after a job finishes.
Conflicts
If the same file changed in both places, your version is never overwritten.
The incoming version is written beside it as <file>.omniai-remote and opened in
a diff view. Resolve it, delete the .omniai-remote file, and hand back.
The lease cannot be released while conflicts are staged.
What gets synced
Everything git would track, plus dotfiles git tracks — respecting .gitignore
and an optional .omniaiignore. Rebuildable directories (node_modules,
dist, __pycache__, .venv, …) are always skipped.
Files over 10 MB are reported, not silently dropped. Credential-shaped files
(.env, *.pem, id_rsa, .npmrc) are flagged before the first upload so you
can add them to .omniaiignore — they are not dropped automatically, because a
project may genuinely need its .env on the platform.
Command safety
The local runtime is not a sandbox. Commands run as you, with your files and
credentials in reach. The extension enforces a policy on every command the agent
tries to run:
| Setting |
Behaviour |
strict |
Asks before anything that is not a recognised build, test or VCS command. |
balanced (default) |
Runs recognised development commands; asks about anything else; refuses the dangerous. |
yolo |
Runs everything except the unrecoverable. |
Even on yolo, these are always refused: rm -rf /, deleting your home
directory, curl … | sh, privilege escalation (sudo, su), writing to raw
block devices, and reading credential stores (~/.ssh, ~/.aws, ~/.kube,
keychains).
When the agent needs something outside the allowlist you get a modal showing the
exact command. Dismissing it counts as refusal.
Spawned commands also receive a minimal environment built from an allowlist,
so a generated npm test cannot read unrelated API keys out of your shell
profile.
Settings
| Setting |
Default |
Purpose |
omniai.agentRuntime |
native |
native, docker, or auto. |
omniai.commandPolicy |
balanced |
How much runs without asking. |
omniai.pythonPath |
(empty) |
Force a specific interpreter. |
omniai.autoAcquireLease |
true |
Take the workspace automatically when a job starts. |
omniai.apiUrl |
https://omniai.me.uk/api |
For self-hosted deployments. |
Commands
Runtime — Set Up Local Agent, Show Runtime Info,
Rebuild Local Agent Environment, Register This Machine
Workspace — Take Workspace, Hand Workspace Back, Sync Workspace Now,
Review Sync Conflicts, Link This Folder to a Project
Troubleshooting
"Python 3.10 or newer is required"
Install Python, or point omniai.pythonPath at an interpreter. On macOS, the
python3 shipped by Xcode is often a stub — Homebrew's is a real one.
Setup fails on Debian/Ubuntu
python3-venv is a separate package: sudo apt install python3-venv.
The agent says a tool is missing
It probes your machine at startup and plans around what it finds, rather than
assuming a container's toolchain. OmniAI: Show Runtime Info lists what it
detected. Install what you need, or switch to omniai.agentRuntime: "docker".
Something is wrong with the environment
OmniAI: Rebuild Local Agent Environment deletes and recreates it. Your project
files are not touched.
Windows: commands fail with "not recognized"
The agent writes POSIX commands, routed through Git Bash or WSL. Install
Git for Windows if neither is present —
OmniAI: Show Runtime Info shows which shell was found.
Privacy
- Model calls go through the OmniAI backend, which meters tokens. No provider
API keys are stored on your machine.
- Your code stays local unless you sync it or hand the workspace back.
- The agent's scratch directory (
.omniai-agent/) is added to .gitignore
automatically — it holds a job token and should not be committed.