0mni-cli

中文文档
0.1.1发布于 2026/03/20MITES Module

Multi-agent coding CLI combining Claude, Gemini, and Codex into a single TUI

原始使用文档
文档目录9 节
  1. Install
  2. Prerequisites
  3. Usage
  4. Slash Commands
  5. Auto-Routing
  6. How It Works
  7. Skills
  8. Configuration
  9. License

0mni

A TUI coding agent that combines Claude, Gemini, and Codex into a single CLI. Uses your locally installed coding agents as the runtime — no API keys needed.

┌─────────────────────────────────────────┐
│ 0mni v0.1.0 · ● claude-sonnet-4-6      │
├─────────────────────────────────────────┤
│                                         │
│ You: Fix the login bug in auth.ts       │
│                                         │
│ ● Claude: I'll look at auth.ts...       │
│ → read_file src/auth.ts                 │
│ → edit_file src/auth.ts                 │
│                                         │
│ Done. Fixed the null check on line 42.  │
│                                         │
├─────────────────────────────────────────┤
│ > _                                     │
└─────────────────────────────────────────┘

Install

npm install -g 0mni-cli

Or run directly:

npx 0mni-cli "fix the failing tests"

Prerequisites

You need at least one of these coding agents installed and authenticated:

  • Claude Code — npm install -g @anthropic-ai/claude-code
  • Gemini CLI — npm install -g @google/gemini-cli
  • Codex CLI — npm install -g @openai/codex

0mni uses your existing CLI authentication. No separate API keys required.

Usage

# Interactive TUI
0mni

# Start with a prompt
0mni "explain this codebase"

# Force a specific provider
0mni --provider claude "fix the bug"
0mni -p gemini "search for the error"
0mni -p codex "refactor the auth module"

# Auto-route to best provider per task
0mni --auto "find and fix the performance issue"

# Specify a model
0mni -m claude-opus-4-6 "design the new API"

# Auto-approve all tool calls
0mni --yolo "fix all lint errors"

Slash Commands

Inside the TUI, use these commands:

CommandDescription
/claudeSwitch to Claude
/geminiSwitch to Gemini
/codexSwitch to Codex
/autoToggle auto-routing
/model <name>Set a specific model
/clearClear conversation
/costShow token usage and cost
/helpShow all commands

Auto-Routing

When --auto is enabled, 0mni classifies your task and routes to the best provider:

Task TypeProviderWhy
Complex reasoning, debuggingClaudeBest at multi-step reasoning
Code generation, reviewClaudeStrong code understanding
Search, web queriesGeminiBuilt-in Google Search grounding
Multimodal (images)GeminiBest multimodal support
RefactoringCodexOptimized for code transforms
Simple Q&AClaude HaikuFast and cheap

How It Works

0mni is a TUI wrapper that spawns your installed coding agents as subprocesses:

0mni TUI (React + Ink)
    │
    ├── claude -p "prompt" --output-format stream-json
    ├── gemini -p "prompt" --output-format stream-json
    └── codex exec "prompt" --json

Each CLI handles its own:

  • Tool execution (file editing, shell commands, search)
  • Authentication (OAuth, API keys)
  • Sandboxing and permissions

0mni parses the streaming JSON output and displays it in a unified terminal UI.

Skills

0mni supports skills.sh for extensibility:

# Install skills
0mni skills add vercel-labs/agent-skills
0mni skills add anthropic/skills

# List installed skills
0mni skills list

Configuration

Create .0mni/config.toml in your project or ~/.config/0mni/config.toml globally:

defaultProvider = "claude"
autoRoute = false
yolo = false

[models]
claude = "claude-sonnet-4-6"
gemini = "gemini-2.5-flash"
codex = "gpt-5.4"

License

MIT

版本与发布记录

0mni-cli 共发布 1 个版本,首次发布于 2026/03/20;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.1.1latest2026/03/207 个月前

关于 0mni-cli 的常见问题

0mni-cli 是什么?

多代理编码CLI结合克劳德,双子座,和Codex到一个单一的TUI

如何安装 0mni-cli?

在项目目录运行 npm install 0mni-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 omni、0mni-cli,可以用 npx omni 直接运行。

0mni-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/0mni-cli 是否存在。

0mni-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

0mni-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

0mni-cli 可以商用吗?

0mni-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

0mni-cli 还在维护吗?

最新版本 0.1.1 发布于 2026/03/20(7 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2026/03/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。