Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-setup-6aa37819c835 ,按照其中的说明把「cli-setup」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands.
npm install -g omniroute # or: npx omniroute
omniroute --version
autostartExample:
omniroute autostart
autostart enableExample:
omniroute autostart enable
autostart disableExample:
omniroute autostart disable
autostart toggleExample:
omniroute autostart toggle
autostart statusExample:
omniroute autostart status
configShow or update CLI tool configuration
Example:
omniroute config
config listList all CLI tools and config status
Flags:
--jsonExample:
omniroute config list
config get <tool>Show current config for a tool
Flags:
--jsonExample:
omniroute config get <tool>
config set <tool>Write config for a tool
Flags:
--model <model>--non-interactive--yes--allow-container-writeExample:
omniroute config set <tool>
config validate <tool>Validate config format without writing
Flags:
--model <model>--jsonExample:
omniroute config validate <tool>
config opencodeGenerate OpenCode config (alias for
Flags:
--model <model>--non-interactive--yes--allow-container-writeExample:
omniroute config opencode
config langExample:
omniroute config lang
config getFlags:
--jsonExample:
omniroute config get
config set <code>Flags:
--forceExample:
omniroute config set <code>
config listFlags:
--jsonExample:
omniroute config list
envShow and manage environment variables
Example:
omniroute env
env showShow current environment variables
Flags:
--jsonExample:
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>
setupFlags:
--password <value>--add-provider--provider <id>--provider-name <name>--api-key <value>--default-model <model>--provider-base-url <url>--test-provider--non-interactive--listExample:
omniroute setup
updateFlags:
--check--apply--changelog--dry-run--no-backup--yesExample:
omniroute update