技能 infsh-cli
📦

infsh-cli

低風險 ⚙️ 外部命令🌐 網路存取🔑 環境變數📁 檔案系統存取

使用 inference.sh CLI 執行 250+ 個 AI 應用程式

也可從以下取得: qu-skills,skillssh,inference-skills,inferen-sh,infsh-skills,tool-belt

執行 FLUX、Veo 和 Gemini 等 AI 模型需要強大的硬體和複雜的設定。此技能讓您能直接從終端機使用簡單的 CLI 指令,存取 250 多個 AI 應用程式,無需 GPU。

支援: Claude Codex Code(CC)
⚠️ 67
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「infsh-cli」。 Generate an image of a cat astronaut floating in space

預期結果:

CLI 從 FLUX 模型返回生成的圖片 URL。圖片顯示一隻穿著太空衣的貓,在繁星點點的太空背景中漂浮的細緻渲染。

正在使用「infsh-cli」。 Search the web for latest AI research papers

預期結果:

Tavily 搜尋助手返回一系列相關搜尋結果,包含最新 AI 研究論文的標題、URL 和內容摘要。

正在使用「infsh-cli」。 Explain quantum computing using Claude

預期結果:

OpenRouter API 從 Claude Sonnet 返回文字回應,以便於理解的方式解釋量子計算概念。

安全審計

低風險
v1 • 5/11/2026

This is a documentation skill for the inference.sh CLI tool (belt command). The skill has allowed-tools restriction Bash(belt *) which constrains execution to only the belt command. All 203 static analysis findings are in markdown fenced code blocks showing CLI usage examples, not executable code. The pipe-to-shell installation pattern (curl | sh) is a real risk but is the standard installation method for this CLI tool. No malicious intent or obfuscation was found. The skill is safe to publish with a low risk advisory for the installation pattern.

5
已掃描檔案
596
分析行數
9
發現項
1
審計總數
中風險問題 (1)
Pipe-to-shell installation pattern documented in skill
The skill documents installing the CLI via curl piped to sh (curl -fsSL https://cli.inference.sh | sh). This pattern is standard for CLI tools but carries inherent risk: the script executes without prior review, and a compromised endpoint could serve malicious code. The skill provides a manual install alternative as a safer option.
低風險問題 (4)
Documentation-only CLI command examples flagged as external commands
All 146 external_commands findings are Ruby backtick executions or shell commands inside markdown fenced code blocks. These are documentation examples showing users how to use the belt CLI. They are not executable code. No command injection risk exists because the skill is restricted to Bash(belt *) via allowed-tools.
Documentation URLs flagged as network risk
All 32 network findings are hardcoded URLs in documentation linking to inference.sh platform pages (docs, blog, API). These are informational links for users to read more about the platform. The skill does not make network requests; the URLs are documentation references only.
Documentation references to environment variable flagged as env_access
The INFSH_API_KEY environment variable is referenced in documentation examples showing users how to configure authentication. The skill itself does not read or access any environment variables. The reference is instructional - telling users to set the variable for the belt CLI tool.
Documentation file path examples flagged as filesystem risk
File paths like ~/.config/fish/completions/infsh.fish and ../data/video.mp4 appear in documentation examples showing shell completion installation and file upload features of the CLI. These are example paths, not actual filesystem operations performed by the skill.

風險因素

⚙️ 外部命令 (146)
references/app-discovery.md:5-7 references/app-discovery.md:7-11 references/app-discovery.md:11-13 references/app-discovery.md:13-17 references/app-discovery.md:17-23 references/app-discovery.md:23-27 references/app-discovery.md:27-32 references/app-discovery.md:32-36 references/app-discovery.md:36-40 references/app-discovery.md:40-44 references/app-discovery.md:44-46 references/app-discovery.md:46-50 references/app-discovery.md:50-52 references/app-discovery.md:52-56 references/app-discovery.md:56-58 references/app-discovery.md:58-64 references/app-discovery.md:64-66 references/app-discovery.md:66-72 references/app-discovery.md:72-75 references/app-discovery.md:75-79 references/app-discovery.md:79-82 references/app-discovery.md:82-89 references/app-discovery.md:89-90 references/app-discovery.md:90-91 references/app-discovery.md:91-92 references/app-discovery.md:92-93 references/app-discovery.md:93-96 references/app-discovery.md:96-97 references/app-discovery.md:97-98 references/app-discovery.md:98-99 references/app-discovery.md:99-100 references/app-discovery.md:100-103 references/app-discovery.md:103-104 references/app-discovery.md:104-105 references/app-discovery.md:105-106 references/authentication.md:5-7 references/authentication.md:7-11 references/authentication.md:11-13 references/authentication.md:13-19 references/authentication.md:19-21 references/authentication.md:21-29 references/authentication.md:29-31 references/authentication.md:31-37 references/authentication.md:37-39 references/authentication.md:39-43 references/authentication.md:43-45 references/authentication.md:45-51 references/authentication.md:51-53 references/cli-reference.md:5-7 references/cli-reference.md:7-13 references/cli-reference.md:13-14 references/cli-reference.md:14-15 references/cli-reference.md:15-16 references/cli-reference.md:16-17 references/cli-reference.md:17-25 references/cli-reference.md:25-26 references/cli-reference.md:26-27 references/cli-reference.md:27-28 references/cli-reference.md:28-29 references/cli-reference.md:29-30 references/cli-reference.md:30-31 references/cli-reference.md:31-32 references/cli-reference.md:32-33 references/cli-reference.md:33-34 references/cli-reference.md:34-35 references/cli-reference.md:35-36 references/cli-reference.md:36-42 references/cli-reference.md:42-43 references/cli-reference.md:43-44 references/cli-reference.md:44-45 references/cli-reference.md:45-46 references/cli-reference.md:46-52 references/cli-reference.md:52-53 references/cli-reference.md:53-54 references/cli-reference.md:54-60 references/cli-reference.md:60-61 references/cli-reference.md:61-62 references/cli-reference.md:62-63 references/cli-reference.md:63-64 references/cli-reference.md:64-65 references/cli-reference.md:65-66 references/cli-reference.md:66-72 references/cli-reference.md:72-76 references/cli-reference.md:76-85 references/cli-reference.md:85-89 references/cli-reference.md:89-91 references/cli-reference.md:91-92 references/cli-reference.md:92-93 references/cli-reference.md:93-94 references/cli-reference.md:94-95 references/cli-reference.md:95-97 references/running-apps.md:5-7 references/running-apps.md:7-11 references/running-apps.md:11-13 references/running-apps.md:13-17 references/running-apps.md:17-19 references/running-apps.md:19-25 references/running-apps.md:25-37 references/running-apps.md:37-40 references/running-apps.md:40-41 references/running-apps.md:41 references/running-apps.md:41-42 references/running-apps.md:42-48 references/running-apps.md:48-50 references/running-apps.md:50-54 references/running-apps.md:54-56 references/running-apps.md:56-58 references/running-apps.md:58-60 references/running-apps.md:60-62 references/running-apps.md:62-68 references/running-apps.md:68-84 references/running-apps.md:84-88 references/running-apps.md:88-99 references/running-apps.md:99-103 references/running-apps.md:103-106 references/running-apps.md:106-112 references/running-apps.md:112-115 references/running-apps.md:115-119 references/running-apps.md:119-128 references/running-apps.md:128-134 references/running-apps.md:134-140 references/running-apps.md:140-148 references/running-apps.md:148-157 references/running-apps.md:157-163 references/running-apps.md:163-164 SKILL.md:15-18 SKILL.md:18-20 SKILL.md:20-23 SKILL.md:23-32 SKILL.md:32-36 SKILL.md:36-54 SKILL.md:54-60 SKILL.md:60-72 SKILL.md:72-78 SKILL.md:78-79 SKILL.md:79-80 SKILL.md:80-81 SKILL.md:81-82 SKILL.md:82-83 SKILL.md:83-84 SKILL.md:84-85 SKILL.md:85-101 SKILL.md:101-127 SKILL.md:26 SKILL.md:26 SKILL.md:23-32
🌐 網路存取 (32)
🔑 環境變數 (3)
📁 檔案系統存取 (5)

偵測到的模式

Pipe-to-shell installation command
審計者: claude

品質評分

45
架構
100
可維護性
87
內容
22
社群
77
安全
91
規範符合性

你能建構什麼

為內容創作生成圖片與影片

內容創作者可直接從終端機使用 FLUX 模型生成圖片、使用 Veo 生成影片,無需昂貴的 GPU 硬體或雲端設定。

開發者快速原型製作與 AI 模型比較

從命令列快速測試和比較 Claude、Gemini 和 Grok 等不同 AI 模型,無須切換平台或管理 API 整合。

收集與處理網路資料以供研究

使用 Tavily 和 Exa 搜尋工具從網路擷取資訊,並在資料分析管道中以程式化方式處理結果。

試試這些提示

使用 FLUX 生成圖片
Generate an image of [description] using FLUX through the inference.sh CLI. Run: belt app run falai/flux-dev-lora --input '{"prompt": "[description]"}'
根據提示詞生成影片
Create a video of [description] using Veo. Run: belt app run google/veo-3-1-fast --input '{"prompt": "[description]"}'
搜尋網路並總結結果
Search the web for [topic] using Tavily, then summarize the key findings. Run: belt app run tavily/search-assistant --input '{"query": "[topic]"}'
執行多模型管道
First search for [topic] using Tavily search, then use the results as context for Claude Sonnet to generate an analysis report. Chain belt commands to pass data between models.

最佳實務

  • 執行指令前務必使用 belt app search 驗證應用程式名稱和可用性,以避免錯誤
  • 使用 belt app sample 為新應用程式產生輸入模板,以便檢視預期的架構格式
  • 將 API 金鑰儲存在 INFSH_API_KEY 環境變數中,而不是直接貼到指令歷史記錄裡

避免

  • 未先檢查輸入架構就執行應用程式,導致架構不符錯誤和浪費點數
  • 未經審閱或考慮手動安裝替代方案,就直接將安裝腳本透過管道傳給 sh 執行
  • 將 API 金鑰等敏感憑證直接寫死在命令列參數中,導致可能被 shell 歷史記錄擷取

常見問題

我需要 GPU 才能執行這些 AI 應用程式嗎?
不需要。所有 AI 應用程式都在 inference.sh 的雲端伺服器上執行。您只需要在本機安裝 CLI 即可。
如何安裝 CLI?
Run curl -fsSL https://cli.inference.sh | sh and then run belt login to authenticate.
有哪些模型可用?
超過 250 個應用程式可供使用,包括 FLUX、Veo、Gemini、Grok、Claude、Tavily、Exa 等。
如何找到合適的應用程式?
使用 belt app search <query> 搜尋,或使用 belt app list --category <category> 依類別瀏覽。
我可以上傳本機檔案作為輸入嗎?
可以。當您提供檔案路徑而非 URL 時,CLI 會自動上傳本機檔案。
如何檢查正在執行任務的狀態?
使用 belt task get <task-id> 檢查狀態並取得先前提交任務的結果。