AI assistant for writing/modifying scripts in Grasshopper (Kea plug-in)

I am just getting No text response. Am I doing something wrong? I tried different AI…

I did that! You need to buy some credits. That fixed it for me!

2 Likes

I did something similar using cursor accessing internal script with script parasite

Sure, Kea’s not the only way to generate C# and python scripts for Grasshopper - you could copy from an AI web chat, or use combinations like that of other tools which need more work to set up, involve more components on the canvas, still need you to configure inputs and outputs manually and don’t also generate documentation.

I maintain that Kea is the most convenient tool for this, as it operates within the Grasshopper canvas and has the power to alter script objects for you, not only the raw source code inside but the inputs, outputs and tool tips. And of course, a handy tie-in for DefinitionLibrary! :grin:

For those reading this who are also software developers:

This is an example flow where you use Kea to iterate the code, and then, when you’re happy with it, publish it using DefinitionLibrary which alters the code just enough to enable you to integrate it into other codebases:

This provides you with a convenient way to use Grasshopper as a prototype/testing environment for any code that uses RhinoCommon to generate geometric output and progress it towards being part of your own custom plug-in, or Rhino Compute fork, or a shared code library for other similar purposes.

5 Likes

I’m wondering if it’s possible to use Microsoft Copilot to relay natural language commands to Kea, which would then convert them into Rhino geometry. Copilot already works well with Microsoft 365 products like Word, Excel, and PowerPoint, making things simpler for non-engineers. Since there are so many AI tools now, I’ve found Copilot especially responsive and accurate, so I prefer it over others except those integrated with essential software like Adobe. Do you think using Copilot for this purpose is feasible in the future, or is it more complicated than it sounds?
Apologies if this question seems out of place, I’m an industrial designer, not a computer engineer.

Very exciting work, @nicolaasburgers.
Enterprise options would definitely much appreciated!

1 Like

Both Microsoft 365 Copilot and Kea are like agents, with the power to change documents for you - Copilot is geared towards Office documents and Kea with Grasshopper files.

They’re basically peer services in that they both sit between the LLM model and the user:

  • Microsoft Copilot uses enhanced versions of OpenAI models hosted on Azure OpenAI
  • Kea uses OpenAI and other models across a few popular platforms

So Kea doesn’t have its own models, it’s a connector to others and what it seems like you’re asking is if Microsoft 365 Copilot could be extended to be able to action changes to C# and python scripts on the open Grasshopper canvas.

For that to occur, as far as I understand, you’d need a local MCP service for Grasshopper, similar to this one (geared towards Claude): GitHub - alfredatnycu/grasshopper-mcp - and that is a separate configuration of tools than I present with Kea.

The principle with Kea was to be a convenience tool by being an agent that runs inside Grasshopper so you don’t need any extra tools - just Grasshopper - so that it can save you several clicks across different windows through its ability to connect to external AI services and automatically apply the changes for you.

Is this a helpful answer?

4 Likes

Got it. Thanks for the clarification, it was very helpful.

1 Like

Looks sick! Thank you for this. I would love to try it, but I only have a Grok AI subscription. Would you please consider adding Grok’s API support?

Hi @Eric_Laspe when you say you have a Grok AI subscription, if you mean the regular web chat (https://grok.com/) then it wouldn’t be usable in Kea anyway, even if I do add Grok support.

AI platforms don’t carry those kinds of subscriptions over to the API side, which is what client apps like Kea use. As with OpenAI, Anthropic, etc there’s a separate pre-paid pricing stream that you need to add funds to.

I’ll add Grok to the list though for the future. And since you need to add new funds anyway, you could choose the one of the already-supported ones (and pay just a few dollars) if you wanted to give Kea a try.

1 Like

Hi Nico, I have installed Kea through Package Manager, but I can not see it after restarting the Rhino, How can I solve this problem? Thanks a lot.

Hi @Yaohui_Zhang - do you have Rhino 7.25 or higher, and are you checking the View menu inside Grasshopper, and not the View menu inside Rhino itself?

And @crz_06 Google AI Studio (i.e. Gemini) is now supported on Kea, so get the latest version and give it a try!

2 Likes

Hi Nico,

Thanks a lot for your reply, I have installed the Kea, but it does not give any feed back, like the screen shot.
Do you know how to solve this problem,

Best regards,

Yaohui

Nicolaas Burgers via McNeel Forum <notifications@mcneel.discoursemail.com> 于2025年8月30日周六 10:37写道:

@Yaohui_Zhang Usually that response is seen when you don’t have enough credit for the platform to generate a response for you (I should really make that more obvious in the UI) but I think Google AI Studio does offer free models, and “aqa” might not be one of them. Assuming you’re on the free tier and not paid any money to Google, can you try requests using gemini-2.5-pro ?

@Eric_Laspe the xAI models (i.e. Grok) is now supported with the latest release (0.0.8) - so feel free to give that a shot. As far as I can see, you’ll need to add some credit (which is what I did in my testing) in order to use it via Kea.

2 Likes

How to open Kea? I do installed the component but I can’t find-it anywhere.

Hi @Cumberland after you installed Kea using the Package Manager and restarting Rhino, do you see an “AI Script Assistant (Kea)” option in the View menu of Grasshopper? (not Rhino)

1 Like

Ok, thank you. I didn’t searched there. I was searching for a component.

Thanks, Nicolaas! I appreciate your answer about the distinction between subscribing to the AI web app and the API pay-per-token model.

1 Like

Hi, I downloaded KEA, but I can’t find it in GH.

Hi Henry after installing it and restarting Rhino, have you looked inside the View menu of Grasshopper to see a new “AI script assistant (Kea)” option at the bottom of the drop-down menu?