infsh-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Run 150+ AI apps in the cloud with a simple CLI. No GPU required.
inference.sh
借助简单的CLI即可在云端运行150余款AI应用,无需GPU。
inference.sh

Install CLI

安装CLI

bash
curl -fsSL https://cli.inference.sh | sh
infsh login
What does the installer do? The install script detects your OS and architecture, downloads the correct binary from
dist.inference.sh
, verifies its SHA-256 checksum, and places it in your PATH. That's it — no elevated permissions, no background processes, no telemetry. If you have cosign installed, the installer also verifies the Sigstore signature automatically.
Manual install (if you prefer not to pipe to sh):
bash
# Download the binary and checksums
curl -LO https://dist.inference.sh/cli/checksums.txt
curl -LO $(curl -fsSL https://dist.inference.sh/cli/manifest.json | grep -o '"url":"[^"]*"' | grep $(uname -s | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') | head -1 | cut -d'"' -f4)
# Verify checksum
sha256sum -c checksums.txt --ignore-missing
# Extract and install
tar -xzf inferencesh-cli-*.tar.gz
mv inferencesh-cli-* ~/.local/bin/inferencesh
bash
curl -fsSL https://cli.inference.sh | sh
infsh login
安装程序会执行哪些操作?安装脚本会检测你的操作系统和架构,从
dist.inference.sh
下载对应版本的二进制文件,验证其SHA-256校验和,然后将其放置到你的PATH路径中。全程无需提升权限,没有后台进程,也不会收集遥测数据。如果你安装了cosign,安装程序还会自动验证Sigstore签名。
手动安装(如果你不想通过管道执行sh脚本):
bash
# Download the binary and checksums
curl -LO https://dist.inference.sh/cli/checksums.txt
curl -LO $(curl -fsSL https://dist.inference.sh/cli/manifest.json | grep -o '"url":"[^"]*"' | grep $(uname -s | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') | head -1 | cut -d'"' -f4)
# Verify checksum
sha256sum -c checksums.txt --ignore-missing
# Extract and install
tar -xzf inferencesh-cli-*.tar.gz
mv inferencesh-cli-* ~/.local/bin/inferencesh

Quick Examples

快速示例

bash
undefined
bash
undefined

Generate an image

Generate an image

infsh app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut"}'
infsh app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut"}'

Generate a video

Generate a video

infsh app run google/veo-3-1-fast --input '{"prompt": "drone over mountains"}'
infsh app run google/veo-3-1-fast --input '{"prompt": "drone over mountains"}'

Call Claude

Call Claude

infsh app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'
infsh app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'

Web search

Web search

infsh app run tavily/search-assistant --input '{"query": "latest AI news"}'
infsh app run tavily/search-assistant --input '{"query": "latest AI news"}'

Post to Twitter

Post to Twitter

infsh app run x/post-tweet --input '{"text": "Hello from AI!"}'
infsh app run x/post-tweet --input '{"text": "Hello from AI!"}'

Generate 3D model

Generate 3D model

infsh app run infsh/rodin-3d-generator --input '{"prompt": "a wooden chair"}'
undefined
infsh app run infsh/rodin-3d-generator --input '{"prompt": "a wooden chair"}'
undefined

Local File Uploads

本地文件上传

The CLI automatically uploads local files when you provide a path instead of a URL:
bash
undefined
当你传入本地路径而非URL时,CLI会自动上传本地文件:
bash
undefined

Upscale a local image

Upscale a local image

infsh app run falai/topaz-image-upscaler --input '{"image": "/path/to/photo.jpg", "upscale_factor": 2}'
infsh app run falai/topaz-image-upscaler --input '{"image": "/path/to/photo.jpg", "upscale_factor": 2}'

Image-to-video from local file

Image-to-video from local file

infsh app run falai/wan-2-5-i2v --input '{"image": "./my-image.png", "prompt": "make it move"}'
infsh app run falai/wan-2-5-i2v --input '{"image": "./my-image.png", "prompt": "make it move"}'

Avatar with local audio and image

Avatar with local audio and image

infsh app run bytedance/omnihuman-1-5 --input '{"audio": "/path/to/speech.mp3", "image": "/path/to/face.jpg"}'
infsh app run bytedance/omnihuman-1-5 --input '{"audio": "/path/to/speech.mp3", "image": "/path/to/face.jpg"}'

Post tweet with local media

Post tweet with local media

infsh app run x/post-create --input '{"text": "Check this out!", "media": "./screenshot.png"}'
undefined
infsh app run x/post-create --input '{"text": "Check this out!", "media": "./screenshot.png"}'
undefined

Commands

命令

TaskCommand
List all apps
infsh app list
Search apps
infsh app list --search "flux"
Filter by category
infsh app list --category image
Get app details
infsh app get google/veo-3-1-fast
Generate sample input
infsh app sample google/veo-3-1-fast --save input.json
Run app
infsh app run google/veo-3-1-fast --input input.json
Run without waiting
infsh app run <app> --input input.json --no-wait
Check task status
infsh task get <task-id>
任务命令
列出所有应用
infsh app list
搜索应用
infsh app list --search "flux"
按分类筛选
infsh app list --category image
获取应用详情
infsh app get google/veo-3-1-fast
生成示例输入
infsh app sample google/veo-3-1-fast --save input.json
运行应用
infsh app run google/veo-3-1-fast --input input.json
异步运行应用(无需等待执行完成)
infsh app run <app> --input input.json --no-wait
查看任务状态
infsh task get <task-id>

What's Available

支持的能力

CategoryExamples
ImageFLUX, Gemini 3 Pro, Grok Imagine, Seedream 4.5, Reve, Topaz Upscaler
VideoVeo 3.1, Seedance 1.5, Wan 2.5, OmniHuman, Fabric, HunyuanVideo Foley
LLMsClaude Opus/Sonnet/Haiku, Gemini 3 Pro, Kimi K2, GLM-4, any OpenRouter model
SearchTavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract
3DRodin 3D Generator
Twitter/Xpost-tweet, post-create, dm-send, user-follow, post-like, post-retweet
UtilitiesMedia merger, caption videos, image stitching, audio extraction
分类示例
图像FLUX, Gemini 3 Pro, Grok Imagine, Seedream 4.5, Reve, Topaz Upscaler
视频Veo 3.1, Seedance 1.5, Wan 2.5, OmniHuman, Fabric, HunyuanVideo Foley
LLMClaude Opus/Sonnet/Haiku, Gemini 3 Pro, Kimi K2, GLM-4, 任意OpenRouter模型
搜索Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract
3DRodin 3D Generator
Twitter/Xpost-tweet, post-create, dm-send, user-follow, post-like, post-retweet
工具媒体合并、视频加字幕、图像拼接、音频提取

Related Skills

相关Skill

bash
undefined
bash
undefined

Image generation (FLUX, Gemini, Grok, Seedream)

Image generation (FLUX, Gemini, Grok, Seedream)

npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@ai-image-generation

Video generation (Veo, Seedance, Wan, OmniHuman)

Video generation (Veo, Seedance, Wan, OmniHuman)

npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-video-generation

LLMs (Claude, Gemini, Kimi, GLM via OpenRouter)

LLMs (Claude, Gemini, Kimi, GLM via OpenRouter)

npx skills add inference-sh/skills@llm-models
npx skills add inference-sh/skills@llm-models

Web search (Tavily, Exa)

Web search (Tavily, Exa)

npx skills add inference-sh/skills@web-search
npx skills add inference-sh/skills@web-search

AI avatars & lipsync (OmniHuman, Fabric, PixVerse)

AI avatars & lipsync (OmniHuman, Fabric, PixVerse)

npx skills add inference-sh/skills@ai-avatar-video
npx skills add inference-sh/skills@ai-avatar-video

Twitter/X automation

Twitter/X automation

npx skills add inference-sh/skills@twitter-automation
npx skills add inference-sh/skills@twitter-automation

Model-specific

Model-specific

npx skills add inference-sh/skills@flux-image npx skills add inference-sh/skills@google-veo
npx skills add inference-sh/skills@flux-image npx skills add inference-sh/skills@google-veo

Utilities

Utilities

npx skills add inference-sh/skills@image-upscaling npx skills add inference-sh/skills@background-removal
undefined
npx skills add inference-sh/skills@image-upscaling npx skills add inference-sh/skills@background-removal
undefined

Reference Files

参考文件

  • Authentication & Setup
  • Discovering Apps
  • Running Apps
  • CLI Reference
  • Authentication & Setup
  • Discovering Apps
  • Running Apps
  • CLI Reference

Documentation

文档