能力标签
OfficeCLI Agent工作流
⚙️
Agent工作流

OfficeCLI Agent工作流

基于 C# · 无代码搭建完整 AI 自动化流程
英文名:OfficeCLI
⭐ 4.6k Stars 🍴 383 Forks 💻 C# 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
AI工作流办公自动化命令行工具Office套件AI代理
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:OfficeCLI Agent工作流 是一款优质的Agent工作流。已获得 4.6k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

OfficeCLI Agent工作流 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

OfficeCLI Agent工作流 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 8.2 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

为AI代理设计的开源Office套件,提供命令行界面支持工作流自动化。集成AI能力处理文档、表格等办公任务,适合开发者构建智能办公自动化系统和AI工作流应用。

OfficeCLI Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 4.6k
开发语言
C#
支持平台
Windows / macOS / Linux
维护状态
持续维护,定期更新
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
Agent工作流
Forks
383

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

为AI代理设计的开源Office套件,提供命令行界面支持工作流自动化。集成AI能力处理文档、表格等办公任务,适合开发者构建智能办公自动化系统和AI工作流应用。

OfficeCLI Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/iOfficeAI/OfficeCLI
cd OfficeCLI

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
officecli --help

# 基本运行
officecli [options] <input>

# 详细使用说明请查阅文档
# https://github.com/iOfficeAI/OfficeCLI
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# officecli 配置说明
# 查看配置选项
officecli --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export OFFICECLI_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 81/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

OfficeCLI

OfficeCLI is the world's first and the best Office suite designed for AI agents.

Give any AI agent full control over Word, Excel, and PowerPoint — in one line of code.

Open-source. Single binary. No Office installation. No dependencies. Works everywhere.

OfficeCLI's built-in HTML rendering engine reproduces documents with high fidelity — and that's what gives AI eyes. It renders .docx / .xlsx / .pptx to HTML or PNG, closing the render → look → fix loop.

GitHub Release License

English | 中文 | 日本語 | 한국어

<p align="center"> <strong>🌐 Website:</strong> <a href="https://officecli.ai" target="_blank">officecli.ai</a> &nbsp;|&nbsp; <strong>💬 Community:</strong> <a href="https://discord.gg/2QAwJn7Egx" target="_blank">Discord</a> </p>

<p align="center"> <img src="assets/ppt-process.webp" alt="OfficeCLI creating a PowerPoint presentation on AionUi" width="100%"> </p>

<p align="center"><em>PPT creation process using OfficeCLI on <a href="https://github.com/iOfficeAI/AionUi">AionUi</a></em></p>

<p align="center"><strong>PowerPoint Presentations</strong></p>

OfficeCLI design presentation (PowerPoint) OfficeCLI business presentation (PowerPoint) OfficeCLI tech presentation (PowerPoint)
OfficeCLI space presentation (PowerPoint) OfficeCLI gaming presentation (PowerPoint) OfficeCLI creative presentation (PowerPoint)

<p align="center">—</p> <p align="center"><strong>Word Documents</strong></p>

OfficeCLI academic paper (Word) OfficeCLI project proposal (Word) OfficeCLI annual report (Word)

<p align="center">—</p> <p align="center"><strong>Excel Spreadsheets</strong></p>

OfficeCLI budget tracker (Excel) OfficeCLI gradebook (Excel) OfficeCLI sales dashboard (Excel)

<p align="center"><em>All documents above were created entirely by AI agents using OfficeCLI — no templates, no manual editing.</em></p>

Key Features

1. Install (macOS / Linux)

curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash

Windows (PowerShell): irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex

Installation

Ships as a single self-contained binary. The .NET runtime is embedded -- nothing to install, no runtime to manage.

One-line install:

```bash

Build from Source

Requires .NET 10 SDK for compilation only. The output is a self-contained, native binary -- .NET is embedded in the binary and is not needed at runtime.

./build.sh

Quick Start

```bash

Use Cases

For Developers: - Automate report generation from databases or APIs - Batch-process documents (bulk find/replace, style updates) - Build document pipelines in CI/CD environments (generate docs from test results) - Headless Office automation in Docker/containerized environments

For AI Agents: - Generate presentations from user prompts (see examples above) - Extract structured data from documents to JSON - Validate and check document quality before delivery

For Teams: - Clone document templates and populate with data - Automated document validation in CI/CD pipelines

End-to-End Workflow Example

A typical self-healing agent workflow: create a presentation, populate it, verify, and fix issues -- all without human intervention.

```bash

Option A: thin SDK over the resident pipe

from officecli import Doc with Doc("deck.pptx") as d: d.add("/", type="slide", title="Q4 Report") print(d.get("/slide[1]"))

Option B: subprocess wrapper (one-shot, no resident)

import json, subprocess def cli(*args): return json.loads(subprocess.check_output(["officecli", *args, "--json"], text=True)) cli("create", "deck.pptx") ```

The SDK falls back to the default install dir when officecli is not on PATH.

Direct CLI Integration

Get OfficeCLI working with your AI agent in two steps:

  1. Install the binary -- one command (see Installation)
  2. Done. OfficeCLI automatically detects your AI tools (Claude Code, GitHub Copilot, Codex) by checking known config directories and installs its skill file. Your agent can immediately create, read, and modify any Office document.

<details> <summary><strong>Manual setup (optional)</strong></summary>

If auto-install doesn't cover your setup, you can install the skill file manually:

Feed SKILL.md to your agent directly:

curl -fsSL https://officecli.ai/SKILL.md

Install as a local skill for Claude Code:

curl -fsSL https://officecli.ai/SKILL.md -o ~/.claude/skills/officecli.md

Other agents: Include the contents of SKILL.md in your agent's system prompt or tool description.

</details>

Command Reference

CommandDescription
[create](https://github.com/iOfficeAI/OfficeCLI/wiki/command-create)Create a blank .docx, .xlsx, or .pptx (type from extension)
[view](https://github.com/iOfficeAI/OfficeCLI/wiki/command-view)View content (modes: outline, text, annotated, stats (--page-count), issues, html, svg, screenshot, pdf (via exporter plugin), forms (via format-handler plugin)). docx supports --render auto\|native\|html.
[load_skill](https://github.com/iOfficeAI/OfficeCLI/wiki/command-skills)Print embedded SKILL.md content for a specialized skill (no install)
[get](https://github.com/iOfficeAI/OfficeCLI/wiki/command-get)Get element and children (--depth N, --json)
[query](https://github.com/iOfficeAI/OfficeCLI/wiki/command-query)CSS-like query with boolean and/or, row-by-column-name (row[Salary>5000]), --find flag
[set](https://github.com/iOfficeAI/OfficeCLI/wiki/command-set)Modify element properties; accepts selectors and Excel-native paths (parity with get/query), --find/--replace flags
[add](https://github.com/iOfficeAI/OfficeCLI/wiki/command-add)Add element (or clone with --from <path>)
[remove](https://github.com/iOfficeAI/OfficeCLI/wiki/command-remove)Remove an element
[move](https://github.com/iOfficeAI/OfficeCLI/wiki/command-move)Move element (--to <parent>, --index N, --after <path>, --before <path>)
[swap](https://github.com/iOfficeAI/OfficeCLI/wiki/command-swap)Swap two elements
[validate](https://github.com/iOfficeAI/OfficeCLI/wiki/command-validate)Validate against OpenXML schema
view <file> issuesEnumerate document issues (text overflow, missing alt text, formula errors, ...)
[batch](https://github.com/iOfficeAI/OfficeCLI/wiki/command-batch)Multiple operations applied in a single pass (stdin, --input, or --commands; continues on error by default, --stop-on-error to abort)
[dump](https://github.com/iOfficeAI/OfficeCLI/wiki/command-dump)Serialize a .docx or .pptx into a replayable batch JSON (round-trip via batch); accepts a subtree path
[refresh](https://github.com/iOfficeAI/OfficeCLI/wiki/command-refresh)Recalculate TOC page numbers / PAGE / cross-references (.docx; Word backend on Windows, headless-HTML fallback)
[plugins](https://github.com/iOfficeAI/OfficeCLI/wiki/command-plugins)List / inspect / lint installed plugins (extend to .doc, .hwpx, .pdf export via dump-reader / exporter / format-handler kinds)
[merge](https://github.com/iOfficeAI/OfficeCLI/wiki/command-merge)Template merge — replace {{key}} placeholders with JSON data
[watch](https://github.com/iOfficeAI/OfficeCLI/wiki/command-watch)Live HTML preview in browser with auto-refresh
[mcp](https://github.com/iOfficeAI/OfficeCLI/wiki/command-mcp)Start MCP server for AI tool integration
[raw](https://github.com/iOfficeAI/OfficeCLI/wiki/command-raw)View raw XML of a document part
[raw-set](https://github.com/iOfficeAI/OfficeCLI/wiki/command-raw)Modify raw XML via XPath
add-partAdd a new document part (header, chart, etc.)
[open](https://github.com/iOfficeAI/OfficeCLI/wiki/command-open)Start resident mode (keep document in memory)
closeSave and close resident mode
[install](https://github.com/iOfficeAI/OfficeCLI/wiki/command-install)Install binary + skills + MCP (all, claude, cursor, etc.)
configGet or set configuration
<format> <command>[Built-in help](https://github.com/iOfficeAI/OfficeCLI/wiki/command-reference) (e.g. officecli pptx set shape)

AI Integration

Comparison

OfficeCLIMicrosoft OfficeLibreOfficepython-docx / openpyxl
Open source & free✓ (Apache 2.0)✗ (paid license)
AI-native CLI + JSON
Zero install (single binary)✗ (Python + pip)
Call from any language✓ (CLI)✗ (COM/Add-in)✗ (UNO API)Python only
Path-based element access
Raw XML fallbackPartial
Built-in agent-friendly rendering engine
Headless HTML/PNG outputPartial
Template merge ({{key}}) across formats
Round-trip dump → batch JSON
Live preview (auto-refresh on edit)
Headless / CIPartial
Cross-platformWindows/Mac
Word + Excel + PowerPointSeparate libs
🇨🇳 中文文档镜像 AI 翻译 2026-06-29
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

OfficeCLI 是全球首款专为 AI Agent 设计的 Office 套件。它允许开发者通过单行代码,赋予任何 AI Agent 对 Word、Excel 和 PowerPoint 的完全控制权。该项目采用开源设计,提供单二进制文件(Single binary)版本,无需预装 Microsoft Office,也无需管理复杂的依赖环境。其核心优势在于内置了高保真度的 HTML 渲染引擎,能够将文档内容转化为 AI 可理解的视觉信息,真正为 AI ���供了“眼睛”。

⚡ 功能介绍

OfficeCLI 具备强大的文档自动化与视觉感知能力。它不仅支持对 .docx、.xlsx 和 .pptx 文件的创建与编辑,更通过内置渲染引擎实现了高保真度的内容呈现,使 AI Agent 能够精准理解文档布局。此外,它支持无头模式(Headless)运行,非常适合在 Docker 或容器化环境中进行大规模文档处理、数据提取及自动化报告生成。

🛠 安装步骤(Docker/pip/源码)

OfficeCLI 提供极简的安装体验。对于 macOS 和 Linux 用户,可以通过一行 curl 命令完成安装;Windows 用户则可通过 PowerShell 脚本快速部署。由于项目采用了自包含的二进制文件设计,.NET runtime 已被直接嵌入其中,开发者无需手动安装任何运行时环境或管理复杂的依赖,真正实现开箱即用。

🚀 使用教程

OfficeCLI 适用于多种场景。开发者可以利用它通过 API 自动生成报告、进行批量文档处理,或在 CI/CD 流水线中构建文档自动化工作流。对于 AI Agent 开发者,OfficeCLI 可以实现从用户 Prompt 直接生成演示文稿,并能从复杂文档中提取结构化数据。通过简单的命令行指令,即可实现从创建、填充到自动校验的端到端(End-to-End)自愈式工作流。

⚙️ 配置说明(含 MCP / env)

OfficeCLI 提供了两种灵活的集成方式:Option A 采用轻量级 SDK 模式,通过 resident pipe 与文档交互,适合需要频繁操作的场景;Option B 采用 subprocess wrapper 模式,通过单次调用并以 JSON 格式返回结果,适合一次性任务。SDK 会自动检测 officecli 是否在 PATH 中,若未找到则会自动回退至默认安装目录。

🔌 API 说明

将 OfficeCLI 集成到您的 AI Agent 中仅需两步:首先,通过官方提供的单行命令安装二进制文件;其次,OfficeCLI 会自动检测您的 AI 工具环境(如 Claude Code、GitHub Copilot 或 Codex),并通过检查已知的配置目录自动安装相应的 skill file。这种无缝集成确保了 AI Agent 可以直接调用 OfficeCLI 的能力进行文档操作。

🔄 工作流/模块

OfficeCLI 的核心在于其 AI Integration 工作流。它不仅是一个命令行工具,更是一个 AI 技能模块。通过与 Claude 等主流 AI 工具的深度集成,它能够支持复杂的“感知-决策-执行”循环:AI Agent 可以创建文档、填充内容、通过渲染引擎进行视觉验证,并在发现问题时自动进行修复,实现无需人工干预的自动化办公流程。

🎯 aiskill88 AI 点评 A 级 2026-05-20

创新型开源项目,将AI能力与Office工具结合,填补AI智能办公空白。代码质量好、维护活跃,4.6k星显示认可度高。生态还需完善。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • Docker:OfficeCLI 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
OfficeCLI 中文教程OfficeCLI 安装报错怎么办OfficeCLI MCP 配置OfficeCLI Docker 部署OfficeCLI Agent 工作流OfficeCLI 与同类工具对比OfficeCLI 最佳实践OfficeCLI 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

支持Word、Excel等常见Office文档处理,通过CLI接口提供AI集成能力。
💡 AI Skill Hub 点评

总体来看,OfficeCLI Agent工作流 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 OfficeCLI Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 OfficeCLI
原始描述 开源AI工作流:OfficeCLI is the first and best Office suite purpose-built for AI agents to rea。⭐4.6k · C#
Topics AI工作流办公自动化命令行工具Office套件AI代理
GitHub https://github.com/iOfficeAI/OfficeCLI
License Apache-2.0
语言 C#
🔗 原始来源
🐙 GitHub 仓库  https://github.com/iOfficeAI/OfficeCLI 🌐 官方网站  https://officecli.ai

收录时间:2026-05-18 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →