跳到正文
Skillpedia
部署与云(DevOps)84k · #1414

cli-setup

它能做什么

这项技能展示如何通过命令行设置 OmniRoute,并管理它的通用设置。适合想完成设置、调整配置并让工具自动启动的管理员。

适用场景

  • ✓当用户第一次设置 OmniRoute 的时候。
  • ✓当用户想更改全局 CLI 设置或环境变量的时候。
  • ✓当用户想让 OmniRoute 在电脑启动时自动运行的时候。

技能链接

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-setup/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-setup/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在这台电脑上设置 OmniRoute,并让它自动启动。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能列出运行设置、显示和更改 CLI 工具配置、列出和写入工具设置,以及启用、禁用或检查自动启动的命令。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

autostart

Example:

omniroute autostart

autostart enable

Flags:

  • --tray
  • --no-tray

Example:

omniroute autostart enable

autostart disable

Example:

omniroute autostart disable

autostart toggle

Flags:

  • --tray
  • --no-tray

Example:

omniroute autostart toggle

autostart status

Example:

omniroute autostart status

config

Show or update CLI tool configuration

Example:

omniroute config

config list

List all CLI tools and config status

Flags:

  • --json

Example:

omniroute config list

config get <tool>

Show current config for a tool

Flags:

  • --json

Example:

omniroute config get <tool>

config set <tool>

Write config for a tool

Flags:

  • --model <model>
  • --non-interactive
  • --yes
  • --allow-container-write

Example:

omniroute config set <tool>

config validate <tool>

Validate config format without writing

Flags:

  • --model <model>
  • --json

Example:

omniroute config validate <tool>

config opencode

Generate OpenCode config (alias for

Flags:

  • --model <model>
  • --non-interactive
  • --yes
  • --allow-container-write

Example:

omniroute config opencode

config lang

Example:

omniroute config lang

config get

Flags:

  • --json

Example:

omniroute config get

config set <code>

Flags:

  • --force

Example:

omniroute config set <code>

config list

Flags:

  • --json

Example:

omniroute config list

env

Show and manage environment variables

Example:

omniroute env

env show

Show current environment variables

Flags:

  • --json

Example:

omniroute env show

env get <key>

Get a single environment variable

Example:

omniroute env get <key>

env set <key> <value>

Set an environment variable (current session only)

Example:

omniroute env set <key> <value>

setup

Flags:

  • --password <value>
  • --add-provider
  • --provider <id>
  • --provider-name <name>
  • --api-key <value>
  • --default-model <model>
  • --provider-base-url <url>
  • --test-provider
  • --non-interactive
  • --list

Example:

omniroute setup

update

Flags:

  • --check
  • --apply
  • --changelog
  • --dry-run
  • --no-backup
  • --yes

Example:

omniroute update
常见问题

它能随电脑一起启动吗?

可以。autostart enable 命令可以开启它,并有托盘图标选项。

我能只查看配置而不修改吗?

可以。config list 和 config get 命令可以显示当前设置。

它会检查更新吗?

这项技能说明,它可以在设置和配置命令中检查更新。

详情

作者的原始描述

Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1414
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能