OfficeCLI is a command-line tool that turns natural-language prompts into editable Office files and
standalone images from a terminal, script, CI job, or local automation flow. Use one officecli binary
to generate PPTX, DOCX, XLSX, workbook-backed Report, and img outputs, with hosted trial access
for first runs and External Mode when you want to bring your own LLM endpoint.
Chinese documentation: README.zh-CN.md
- Website: officecli.io/officecli
- Demo gallery: demos/README.md
- Optional agent skills: Claude Code, Codex, OpenClaw
- Community: Discord
npm is the recommended install path for most users:
npm install -g officecliVerify the installed binary:
officecli --version
officecli auth statusAlternative install paths are available when npm is not a good fit.
Install the latest release binary directly:
curl -fsSL https://raw.githubusercontent.com/officecli/officecli-dist/main/scripts/install-officecli.sh | bashOr install with Homebrew:
brew tap officecli/officecli
brew install officecliHosted anonymous trial access is available by default, so the first run does not require a local model endpoint or API key.
Generate a PPTX deck:
officecli new pptx "Q3 Business Review" --prompt "Create a six-slide executive deck for a SaaS quarterly business review. Cover growth, retention, risks, and next-quarter actions."Generate a DOCX:
officecli new docx "Product Launch Brief" --prompt "Write a concise launch brief with audience, positioning, timeline, risks, and next steps."Generate an XLSX workbook:
officecli new xlsx "Sales Pipeline" --prompt "Create a sales pipeline workbook with stages, owners, deal values, probability, and next action columns."Generate a workbook-backed report:
officecli new report "Q2 Business Review" --file ./data/q2_metrics.xlsx --prompt "Summarize regional revenue shifts and the board-level decision points."Generate a standalone image:
officecli new img "Launch Visual" --prompt "Create a polished product launch hero image for an enterprise collaboration platform." --ratio landscape --reference-image ./reference.pngGenerated files are written to ./output by default. Use --out <dir> to choose another directory,
--json for machine-readable output, and --no-publish when you want local-only output.
For PPTX, OfficeCLI generates and embeds suitable images by default. Use --no-images for a
text-only deck.
| Search intent | OfficeCLI capability |
|---|---|
| AI PPTX generator | Create editable PowerPoint decks from prompts, with images by default and --no-images for text-only decks. |
| DOCX generator CLI | Draft editable Word documents for briefs, memos, proposals, and customer-facing documents. |
| XLSX automation | Generate workbooks, trackers, dashboards, and analysis sheets from structured prompts. |
| Report generation | Use an existing workbook as evidence and generate a readable workbook-backed report. |
| Image generation CLI | Generate standalone img outputs with --ratio square|landscape|portrait and optional reference images. |
| Local-first document automation | Run from a terminal, script, CI job, or agent workflow with one installable binary. |
Check the current access mode:
officecli auth statusWhen the hosted trial is used up, create or purchase a hosted key from https://officecli.io/pricing, then save it:
officecli auth set-key <api-key>To use your own model endpoint instead of Hosted Mode, switch to External Mode and initialize generation:
officecli config set-runtime external
officecli config set-generationConfigure optional online publishing:
officecli config set-publishInspect the current config:
officecli config statusThe officecli binary supports:
- AI PPTX generation for decks, proposals, and executive briefings
- AI DOCX drafting for retrospectives, memos, and customer-facing documents
- AI XLSX generation for workbooks, trackers, and analysis sheets
- workbook-backed reports
- standalone image generation with
--ratio square|landscape|portrait - optional reference images for standalone
imgoutput - local-only generation with
--no-publish - structural PPTX scoring with
officecli score pptx <file>
The compatibility alias remains available:
officecli review pptx ./output/Enterprise-Collaboration-Platform.pptxThese checked-in demos show the visible result and the reproducible inputs together. Each demo includes
a preview image, the generated artifact, prompt.md, metadata.json, and the command used to reproduce
the flow with a configured OfficeCLI runtime.
| AI PPTX, DOCX, XLSX, report, and image demos | Preview | Files |
|---|---|---|
| AI PPTX generator with images | ![]() |
PPTX · Prompt · Metadata |
| Text-only AI PPTX generator | ![]() |
PPTX · Prompt · Metadata |
| DOCX generator CLI | ![]() |
DOCX · Prompt · Metadata |
| XLSX automation dashboard | ![]() |
XLSX · Prompt · Metadata |
| Workbook-backed report generation | ![]() |
HTML report · Source XLSX · Prompt |
| Image generation CLI | ![]() |
PNG · Prompt · Metadata |
See demos/README.md for the complete reproducibility table and verification notes.
AI agents can use OfficeCLI through public skills when you want the agent to route Office tasks into the
local binary instead of calling the CLI manually. This is optional: the primary interface is still the
officecli command.
OfficeCLI can be installed directly by Claude Code from the marketplace source.
OfficeCLI marketplace source:
/plugin marketplace add officecli/officecli
Install the primary plugin:
/plugin install officecli@officecli
Use the direct installer when you want the public skill files without marketplace installation.
Use wget:
wget -qO- https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-skill.sh | bash -s -- officecliOr use curl:
curl -fsSL https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-skill.sh | bash -s -- officecliIf you only want the skill and do not want to auto-install the binary:
curl -fsSL https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-skill.sh | AUTO_INSTALL_BINARY=0 bash -s -- officecliIf you want OpenClaw users to generate local Office files directly from Telegram, Discord, Slack, or other channels, install the OpenClaw-facing skill package.
Use wget:
wget -qO- https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-openclaw-skill.sh | bashOr use curl:
curl -fsSL https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-openclaw-skill.sh | bashThe OpenClaw installer will:
- install
openclaw-officecliinto~/.openclaw/skills - create
config.yamlfromconfig.example.yamlwhen needed - try to auto-install the
officeclibinary when it is missing
If you only want the OpenClaw skill and do not want to auto-install the binary:
curl -fsSL https://raw.githubusercontent.com/officecli/officecli/main/scripts/install-openclaw-skill.sh | AUTO_INSTALL_BINARY=0 bash- a local
officeclibinary - OfficeCLI access through hosted trial, hosted key, or External Mode configuration
- optional publishing configuration when you want online preview URLs
- for agent integrations, permission for the agent client to invoke local commands on the same machine
Quick verification after installation:
officecli --version
officecli config statusFor OpenClaw, also verify:
officecli agent-bridgeofficecliis the command-line binary you use to generate Office files and images- this repository is the public install, docs, demos, and integration surface for that binary
officecliis also the general optional skill for Claude Code, Codex, and other local agentsopenclaw-officecliis the OpenClaw-oriented package
No. This repository distributes binary install docs, demos, scripts, and optional local skill wrappers.
No. The main workflow is direct CLI usage through commands like officecli new pptx, officecli new docx, officecli new xlsx, officecli new report, and officecli new img.
Yes, when the local officecli runtime is installed and configured. The repository tells the agent how
to route supported Office and image tasks into the local OfficeCLI binary.
Because marketplace install is only one entrypoint. This repository also distributes direct skill files for Codex-style local agents and other agent runtimes.
No. It contains public install docs, demos, scripts, skill definitions, and plugin wrappers.
install/README.md: install entrypoint for search and onboardingclaude-code/README.md: Claude Code marketplace install guidecodex/README.md: direct local install guide for Codex-style agentsopenclaw/README.md: OpenClaw installer and bridge guidefaq/README.md: FAQ entrypoint.claude-plugin/marketplace.json: Claude Code marketplace definitiondemos/: reproducible demo gallery with preview images, prompts, metadata, and generated filesplugins/officecli/: Claude Code plugin wrapper for theofficecliskillplugins/openclaw-officecli/: Claude Code plugin wrapper for theopenclaw-officecliskillskills/officecli/: public OfficeCLI skill definitionskills/openclaw-officecli/: public OpenClaw skill definitionscripts/install-skill.sh: shell installer for directwget/curlusagescripts/install-openclaw-skill.sh: shell installer for OpenClaw users





