CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Fireworks AI CLI

$ firectl 官方出品 中风险
Fireworks AI · AI 能力与音视频 · Proprietary · macos / linux

Fireworks AI CLI(firectl)用于管理 Fireworks AI 上的无服务器与专用模型部署、微调任务、数据集及 API Key。支持 -o json / --output json、AIP-160 --filter 过滤、--no-paginate 以及通过 --api-key 或 ~/.fireworks/auth.ini 进行无头鉴权。

FCRS-1.0 综合评分
80 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
brew install fw-ai-external/firectl/firectl
CLI vs MCP 选型建议 仅 CLI 可用

firectl 是 Fireworks AI 控制面官方 CLI,原生支持 --output json 管理部署、数据集与微调任务。

Agent 友好度体检单

✓ 原生 JSON 输出
✓ 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 21 / 25

列表命令支持 -o json / --output json、--filter、--search、--no-paginate 与 --api-key,但首次 firectl signin 需交互式浏览器 OAuth。

  • --output json (-o json), --filter, and --no-paginate across list commands
  • Headless auth via --api-key and -a / --account-id
安全与权限边界 19 / 25

支持 -p / --profile 多配置隔离,但 create 与 delete 会直接变更付费云资源。

  • Named -p / --profile separation; live GPU deployment billing risks
安装与运行摩擦 12 / 15

在 macOS 与 Linux 上可通过 Homebrew tap(fw-ai-external/firectl)或直链 .gz 官方二进制轻松安装。

  • Single binary via Homebrew tap or GCS static download
能力覆盖与边际价值 12 / 15

全生命周期管理 Fireworks 模型、数据集、微调任务与专用 GPU 部署。

  • Covers model, dataset, deployment, fine-tuning-job, and api-key
维护与来源背书 8 / 10

Fireworks AI 官方发布,通过 fw-ai-external/firectl 分发专有二进制包。

  • Official Fireworks AI CLI distributed via proprietary binaries
文档与可验证性 8 / 10

docs.fireworks.ai 文档详尽,各子命令 --help 结构清晰。

  • Official docs at docs.fireworks.ai/tools-sdks/firectl/firectl

安全边界、鉴权与放权指南

鉴权方式
浏览器 OAuth 本地配置文件 环境变量密钥
凭证存储位置

firectl signin 将 OAuth/API 凭据保存在 ~/.fireworks/auth.ini;无头调用支持传入 --api-key 与 -a / --account-id。

潜在副作用
只读查询 远端写入 破坏性删除 计费影响
费用与配额提示

官方免费 CLI;专用 GPU 部署、推理与微调任务均按 Fireworks AI 账户用量计费。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Fireworks AI CLI (firectl) Agent Rules
- Always pass `--output json` (`-o json`) and verify `~/.fireworks/auth.ini` or `--api-key` + `-a` before running commands.
- Never run `firectl deployment create` or `firectl fine-tuning-job create` without explicit approval, as dedicated GPUs and training incur billing.

Agent 高频安全命令配方

只读查询(安全推荐)

以 JSON 列出 Fireworks 模型
firectl model list --output json

以 JSON 格式返回可用 Fireworks 模型及其部署兼容性。

以 JSON 查询专用部署状态
firectl deployment list --output json

以 JSON 列出当前活跃专用部署及副本运行状态。

受控写入与预演

从本地 JSONL 文件创建数据集
firectl dataset create my-dataset ./train.jsonl --output json

上传训练 JSONL 数据集至 Fireworks AI(尚未启动付费微调任务)。

核心优势

  • + 支持 --output json、AIP-160 --filter 表达式与 --no-paginate,便于脚本自动化。
  • + 支持 -a 多账号与 -p 多配置文件切换。

注意事项与踩坑点

  • ! 若未预先配置 --api-key 或 auth.ini,首次 firectl signin 需交互式浏览器 OAuth。
  • ! 以专有闭源二进制分发,且不直接提供原生 Windows 安装包。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI