Getting Started
Omx is a small, helpful, zero-telemetry coding assistant that runs in your terminal.
Installation
npm install -g omni-context-cli
Quick Start
Navigate to your project directory and run:
omx
Omx supports OpenAI, Anthropic, Gemini, and OpenAI Responses API formats.
Adding Your First Model
On first run, you'll need to add a model before you can start chatting:
- Press
Escapeto open the menu - Select Manage your model list
- Select Add a new model
- Fill in the form:
- API Type: Choose
Anthropic,OpenAI,Gemini, orOpenAI Responses API - Model Name: The model identifier (e.g.
claude-sonnet-4-20250514,gpt-4o) - API Key: Your API key
- API URL: The base API endpoint (e.g.
https://api.anthropic.com,https://api.openai.com/v1) - Context Size (K): Max context window in thousands (e.g.
200for 200K) - Nickname: A friendly name to display in the UI
- API Type: Choose
Press Enter after each field, and Escape to go back.
Command Line Options
| Option | Description |
|---|---|
-c, --continue | Continue from your last session |
-d, --diagnostic | Enable diagnostic mode to save request/response JSON |
-a, --cost-analysis | Record token usage to CSV for cost analysis |
-s, --serve | Start as HTTP server instead of TUI |
-w, --web | Open web UI in browser (requires --serve) |
-p, --port <port> | Port for server mode (default: 5281) |
-H, --host <host> | Host for server mode (default: localhost) |
--workflow <preset> | Override workflow preset (normal, specialist, artist, explorer, assistant) |
--scope <scope> | Where to save config changes: global (default), project, or memory |
--approve-write | Require approval before write tools (Bash, Edit, Write) |
--approve-all | Require approval before all tools |
--install-vscode-extension | Install the VS Code extension |
--list-providers | List available model providers |
--add-provider <id> | Add models from a provider (requires --api-key) |
--remove-provider <id> | Remove all models from a provider |
--api-key <key> | API key for --add-provider |
--parent-pid <pid> | Exit when the parent process dies (requires --serve) |
--tls | Enable HTTPS for server mode |
--acp | Run as ACP agent over stdio (for editor integrations like Zed) |
--tls-cert <path> | Path to TLS certificate file |
--tls-key <path> | Path to TLS private key file |
--lang <code> | Set UI language (e.g. en-US, zh-CN) |
--set-password [password] | Set a password for web UI authentication |
--clear-password | Remove the password and disable web UI authentication |
--install-daemon | Install as a systemd service (Linux only) |
--export-project <path> | Export project data (sessions, memory) to a gzip archive |
--import-project <path> | Import project data from a gzip archive |
Examples:
# Start a new session
omx
# Resume where you left off
omx --continue
# Debug API calls
omx --diagnostic
# Track token costs
omx --cost-analysis
# Start web UI in browser
omx --serve --web
# Install VS Code extension
omx --install-vscode-extension
# Require approval for file-modifying tools
omx --approve-write
# Require approval for all tools
omx --approve-all
# Start in assistant mode
omx --workflow assistant
# Run as ACP agent (for Zed editor integration)
omx --acp
# Save config changes only to the current project
omx --scope project
# Bind to all network interfaces
omx --serve --host 0.0.0.0
# Set UI language to Chinese
omx --lang zh-CN
# Set a password for the web UI
omx --set-password
# Install as a background service on Linux
sudo omx --install-daemon
# Export project data for backup or transfer
omx --export-project ./backup
# Import project data from an archive
omx --import-project ./backup.tar.gz
Proxy Configuration
Omx supports HTTP and HTTPS proxies. You can set a proxy in two ways:
Via the config file: Set the proxy field in ~/.omx/omx.json:
{
"proxy": "http://proxy.example.com:8080"
}
Via environment variables: Omx automatically picks up HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables when no proxy is configured in the config file.
Supported URL formats:
http://proxy.example.com:8080
https://proxy.example.com:8443
Project Instructions
Omx automatically loads project-specific instructions at the start of each conversation. It looks for files in this order:
OMX.mdin the current directoryCLAUDE.mdin the current directory~/.omx/OMX.md(user-wide fallback)
The first file found is used. Write anything you want Omx to know about your project -- coding conventions, architecture notes, preferred tools, or repo-specific rules.
# Project Instructions
- Use TypeScript strict mode
- Prefer functional components with hooks
- Run `npm test` before committing
Documentation
- Basic Usage - Shortcuts, commands, and menu options
- Web Client - Browser UI and VS Code extension
- Browser Extension - Control your browser from Omx
- Office Add-in - Work with Excel, Word, and PowerPoint
- Figma Plugin - Design with AI in Figma
- Zed Editor - Use Omx as an agent in Zed via ACP
- Specialist Mode - High-level agentic tools
- Artist Mode - Visual-first responses with image generation
- MCP Configuration - Connect external tools via Model Context Protocol
- Custom SubAgents - Create your own agents
- Custom Slash Commands - Add custom commands
- Custom Skills - Reusable instruction sets
- Cross-Session Memory - Persistent memory across sessions
- Model Management - Configure multiple LLM providers
- Session Management - Save and restore conversations