name: agent-tools description: “通过inference.sh CLI运行150多个AI应用 - 图像生成、视频创建、LLMs、搜索、3D、Twitter自动化。模型:FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter等。使用时机:运行AI应用、生成图像/视频、调用LLMs、网络搜索或自动化Twitter。触发词:inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok” allowed-tools: Bash(infsh *)
inference.sh
通过简单的命令行界面在云端运行150多个AI应用。无需GPU。

安装CLI
curl -fsSL https://cli.inference.sh | sh
infsh login
安装程序做了什么? 安装脚本检测您的操作系统和架构,从
dist.inference.sh下载正确的二进制文件,验证其SHA-256校验和,并将其放置在您的PATH中。就是这样 — 无需提升权限、无后台进程、无遥测。如果您安装了cosign,安装程序还会自动验证Sigstore签名。手动安装(如果您不想通过管道到sh):
# 下载二进制文件和校验和 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) # 验证校验和 sha256sum -c checksums.txt --ignore-missing # 提取并安装 tar -xzf inferencesh-cli-*.tar.gz mv inferencesh-cli-* ~/.local/bin/inferencesh
快速示例
# 生成图像
infsh app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut"}'
# 生成视频
infsh app run google/veo-3-1-fast --input '{"prompt": "drone over mountains"}'
# 调用Claude
infsh app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'
# 网络搜索
infsh app run tavily/search-assistant --input '{"query": "latest AI news"}'
# 发布到Twitter
infsh app run x/post-tweet --input '{"text": "Hello from AI!"}'
# 生成3D模型
infsh app run infsh/rodin-3d-generator --input '{"prompt": "a wooden chair"}'
命令
| 任务 | 命令 |
|---|---|
| 列出所有应用 | 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> |
可用功能
| 类别 | 示例 |
|---|---|
| 图像 | 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 |
| LLMs | Claude Opus/Sonnet/Haiku, Gemini 3 Pro, Kimi K2, GLM-4, 任何 OpenRouter 模型 |
| 搜索 | Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract |
| 3D | Rodin 3D Generator |
| Twitter/X | post-tweet, post-create, dm-send, user-follow, post-like, post-retweet |
| 实用工具 | 媒体合并, 视频字幕, 图像拼接, 音频提取 |
相关技能
# 图像生成 (FLUX, Gemini, Grok, Seedream)
npx skills add inference-sh/skills@ai-image-generation
# 视频生成 (Veo, Seedance, Wan, OmniHuman)
npx skills add inference-sh/skills@ai-video-generation
# LLMs (Claude, Gemini, Kimi, GLM via OpenRouter)
npx skills add inference-sh/skills@llm-models
# 网络搜索 (Tavily, Exa)
npx skills add inference-sh/skills@web-search
# AI 头像与唇同步 (OmniHuman, Fabric, PixVerse)
npx skills add inference-sh/skills@ai-avatar-video
# Twitter/X 自动化
npx skills add inference-sh/skills@twitter-automation
# 模型特定
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@google-veo
# 实用工具
npx skills add inference-sh/skills@image-upscaling
npx skills add inference-sh/skills@background-removal
参考文件
文档
- 代理技能概述 - AI 能力的开放标准
- 入门指南 - inference.sh 介绍
- 什么是 inference.sh? - 平台概述
- 应用概述 - 理解应用生态系统
- CLI 设置 - 安装 CLI
- 工作流与代理 - 何时使用每种方式
- 为什么代理运行时重要 - 运行时优势