Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yoshikoukiv1.0.0LGPL-2.1-or-laterIn 1 marketplace
Lets Claude build 3D models in a running FreeCAD, export them to STL or STEP and take screenshots. Needs FreeCAD with the freecad-cli addon installed; execute-code runs arbitrary Python inside FreeCAD, so connect only to instances you control.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
freecad, cad, 3d-modeling, xml-rpc, cad-automation, stl-export, step-export, rpc ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Python CLI tool for controlling FreeCAD from AI Agents via shell. Communicates with FreeCAD over XML-RPC (port 9875).
flowchart TD
A[AI Agent] -->|shell| B[freecad-cli<br/>Python CLI]
B -->|XML-RPC<br/>localhost:9875| C[FreeCAD + Addon<br/>thin eval proxy]
The addon is a minimal XML-RPC server that runs inside FreeCAD. It only exposes ping and execute_code — all business logic lives in the CLI client, so new CLI features never require changing the addon. See docs/architecture.md for design rationale and docs/product-direction.md for the command philosophy.
Security note:
execute-coderuns arbitrary Python inside the FreeCAD process. The RPC server binds to127.0.0.1only — it is not accessible over the network. Only connect to a FreeCAD instance you control.
uv tool install -e .freecad-cli install-addon (symlink on macOS/Linux, directory junction on Windows)freecad-cli pinginstall-addon selects the newest existing vX-Y directory under the user data
directory's FreeCAD folder, or the unversioned FreeCAD folder if none exists,
then installs into its Mod directory. The data directory is
~/Library/Application Support on macOS, $XDG_DATA_HOME (default
~/.local/share) on Linux, and %APPDATA% on Windows. The JSON result includes
the installed path.
The CLI does not detect the running FreeCAD version. If a newer development
version has left a directory that your current FreeCAD does not use, select the
actual Mod directory explicitly:
freecad-cli install-addon --mod-dir /path/to/FreeCAD/v1-1/Mod
Filesystem failures return JSON on stderr with "status": "error" and
"code": "installation_error", and a nonzero exit code.
The core command. Sends Python code to FreeCAD for execution.
# Inline code
freecad-cli execute-code 'print(FreeCAD.ActiveDocument.Name)'
# Read from a file
freecad-cli execute-code --file script.py
# Pipe from stdin
cat script.py | freecad-cli execute-code -
echo 'print(1+1)' | freecad-cli execute-code -
Export the active object to STL, STEP, or FCStd.
freecad-cli export stl -o output.stl
freecad-cli export step -o output.step --object MyBody
freecad-cli export fcstd -o model.FCStd
freecad-cli ping
freecad-cli create-document MyDoc
freecad-cli active-document
freecad-cli screenshot --width 800
All commands return JSON output:
{"status": "ok", "data": true}
This repository ships one canonical freecad-cli skill under skills/freecad-cli/ and the freecad-operator agent under agents/.
The Codex plugin manifest at .codex-plugin/plugin.json points at the same skill directory, so Claude Code and Codex-style agent runtimes can share the same operating guidance.
Install or register this repository as a Codex plugin. The plugin exposes the $freecad-cli skill for setup, operation reference, and troubleshooting.
The skill is designed around the project's command philosophy: prefer freecad-cli execute-code for FreeCAD API work, and use high-level commands for setup, diagnostics, screenshots, and exports.
Install as a Claude Code plugin:
/plugin marketplace add yoshikouki/freecad-cli
/plugin install freecad-cli@yoshikouki-freecad-cli
The plugin provides the /freecad-cli skill (setup, operation reference, troubleshooting) and a freecad-operator agent for CAD modeling tasks.
Copy and paste this prompt to your AI agent:
Install freecad-cli by following the setup guide at
SETUP_AGENT.mdin the repository: https://github.com/yoshikouki/freecad-cli. If any prerequisites are missing, ask me before installing them.
uv sync
git config core.hooksPath .githooks
uv tool install -e .
Installed in editable mode — source code changes take effect immediately.
To uninstall:
uv tool uninstall freecad-cli
uv run pytest
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub yoshikouki/freecad-cli --plugin freecad-cliPlugins from other owners that cover similar ground