### Start Extension Examples Source: https://github.com/iofficeai/aionui/blob/main/examples/ext-wecom-bot/README.md Run this command to start the application with extension examples enabled. ```powershell just dev-ext ``` -------------------------------- ### Install Dependencies and Run Development Server Source: https://github.com/iofficeai/aionui/blob/main/readme.md Commands to install project dependencies and start the development server using Bun. Ensure Bun is installed before running these commands. ```bash bun install # install dependencies ``` ```bash bun run dev # start dev server ``` ```bash bun run test # run unit tests ``` -------------------------------- ### Run Setup Script Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/assistant/star-office-helper/star-office-helper.md If the environment is missing, run the setup script to install necessary dependencies. This follows the doctor script if issues are detected. ```bash bash skills/star-office-helper/scripts/star_office_setup.sh ``` -------------------------------- ### Start AionUi WebUI on Linux (.deb Installation) Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/webui.md Run AionUi in WebUI mode from the command line for .deb installations. Use either the system path or the full installation path. ```bash aionui --webui ``` ```bash /opt/AionUi/aionui --webui ``` -------------------------------- ### Start Star Office Frontend Service Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/star-office-helper/SKILL.md Starts the Star Office frontend development server using npm. This command installs dependencies and then runs the frontend application in the background. ```bash cd ~/Star-Office-UI/frontend && npm install && nohup npm run dev > /dev/null 2>&1 & ``` -------------------------------- ### Start AionUi with Full Path (Windows) Source: https://github.com/iofficeai/aionui/wiki/WebUI-Configuration-Guide If the AionUi command is not found, use the full installation path to start AionUi with WebUI enabled on Windows. ```cmd "C:\Program Files\AionUi\AionUi.exe" --webui ``` -------------------------------- ### Start WebUI in Production Mode Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Start the WebUI in production mode. ```bash bun run webui:prod ``` -------------------------------- ### Start Development Server Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Start the Electron app in development mode for desktop use. ```bash bun start ``` -------------------------------- ### Install Ubuntu via Proot Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/webui.md Installs Ubuntu using proot-distro and logs into the environment. This is the first step for setting up AionUi on Termux. ```bash # Install Ubuntu rootfs proot-distro install ubuntu # Login to Ubuntu environment proot-distro login ubuntu ``` -------------------------------- ### Install AionUi .deb Package Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/deploy-server.md Download and install the AionUi .deb package. Use `apt-get install -f` to resolve any missing dependencies. ```bash wget https://github.com/iOfficeAI/AionUi/releases/latest/download/AionUi-linux-amd64.deb # Install sudo dpkg -i AionUi-linux-amd64.deb sudo apt-get install -f # Fix missing dependencies ``` -------------------------------- ### Sequential Workflow Example Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/skill-creator/references/workflows.md Use this pattern to outline a series of steps for a complex task. This helps guide the AI through a multi-stage process. ```markdown Filling a PDF form involves these steps: 1. Analyze the form (run analyze_form.py) 2. Create field mapping (edit fields.json) 3. Validate mapping (run validate_fields.py) 4. Fill the form (run fill_form.py) 5. Verify output (run verify_output.py) ``` -------------------------------- ### Clone and Install Dependencies Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Clone the repository and install project dependencies using bun. ```bash git clone https://github.com/iOfficeAI/AionUi.git cd AionUi bun install ``` -------------------------------- ### Start Multi-Instance Development Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Start a second Electron instance alongside an existing one for multi-instance development. ```bash bun run start:multi ``` -------------------------------- ### Enable and Start AionUi WebUI Service Source: https://github.com/iofficeai/aionui/wiki/Remote-Internet-Access-Guide Commands to reload systemd, enable the AionUi WebUI service to start on boot, start the service immediately, and check its status. ```bash sudo systemctl daemon-reload sudo systemctl enable aionui-webui.service sudo systemctl start aionui-webui.service sudo systemctl status aionui-webui.service ``` -------------------------------- ### Install OpenCode CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Install the OpenCode CLI using Go. This command fetches the latest version from GitHub. ```bash go install github.com/opencode-ai/opencode@latest ``` -------------------------------- ### Install Qwen Code CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Installs the Qwen Code CLI globally using npm. Requires Node.js and npm. ```bash npm install -g @qwen-code/qwen-code ``` -------------------------------- ### Install Qoder CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Install the Qoder CLI globally using npm. This CLI is for AI-powered coding assistance. ```bash npm install -g @qoder-ai/qoder-cli ``` -------------------------------- ### Install Kimi CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Install the Kimi CLI globally using npm. This CLI is related to Moonshot. ```bash npm install -g @anthropic-ai/kimi-cli ``` -------------------------------- ### Start WebUI Mode Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Start the application in WebUI mode for browser-based development without an Electron window. ```bash bun run webui ``` -------------------------------- ### Troubleshooting Xvfb Installation Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/deploy-server.md Install necessary Xvfb and X11 components for graphical applications in environments without a display server. ```bash apt-get install -y xvfb libxkbcommon-x11-0 ``` -------------------------------- ### Start WebUI Production with Remote Access Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Start the WebUI in production mode with remote access enabled. ```bash bun run webui:prod:remote ``` -------------------------------- ### PDF Processing Quick Start with pdfplumber Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/skill-creator/SKILL.md Demonstrates extracting text from a PDF using the pdfplumber library. This is a basic example for getting started with PDF text extraction. ```markdown # PDF Processing ## Quick start Extract text with pdfplumber: [code example] ``` -------------------------------- ### Package All Processes Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Build all processes (main, preload, renderer) and output them to the `out/` directory. ```bash bun run package ``` -------------------------------- ### File Management Tool Usage Example Source: https://github.com/iofficeai/aionui/wiki/MCP-Configuration-Guide Demonstrates how to use the filesystem MCP service for organizing desktop files. This example shows a user interaction flow where the AI assists with file organization. ```text User: Help me organize the files on my desktop AI: I'll help you organize your desktop files. Let me first check what files are on your desktop... [Calling filesystem MCP] - Scan desktop directory - Categorize by file type - Create organized folder structure - Move files to corresponding folders Organization complete! I've categorized and organized your desktop files by type. ``` -------------------------------- ### Install OpenClaw Gateway on macOS Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/openclaw-setup/references/troubleshooting.md Use the `openclaw gateway install` command to ensure the Gateway service is properly installed and configured on macOS. This can resolve issues related to service setup. ```bash openclaw gateway install ``` -------------------------------- ### Check OpenClaw Installation and Configuration Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/assistant/openclaw-setup/openclaw-setup.md Verifies the installation status and configuration of OpenClaw. This command is crucial for diagnosing issues and confirming setup. ```bash source ~/.zshrc && openclaw doctor ``` -------------------------------- ### Task Start: Initial File Creation and Goal Setting Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/assistant/planning-with-files/planning-with-files.md Outlines the mandatory steps at the beginning of a task session: creating task_plan.md, findings.md, and progress.md using templates, and then filling in the Goal section of task_plan.md. ```markdown ## Goal [One sentence describing the end state] ## Current Phase Phase 1 ## Phases ### Phase 1: Requirements & Discovery - [ ] Understand user intent - [ ] Identify constraints - **Status:** in_progress ``` -------------------------------- ### Fetch Skill Guide - Bash Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/aionui-skills/SKILL.md Fetches the SKILL.md guide from the AionUI Skills registry to a local configuration directory. This is the first step in setting up the AionUI Skills market. ```bash mkdir -p ~/.config/aionui-skills curl -s https://skills.aionui.com/SKILL.md > ~/.config/aionui-skills/SKILL.md ``` -------------------------------- ### Start, Get Status, and Control WebUI using webui API Source: https://context7.com/iofficeai/aionui/llms.txt Starts an embedded Express HTTP server for remote access and retrieves its status. Use this to enable browser-based control and monitoring of the application. Supports starting on a specific port, remote access, QR token generation, password changes, and stopping the server. ```typescript import { webui } from '@/common/adapter/ipcBridge'; // Start WebUI on a specific port with LAN access const startResult = await webui.start({ port: 3000, allowRemote: true }); if (startResult.success && startResult.data) { console.log('Local URL:', startResult.data.localUrl); // http://localhost:3000 console.log('Network URL:', startResult.data.networkUrl); // http://192.168.1.10:3000 console.log('LAN IP:', startResult.data.lanIP); // First-time: startResult.data.initialPassword is set } // Get current WebUI status const status = await webui.getStatus(); if (status.success && status.data) { const s = status.data; console.log({ running: s.running, port: s.port, allowRemote: s.allowRemote, localUrl: s.localUrl, adminUsername: s.adminUsername, }); } // Generate a QR token for mobile login (scan QR → auto-login in browser) const qrResult = await webui.generateQRToken(); if (qrResult.success && qrResult.data) { console.log('QR URL:', qrResult.data.qrUrl); console.log('Expires at:', new Date(qrResult.data.expiresAt)); } // Change the WebUI password await webui.changePassword({ newPassword: 'S3cureP@ssw0rd!' }); // Stop the server await webui.stop(); ``` -------------------------------- ### Start Document Preview Server Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/office-cli/SKILL.md Start a live HTML preview server for a document that auto-refreshes on file changes. The CLI can interact with browser selections. ```bash officecli watch [--port N] # Start preview server (default port 18080) ``` ```bash officecli unwatch # Stop ``` ```bash officecli goto # Scroll watching browser(s) to element (docx: p / table / tr / tc) ``` -------------------------------- ### Start App with Performance Monitoring Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Launch the application with performance monitoring enabled. This is useful for identifying performance bottlenecks during development. ```bash bun run debug:perf ``` -------------------------------- ### Apply Changes to Selected Elements Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/office-cli/SKILL.md Example of getting selected paths and applying a property change (e.g., fill color) to them using a loop. ```bash # User clicks shapes in the browser, then asks "make these red" PATHS=$(officecli get deck.pptx selected --json | jq -r '.data.Results[].path') for p in $PATHS; do officecli set deck.pptx "$p" --prop fill=FF0000; done ``` -------------------------------- ### Install Python on macOS Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/assistant/ui-ux-pro-max/ui-ux-pro-max.md Install Python 3.x on macOS using Homebrew if it's not already installed. ```bash brew install python3 ``` -------------------------------- ### Verify iFlow CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Check the installed version of the iFlow CLI to confirm successful installation. ```bash iflow --version ``` -------------------------------- ### Install CodeX CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Installs the CodeX CLI globally using npm. Ensure Node.js and npm are installed. ```bash npm install -g @openai/codex ``` -------------------------------- ### Initiate OpenClaw Onboarding and Configuration Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/assistant/openclaw-setup/openclaw-setup.md Starts the interactive wizard for initial OpenClaw configuration, including setting up the Gateway as a background service. This command is run directly by the user in their terminal. ```bash openclaw onboard --install-daemon ``` -------------------------------- ### Create a new PowerPoint document Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/morph-ppt/reference/officecli-pptx-min.md Initializes a new presentation file. ```bash # 1. Create document officecli create deck.pptx ``` -------------------------------- ### Install officecli on macOS/Linux Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/office-cli/SKILL.md Use this command to install officecli on macOS or Linux systems by downloading and executing the installation script. ```bash # macOS / Linux curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash ``` -------------------------------- ### Quick Start AionUi WebUI on Android (Termux) Source: https://github.com/iofficeai/aionui/wiki/WebUI-Configuration-Guide A quick start command to launch the AionUi WebUI with network access from the Termux main shell, logging into the Ubuntu environment. ```bash proot-distro login ubuntu -- bash -c "AionUi --no-sandbox --webui --remote" ``` -------------------------------- ### Verify OpenClaw Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Verify the OpenClaw CLI installation by checking its version. This command confirms that the CLI has been installed correctly. ```bash openclaw --version ``` -------------------------------- ### Verify officecli Installation Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/officecli-academic-paper/SKILL.md Checks the installed version of officecli. If installation failed, try opening a new terminal and running this command again. ```bash officecli --version ``` -------------------------------- ### Start Backend with venv Python Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/star-office-helper/references/troubleshooting.md Use this command to start the backend service, ensuring it uses the virtual environment's Python interpreter. This is often necessary after setting up a Python virtual environment. ```bash cd backend && ../.venv/bin/python app.py ``` -------------------------------- ### Utils Directory Structure Example Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/file-structure.md Organize utilities into domain-specific subdirectories when the root exceeds 10 children. The root should remain under 10 direct children. ```tree utils/ ├── file/ # File handling ├── workspace/ # Workspace utilities ├── chat/ # Chat/message utilities ├── model/ # Model/agent utilities ├── theme/ # Theme/style utilities ├── ui/ # Generic UI utilities └── ... # Ungrouped utilities at root ``` -------------------------------- ### Install Termux and Proot-Distro on Android Source: https://github.com/iofficeai/aionui/wiki/WebUI-Configuration-Guide Commands to install Termux and the proot-distro package, then install and log into an Ubuntu environment within Termux. ```bash pkg update -y pkg install proot-distro -y proot-distro install ubuntu proot-distro login ubuntu ``` -------------------------------- ### Install CodeBuddy CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Install the CodeBuddy CLI globally with npm or use npx for direct execution without global installation. ```bash npm install -g @tencent-ai/codebuddy-code ``` ```bash npx @tencent-ai/codebuddy-code ``` -------------------------------- ### Verify Factory Droid CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Check the installed version of the Factory Droid CLI. Installation requires setting FACTORY_API_KEY. ```bash droid --version ``` -------------------------------- ### Build Standalone Server Bundle Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Build the standalone server bundle and output it to the `dist-server/` directory. ```bash bun run build:server ``` -------------------------------- ### Install Claude Code CLI Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Installs the Claude Code CLI globally using npm. Ensure Node.js and npm are installed. ```bash npm install -g @anthropic-ai/claude-code ``` -------------------------------- ### OfficeCLI Workflow Example: Discover, Apply, Validate Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/morph-ppt/reference/officecli-pptx-min.md Demonstrates a typical workflow for discovering properties, applying them to a presentation, and validating the changes. ```bash # Step 1: What can I modify on shapes? $ officecli pptx set shape # Output: text, fill, x, y, width, height, font, size, bold, italic, gradient, shadow... # Step 2: How do I use gradient? $ officecli pptx set shape.gradient # Output: gradient="linear:90:FF0000,0000FF" or "radial:FF0000,0000FF" # Step 3: Apply it officecli set demo.pptx '/slide[1]/shape[1]' --prop gradient="linear:90:FF0000,0000FF" # Step 4: Validate officecli validate demo.pptx ``` -------------------------------- ### Install AionUi with Homebrew Source: https://github.com/iofficeai/aionui/wiki/Getting-Started Use this command to install AionUi on macOS via Homebrew. This is the recommended installation method for macOS users. ```bash brew install aionui ``` -------------------------------- ### Basic Preview Module Usage Source: https://github.com/iofficeai/aionui/blob/main/src/renderer/pages/conversation/Preview/README.en.md Demonstrates how to wrap the application with PreviewProvider and use the usePreviewContext hook to open a file in the preview. ```tsx import { PreviewProvider, usePreviewContext } from './preview'; function App() { return ( ); } function YourComponent() { const { openPreview } = usePreviewContext(); const handleOpenFile = async (filePath: string) => { const content = await readFile(filePath); openPreview(content, 'markdown', { fileName: 'example.md', filePath: '/path/to/example.md', workspace: '/workspace/root', }); }; return ; } ``` -------------------------------- ### Install System Dependencies in Ubuntu (Termux) Source: https://github.com/iofficeai/aionui/wiki/WebUI-Configuration-Guide Installs necessary system dependencies within the Ubuntu environment in Termux, required before installing AionUi. ```bash apt update apt install -y wget libgtk-3-0 libnss3 libasound2 libgbm1 libxshmfence1 ca-certificates ``` -------------------------------- ### Install Moltbook Skill Locally Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/moltbook/SKILL.md Installs the Moltbook skill files locally using curl. Ensure you have curl installed and the target directory exists. ```bash mkdir -p ~/.moltbot/skills/moltbook curl -s https://www.moltbook.com/skill.md > ~/.moltbot/skills/moltbook/SKILL.md curl -s https://www.moltbook.com/heartbeat.md > ~/.moltbot/skills/moltbook/HEARTBEAT.md curl -s https://www.moltbook.com/messaging.md > ~/.moltbot/skills/moltbook/MESSAGING.md curl -s https://www.moltbook.com/skill.json > ~/.moltbot/skills/moltbook/package.json ``` -------------------------------- ### Create AionUi Startup Script Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/webui.md Creates a bash script to easily launch AionUi with specified flags. This script can be made executable and run from the command line. ```bash # Create script in Ubuntu (proot) cat > ~/start-aionui.sh << 'EOF' #!/bin/bash echo "Starting AionUi WebUI..." AionUi --no-sandbox --webui --remote EOF # Make executable chmod +x ~/start-aionui.sh # Run anytime ./start-aionui.sh ``` -------------------------------- ### Resetting Retry Count on Session Start Source: https://github.com/iofficeai/aionui/blob/main/docs/specs/acp-rewrite/06-scenario-walkthrough.md When starting or restarting a session, the startRetryCount is reset to 0. This is a crucial step for managing retry attempts and ensuring a fresh start after an error. ```typescript S->>S: startRetryCount = 0 — 重置重试计数 (T21) ``` -------------------------------- ### Start OpenClaw Gateway Service on Linux Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/openclaw-setup/references/troubleshooting.md Start the OpenClaw Gateway service on Linux with `systemctl --user start openclaw-gateway`. This command is used to manually initiate the service when it is not running. ```bash systemctl --user start openclaw-gateway ``` -------------------------------- ### Verify OpenCode CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Check the installed version of the OpenCode CLI. ```bash opencode --version ``` -------------------------------- ### Basic PDF Creation with reportlab Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/pdf/SKILL.md Creates a simple PDF file named 'hello.pdf' with text and a line using the reportlab library. Requires reportlab to be installed. ```python from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas c = canvas.Canvas("hello.pdf", pagesize=letter) width, height = letter # Add text c.drawString(100, height - 100, "Hello World!") c.drawString(100, height - 120, "This is a PDF created with reportlab") # Add a line c.line(100, height - 140, 400, height - 140) # Save c.save() ``` -------------------------------- ### Verify CodeX Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Checks the CodeX CLI installation by displaying its version. ```bash codex --version ``` -------------------------------- ### Set up Python Virtual Environment for pip install Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/star-office-helper/references/troubleshooting.md Follow these steps to create and activate a Python virtual environment, then install dependencies. This is the recommended approach on macOS to avoid system-wide package conflicts. ```bash python3 -m venv .venv ``` ```bash .venv/bin/python -m pip install --upgrade pip ``` ```bash .venv/bin/python -m pip install -r backend/requirements.txt ``` -------------------------------- ### Build Windows Distributable Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Build a distributable for Windows. ```bash bun run build-win ``` -------------------------------- ### Install officecli on Windows Source: https://github.com/iofficeai/aionui/blob/main/src/process/resources/skills/_builtin/office-cli/SKILL.md Use this PowerShell command to install officecli on Windows systems. ```powershell # Windows (PowerShell) irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex ``` -------------------------------- ### Start AionUi WebUI on Windows (Command Line) Source: https://github.com/iofficeai/aionui/blob/main/docs/guides/webui.md Run AionUi with the --webui flag from the command line. Ensure the path to AionUi.exe is correct or that it's in your system's PATH. ```cmd "C:\Program Files\AionUi\AionUi.exe" --webui ``` ```cmd AionUi.exe --webui ``` -------------------------------- ### Verify Nanobot CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Confirm the Nanobot CLI installation by checking its version. ```bash nanobot --version ``` -------------------------------- ### Verify Qoder CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Confirm the Qoder CLI installation by checking its version. ```bash qodercli --version ``` -------------------------------- ### Build Windows Distributable for x64 Source: https://github.com/iofficeai/aionui/blob/main/docs/contributing/development.md Build a distributable for Windows on x64 architecture. ```bash bun run build-win:x64 ``` -------------------------------- ### Verify CodeBuddy CLI Installation Source: https://github.com/iofficeai/aionui/wiki/ACP-Setup Confirm the CodeBuddy CLI installation by checking its version. ```bash codebuddy --version ```