Manage CLI tool integrations exposed via the API. List, configure, and invoke CLI tool plugins that extend OmniRoute's automation surface.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-omni-cli-tools-0673ea9329c8 ,按照其中的说明把「omni-cli-tools」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Manage CLI tool integrations exposed via the API. List, configure, and invoke CLI tool plugins that extend OmniRoute's automation surface.
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
List CLI tool backups
curl https://localhost:20128/api/cli-tools/backups \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Create CLI tool backup
curl -X POST https://localhost:20128/api/cli-tools/backups \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Get runtime status for a CLI tool
curl https://localhost:20128/api/cli-tools/runtime/{toolId} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get guide settings for a tool
curl https://localhost:20128/api/cli-tools/guide-settings/{toolId} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Antigravity MITM proxy settings
curl https://localhost:20128/api/cli-tools/antigravity-mitm \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Update Antigravity MITM proxy settings
curl -X POST https://localhost:20128/api/cli-tools/antigravity-mitm \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Antigravity MITM proxy settings
curl -X DELETE https://localhost:20128/api/cli-tools/antigravity-mitm \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Antigravity MITM alias configuration
curl https://localhost:20128/api/cli-tools/antigravity-mitm/alias \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Update Antigravity MITM alias configuration
curl -X PUT https://localhost:20128/api/cli-tools/antigravity-mitm/alias \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Get Claude CLI settings
curl https://localhost:20128/api/cli-tools/claude-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply Claude CLI settings
curl -X POST https://localhost:20128/api/cli-tools/claude-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Claude CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/claude-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Cline CLI settings
curl https://localhost:20128/api/cli-tools/cline-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply Cline CLI settings
curl -X POST https://localhost:20128/api/cli-tools/cline-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Cline CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/cline-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Codex profiles
curl https://localhost:20128/api/cli-tools/codex-profiles \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Create Codex profile
curl -X POST https://localhost:20128/api/cli-tools/codex-profiles \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Update Codex profile
curl -X PUT https://localhost:20128/api/cli-tools/codex-profiles \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Delete Codex profile
curl -X DELETE https://localhost:20128/api/cli-tools/codex-profiles \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Codex CLI settings
curl https://localhost:20128/api/cli-tools/codex-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply Codex CLI settings
curl -X POST https://localhost:20128/api/cli-tools/codex-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Codex CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/codex-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Droid CLI settings
curl https://localhost:20128/api/cli-tools/droid-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply Droid CLI settings
curl -X POST https://localhost:20128/api/cli-tools/droid-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Droid CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/droid-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get Kilo CLI settings
curl https://localhost:20128/api/cli-tools/kilo-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply Kilo CLI settings
curl -X POST https://localhost:20128/api/cli-tools/kilo-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset Kilo CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/kilo-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Get OpenClaw CLI settings
curl https://localhost:20128/api/cli-tools/openclaw-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Apply OpenClaw CLI settings
curl -X POST https://localhost:20128/api/cli-tools/openclaw-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Reset OpenClaw CLI settings
curl -X DELETE https://localhost:20128/api/cli-tools/openclaw-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Read Crush CLI OmniRoute config
Local-only. Reads the OmniRoute provider block in Crush's config.
curl https://localhost:20128/api/cli-tools/crush-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Write Crush CLI OmniRoute config
Local-only. Registers OmniRoute as an openai-compat provider in Crush's config.
curl -X POST https://localhost:20128/api/cli-tools/crush-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Remove OmniRoute from Crush CLI config
Local-only. Removes the OmniRoute provider block from Crush's config.
curl -X DELETE https://localhost:20128/api/cli-tools/crush-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Read CodeWhale CLI OmniRoute config
Local-only. Reads the OmniRoute config block from ~/.codewhale/config.toml (with ~/.deepseek/config.toml legacy fallback).
curl https://localhost:20128/api/cli-tools/codewhale-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Write CodeWhale CLI OmniRoute config
Local-only. Writes the OmniRoute config block in CodeWhale TOML format.
curl -X POST https://localhost:20128/api/cli-tools/codewhale-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Remove OmniRoute from CodeWhale CLI config
Local-only. Removes the OmniRoute config block from CodeWhale's config.
curl -X DELETE https://localhost:20128/api/cli-tools/codewhale-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › all statuses
curl https://localhost:20128/api/cli-tools/all-statuses \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › apply
Submit the original toolId, apiKey, optional baseUrl/model and optional dryRun in the JSON body. Returned content is a redacted, non-cacheable preview, not an importable configuration. A non-dry-run request writes the original generated configuration; the container write guard remains active.
curl -X POST https://localhost:20128/api/cli-tools/apply \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"toolId":"claude","apiKey":"<configuration-api-key>","dryRun":true}'
GET cli tools › config
Returns redacted, non-cacheable previews. Send the configuration API key in x-omniroute-config-api-key, separate from management authentication. API keys in query strings are rejected. Preview content must not be copied into a credential-bearing configuration or submitted as an apply payload.
curl https://localhost:20128/api/cli-tools/config \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "x-omniroute-config-api-key: <configuration-api-key>"
POST cli tools › config
Submit toolId, apiKey and optional baseUrl/model as JSON. Unknown fields are rejected. Returned content is a redacted, non-cacheable preview, not an importable configuration. To apply, submit the original inputs to POST /api/cli-tools/apply instead of replaying the preview content.
curl -X POST https://localhost:20128/api/cli-tools/config \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"toolId":"claude","apiKey":"<configuration-api-key>"}'
GET cli tools › deepseek tui settings
curl https://localhost:20128/api/cli-tools/deepseek-tui-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › deepseek tui settings
curl -X POST https://localhost:20128/api/cli-tools/deepseek-tui-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › deepseek tui settings
curl -X DELETE https://localhost:20128/api/cli-tools/deepseek-tui-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › detect
curl https://localhost:20128/api/cli-tools/detect \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › forge settings
curl https://localhost:20128/api/cli-tools/forge-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › forge settings
curl -X POST https://localhost:20128/api/cli-tools/forge-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › forge settings
curl -X DELETE https://localhost:20128/api/cli-tools/forge-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › grok build settings
curl https://localhost:20128/api/cli-tools/grok-build-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › grok build settings
curl -X POST https://localhost:20128/api/cli-tools/grok-build-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › grok build settings
curl -X DELETE https://localhost:20128/api/cli-tools/grok-build-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › hermes agent settings
curl https://localhost:20128/api/cli-tools/hermes-agent-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › hermes agent settings
curl -X POST https://localhost:20128/api/cli-tools/hermes-agent-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET cli tools › jcode settings
curl https://localhost:20128/api/cli-tools/jcode-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › jcode settings
curl -X POST https://localhost:20128/api/cli-tools/jcode-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › jcode settings
curl -X DELETE https://localhost:20128/api/cli-tools/jcode-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › keys
curl https://localhost:20128/api/cli-tools/keys \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › letta settings
curl https://localhost:20128/api/cli-tools/letta-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › letta settings
curl -X POST https://localhost:20128/api/cli-tools/letta-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › letta settings
curl -X DELETE https://localhost:20128/api/cli-tools/letta-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › logs
curl https://localhost:20128/api/cli-tools/logs \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › omp settings
curl https://localhost:20128/api/cli-tools/omp-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › omp settings
curl -X POST https://localhost:20128/api/cli-tools/omp-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › omp settings
curl -X DELETE https://localhost:20128/api/cli-tools/omp-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › openclaw › auto order
curl https://localhost:20128/api/cli-tools/openclaw/auto-order \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › pi settings
curl https://localhost:20128/api/cli-tools/pi-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › pi settings
curl -X POST https://localhost:20128/api/cli-tools/pi-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › pi settings
curl -X DELETE https://localhost:20128/api/cli-tools/pi-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › qwen settings
curl https://localhost:20128/api/cli-tools/qwen-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › qwen settings
curl -X POST https://localhost:20128/api/cli-tools/qwen-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › qwen settings
curl -X DELETE https://localhost:20128/api/cli-tools/qwen-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › smelt settings
curl https://localhost:20128/api/cli-tools/smelt-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST cli tools › smelt settings
curl -X POST https://localhost:20128/api/cli-tools/smelt-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE cli tools › smelt settings
curl -X DELETE https://localhost:20128/api/cli-tools/smelt-settings \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET cli tools › status
curl https://localhost:20128/api/cli-tools/status \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.