TechBuzzPro

How to Use FreeCAD with Claude Computer Use

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes

Yes, you can use FreeCAD alongside Claude with computer use capabilities by enabling Claude's desktop interaction to control FreeCAD for automated modeling tasks. This setup allows Claude to open files, create sketches, modify parts, and run macros through direct desktop access. You must have FreeCAD installed, Claude's desktop app with computer use enabled, and provide explicit instructions for each action.

What You'll Need

  • FreeCAD installed on your computer (Windows, macOS, or Linux)
  • Claude desktop application with computer use permissions enabled
  • Administrator or user-level access to run both applications
  • A clear modeling objective or task list for Claude to follow
  • Basic familiarity with FreeCAD's interface and workflow

Step-by-Step

  1. Install FreeCAD from the official website if not already installed. Confirm it launches correctly by opening the application manually and checking the startup module loads without errors.
  2. Download and install the official Claude desktop app from the provider's website. Do not use browser-based versions, as computer use requires desktop integration.
  3. Launch the Claude desktop app and go to Settings > Privacy & Permissions. Enable computer use access, granting permission for screen recording, keyboard, and mouse control. On macOS, this may require adding the app to Accessibility settings in System Settings.
  4. Start a new conversation in Claude and type: "I need you to help me use FreeCAD. Please open FreeCAD and create a new document." Wait for confirmation that FreeCAD has launched.
  5. Once FreeCAD is open, instruct Claude to switch to the Part Design workbench. Say: "Switch to the Part Design workbench in FreeCAD." Verify the toolbar changes to include 'Create Sketch', 'Pad', and 'Pocket'.
  6. Direct Claude to create a new sketch on the XY plane. Use the command: "Create a new sketch on the XY plane." Wait for the sketch editor to open.
  7. Specify a shape to draw. For example: "Draw a rectangle centered at the origin with width 50 mm and height 30 mm." Claude should generate the sketch using the rectangle tool.
  8. Exit the sketch and pad it into a 3D object. Say: "Close the sketch and create a pad with 10 mm height." Confirm a solid block appears in the 3D view.
  9. To modify the part, instruct: "Add a pocket in the center, 20 mm wide, 15 mm deep." Ensure the pocket feature is added to the model tree.
  10. Save the file by telling Claude: "Save the document as 'test_part.FCStd' on the desktop." Verify the file appears in the correct location.
  11. For repetitive tasks, write a macro in FreeCAD's Python console, save it as a .FCMacro file, and instruct Claude to run it using: "Open the macro menu and run 'create_bracket.FCMacro'."
  12. To close FreeCAD, say: "Close FreeCAD and save any changes if prompted." Monitor that the app exits cleanly.

Common Mistakes

Not giving Claude enough time to execute each step causes commands to stack or fail. Wait at least 10–15 seconds between instructions, especially after launching apps or switching workbenches. Another mistake is using vague descriptions like "make a shape"—always specify dimensions and position. Some users disable accessibility permissions after reboot, so re-enable them if Claude stops controlling the mouse. Avoid multitasking during automation, as mouse or keyboard input from the user can interfere. Finally, do not assume Claude remembers prior sessions; always restart the workflow from the beginning if resuming.Tips Break complex models into small, sequential steps. For example, create a base pad, then add fillets, then drill holes—each as a separate instruction. Use absolute positions (e.g., "centered at origin") instead of relative terms. Save intermediate versions manually in case automation fails mid-process. Test macros in FreeCAD manually before asking Claude to run them. Use the 'View > Panels > Model' tree to help Claude identify features by name. If a step fails, rephrase the instruction using FreeCAD's exact menu labels, such as 'Part Design' instead of 'design mode'.Troubleshooting If FreeCAD does not launch, confirm it is in the system PATH or provide the full path in the instruction: "Open FreeCAD using 'C:\\Program Files\\FreeCAD\\bin\\FreeCAD.exe'." If Claude misidentifies buttons, increase screen resolution or zoom FreeCAD to 100% view. When sketches fail to close, instruct: "Click the 'Close Sketch' button in the toolbar." If saving fails, ensure the desktop or target folder is writable. If computer use permissions are denied, restart the system and re-grant access in OS settings. If actions become desynchronized, restart both apps and begin the workflow fresh. Never force quit during automation—wait for timeouts.Frequently Asked Questions

Can Claude fully automate FreeCAD modeling?

Claude can automate basic tasks like sketching, padding, and saving if given precise instructions, but complex parametric modeling may require manual oversight.

Does this work on Linux?

Yes, if the Claude desktop app supports Linux and has accessibility permissions enabled through the system settings.

Can I use this with FreeCAD 0.20 or newer?

Yes, the interface elements used in the steps are consistent across FreeCAD 0.19 and later versions.

Is it safe to grant computer use permissions?

Only grant access if you trust the Claude application. Revoke permissions when not in use to limit unintended input.

What if Claude clicks the wrong button?

This can happen due to UI scaling or window positioning. Reposition the FreeCAD window to the top-left and maximize it before starting.

Can I run FreeCAD macros through Claude?

Yes, if the macro is saved in FreeCAD's macro directory and you explicitly tell Claude to run it by name.