Skip to content

About

SmartHopper is an open-source project that implements third-party AI APIs to provide advanced features for Grasshopper3D.

Topics

Resources

Contributing

Stars

36 stars

Watchers

0 watching

Forks

Latest commit

 

History

4,814 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartHopper - AI-Powered Tools and Assistant for Grasshopper3D

Version Status .NET CI Ready to use License Ask DeepWiki

Are you looking for a stable version? Visit our webpage at smarthopper.xyz to get the latest stable release.

SmartHopper

Open-source AI for Grasshopper 3D that keeps you in control.

Embed AI directly inside your definitions with native parametric components, work alongside a customizable agentic canvas assistant, or connect Claude, Codex, Cursor, and VS Code through the built-in MCP server — with staged diff reviews, Ctrl+Z undo, and your choice of cloud or offline local models.

80+ AI tools · 90+ Grasshopper components · 8 AI providers · MCP Server


Why SmartHopper?

  • Native parametric components — AI inside your data flow, not just on top of it. Most AI tools only talk to the canvas from the outside. SmartHopper gives you composable Grasshopper components (Text to AI, Image to AI, File to AI → AI to Number, AI to Boolean, AI to JSON, AI to Script, and more) that live inside your data trees and output native Grasshopper types without fragile string parsing.
  • Staged canvas review and Ctrl+Z undo. When the assistant or an external agent proposes changes to your definition, you inspect and approve every addition, wire, or modification before it lands on the canvas — and Ctrl+Z undoes it like any manual edit.
  • Plain-text definitions with GhJSON. SmartHopper created and uses GhJSON (.ghjson) and GhPatch (.ghpatch) — open, human-readable JSON formats for Grasshopper definitions and surgical diffs that work cleanly with AI models and Git version control.
  • Your providers, your keys, your privacy. Connect OpenAI, Anthropic, Google Gemini, MistralAI, DeepSeek, or OpenRouter with OS-encrypted API keys, or run 100% offline and free on your workstation with Ollama or LocalAI.

Three ways to work

1. Native parametric components (Input → Output)

When you want AI embedded inside a parametric definition, chain an Input component into an Output component:

[Your data] ──► [Input component] ──(Input >)──► [Output component] ──► [Typed Grasshopper data]
                 (Text2AI, Img2AI,                (AI→Text, AI→Num,
                  File2AI, Web2AI…)                AI→Bool, AI→JSON…)

Any input component connects to any output component, and you can merge multiple inputs (such as a prompt, a screenshot, and a PDF) into a single AI call. For common single-step tasks, SmartHopper also includes ready-made components such as AI Text To Text, AI List Filter, AI Text To Image, and AI Script Generate.

A Text to AI input component feeding an AI to Text output component on the Grasshopper canvas

2. Customizable agentic canvas assistant (AI Chat)

Click the SmartHopper button on the Grasshopper canvas (or drop an AI Chat component into your file) to open an interactive agentic assistant with customizable system instructions and access to 80+ AI tools. It can read your selected components, diagnose runtime errors, look up solutions on the McNeel and Ladybug forums, write or review script components, and stage edits to your definition that you review item by item before applying.

The canvas assistant diagnosing why a selected component is not returning a value

3. Built-in MCP server for external agents

Start the SmartHopper MCP Server component to expose your canvas over a local, token-protected Model Context Protocol endpoint. External agents such as Claude Desktop, Claude Code, OpenAI Codex, Cursor, or VS Code can inspect your definition and (when you allow it) propose canvas edits through the same reviewed, undo-safe tool pipeline.

The MCP Server component exposing a local streamable HTTP endpoint on the canvas

Key capabilities

  • Wire AI into your definition with native Grasshopper types. Wrap inputs (Text to AI, Image to AI, File to AI, Web to AI, Canvas to AI) and extract typed outputs (AI to Text, AI to Number, AI to Boolean, AI to JSON, AI to GhJSON, AI to Image, AI to Speech, AI to Script) that plug straight into standard Grasshopper parameters.
  • Generate, edit, and review scripts. Describe what you need in Python, C#, VB.NET, or IronPython and get a ready-to-run script component with inputs, outputs, and code — or run a static AI review on an existing script.
  • Bring documents, web pages, and forum threads into Grasshopper. Convert PDFs, Word docs, spreadsheets, emails, and web pages to clean Markdown, or search and summarize threads from the McNeel Discourse forum, the Ladybug Tools forum, or any Discourse community.
  • Inspect, tidy, diff, and patch definitions. Let AI diagnose runtime errors, group and align messy graphs, or apply .ghpatch diffs to update existing definitions in place.
  • Multimodal vision and audio. Analyze viewport or canvas screenshots, generate reference images, transcribe speech to text, or synthesize audio directly inside Grasshopper.

Component gallery

Generate and place scripts Prompt → GhJSON, validated and placed
AIScriptGen generating a GhJSON script definition placed by Place GhJSON AI to GhJSON feeding GhValidate, GhPut and GhGet
Forum threads summarized as context Files and web pages to Markdown
McNeel forum search feeding a Discourse summarizer File2Md converting a local document to Markdown
Canvas and image understanding Merge prompt, image and file into one call
Canvas2Img feeding AIImg2Text describing a Grasshopper definition Text2AI, Img2AI and File2AI merging into AI to Text
Natural-language list filtering Read and validate the active document
AIListFilter keeping structural layers and sorting them GhGet reading the document into GhJSON checked by GhValidate

AI providers

SmartHopper works with the providers you already use. Pick a global default in SmartHopper → Settings, or right-click any AI component to pin it to a specific provider. See the provider setup guides and the feature matrix for model capabilities.

Cloud providers (API key)

Local providers (free & private on your machine)

  • Ollama Ollama — local server, no API key required
  • LocalAI LocalAI — self-hosted, OpenAI-compatible

Installation & quick start

Requirements

  • Rhino 8.0 or newer on Windows or macOS
  • An API key for at least one cloud provider, or a local Ollama / LocalAI server

Install

  • Rhino Package Manager (recommended): Run PackageManager in Rhino, search for SmartHopper, and click Install (check Include pre-releases if you want the latest preview build).
  • Food4Rhino: Install from the SmartHopper page on Food4Rhino.
  • Manual (development builds): Download the latest archive from GitHub Releases, extract it into your Grasshopper Components Folder (File → Special Folders → Components Folder), and unblock the files if prompted by your OS.

Get running in two minutes

  1. Restart Rhino and open Grasshopper.
  2. Open SmartHopper → Settings in the Grasshopper menu bar, click your provider's tile on the General tab to paste an API key (or point to your local server), and select your Default AI provider.
  3. Click the SmartHopper button on the canvas to chat with the assistant, or drop Text to AI → AI to Text onto the canvas and set Run? to True.

Documentation

Full documentation lives at docs.smarthopper.xyz — including the User Guide, Component Library, AI Tools Library and Developer Guide (see also the in-repo /docs reference). Video walkthroughs are also available — they were recorded on a previous version; updated videos are coming soon.

Contributing

Every great innovation starts with a single contribution. Whether you're a designer, developer, or AI enthusiast, your unique perspective can help shape the future of computational design tools.

Please see our Contributing Guidelines for details on how to contribute to this project.

Changelog

See Releases for a list of changes and updates.

License

This project is licensed under the GNU Lesser General Public License v3 (LGPL) - see the LICENSE file for details.

Trademark and Logo Usage Policy

The SmartHopper name and logo are the property of the SmartHopper / architects-toolkit maintainers. The LGPL v3 license under which the source code is distributed does not grant rights in the SmartHopper name or logo.

We allow use of the SmartHopper name and logo in the following contexts:

  • In blog posts, articles, tutorials, talks, or reviews that discuss or promote SmartHopper, provided the usage is accurate, fair, and does not imply endorsement by the SmartHopper maintainers.
  • In educational materials, courses, or presentations that accurately represent the project.
  • When referring to the unmodified, official SmartHopper plug-in as installed from the Rhino Package Manager.

Please refrain from using the SmartHopper name and logo:

  • In promotional materials for paid services or commercial products that bundle, redistribute, or extend SmartHopper, without prior written permission.
  • In a manner that may cause confusion about the origin of a product or imply endorsement.
  • On forks, derivative works, or paid offerings derived from the SmartHopper source code — please choose a distinct name and logo for your fork, as is common open-source trademark practice.

If you have any questions or wish to seek permission for other uses, please open an issue on this repository or contact the maintainers via smarthopper.xyz.

Thank you for your understanding and cooperation.


Started in Barcelona — spread worldwide • smarthopper.xyz

About

SmartHopper is an open-source project that implements third-party AI APIs to provide advanced features for Grasshopper3D.

Topics

Resources

Contributing

Stars

36 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages