0 mni
一个TUI编码代理,它结合 克劳德。, 双子座, 食典委 到单个CLI中。使用本地安装的编码代理作为运行时-不需要API密钥。
┌─────────────────────────────────────────┐
│ 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. │
│ │
├─────────────────────────────────────────┤
│ > _ │
└─────────────────────────────────────────┘
安装
npm install -g 0mni-cli
或者直接运行:
npx 0mni-cli "fix the failing tests"
先决条件
您需要安装并验证以下编码代理中的至少一个:
- 克劳德代码 - - - - - -
npm install -g @anthropic-ai/claude-code - 双子座CLI - - - - - -
npm install -g @google/gemini-cli - 食典委CLI - - - - - -
npm install -g @openai/codex
0mni使用您现有的CLI身份验证。不需要单独的API密钥。
使用
# 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"
削减命令
在TUI中,使用这些命令:
| 命令 | 描述 |
|---|---|
/claude | 换克劳德 |
/gemini | 换成双子座 |
/codex | 切换到法典 |
/auto | 切换auto-routing |
/model <name> | 设定一个特定的模型 |
/clear | 清晰的谈话 |
/cost | 显示令牌的使用和成本 |
/help | 显示所有命令 |
Auto-Routing
当 --auto 启用后,0mni将您的任务分类并路由到最佳提供商:
| 任务类型 | 提供者 | 为什么 |
|---|---|---|
| 复杂推理、调试 | 克劳德。 | 最擅长多步骤推理 |
| 代码生成、复查 | 克劳德。 | 较强的代码理解能力 |
| 搜索、网页查询 | 双子座 | 内置谷歌搜索接地 |
| 多通道(图片) | 双子座 | 最佳多式联运支持 |
| 重构 | 食典委 | 针对代码转换进行了优化 |
| 简单的问答 | 克劳德俳句 | 又快又便宜 |
它是如何工作的
0mni是一个TUI包装器,它生成您安装的编码代理作为子进程:
0mni TUI (React + Ink)
│
├── claude -p "prompt" --output-format stream-json
├── gemini -p "prompt" --output-format stream-json
└── codex exec "prompt" --json
每个CLI处理自己的:
- 工具执行(文件编辑、shell命令、搜索)
- 身份验证(OAuth, API密钥)
- 沙箱和权限
0mni解析流JSON输出,并在统一的终端UI中显示。
技能
0 mni支持 skills.sh 可扩展性:
# Install skills
0mni skills add vercel-labs/agent-skills
0mni skills add anthropic/skills
# List installed skills
0mni skills list
配置
创建 .0mni/config.toml 在你的项目中 ~/.config/0mni/config.toml 在全球范围内:
defaultProvider = "claude"
autoRoute = false
yolo = false
[models]
claude = "claude-sonnet-4-6"
gemini = "gemini-2.5-flash"
codex = "gpt-5.4"
许可证
麻省理工学院