Use your Claude subscription
Best if you already pay for Claude Pro or Max. Instead of a pay-as-you-go API key, you mint a token from your subscription and paste it into the same panel field - usage counts against your plan, with no separate API billing to track.
Get a Claude plan
Subscribe to Claude Pro or Max at claude.ai. The free plan won't work for this.
Install Claude Code
The token is minted by Claude Code. Install it with npm install -g @anthropic-ai/claude-code (needs Node.js).
Generate a subscription token
Run claude setup-token. A browser opens, approve access with your Claude account, and the terminal prints a one-year OAuth token.
Connect it in Grasshopper
Copy the token into a Grasshopper panel and connect it to Key / Token of the chat component.
The token lasts about a year and draws on your Claude plan's usage limits. Treat it like a password - keep it out of shared files and version control.