Extensions/ComfyUI Griptape Nodes
ComfyUI Extension

ComfyUI Griptape Nodes

This repo creates a series of nodes that enable you to utilize the a/Griptape Python Framework with ComfyUI, integrating AI into your workflow. This repo creates a series of nodes that enable you to utilize the Griptape Python Framework with ComfyUI, integrating AI into your workflow.

By griptape-ai·Created 2 years ago·Updated about a year ago· 238
griptape-ai/ComfyUI-Griptape
Nodes152
On cloudLocal install
CategoryGriptape/Agent Configs [DEPRECATED], Griptape/Agent Configs
Stars238
Updatedabout a year ago

Nodes (152)

Griptape Agent Config: Amazon Bedrock [DEPRECATED]

The old Bedrock config node — still works, but superseded

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: Amazon Bedrock Drivers

Bedrock on one node — prompt, embeddings, images, and the max_tokens trap

Griptape/Agent Configs
Griptape Agent Config: Anthropic [DEPRECATED]

The old Anthropic config — you should be using the Drivers version

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: Anthropic Drivers

One node, full Anthropic stack — Claude brains with vision built in

Griptape/Agent Configs
Griptape Agent Config: Azure OpenAI [DEPRECATED]

Azure's old config node — deployment names matter more than model names

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: Azure OpenAI Drivers

Azure's full agent stack — prompt, image, and embeddings with three deployment names

Griptape/Agent Configs
Griptape Agent Config: Cohere Drivers

Cohere's all-in-one config — and its copy-paste description bug

Griptape/Agent Configs
Griptape Agent Config: Custom Structure

The config node that lets you mix drivers from any provider

Griptape/Agent Configs
Griptape Agent Config: Environment Variables

Set API keys inside the graph — no .env file, no terminal

Griptape/Agent Configs
Griptape Agent Config: Expand

Unwrap its six drivers

Griptape/Agent Configs
Griptape Agent Config: Google [DEPRECATED]

The old Google config node — migrate before it bites you

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: Google Drivers

Griptape's Google config for prompts and embeddings

Griptape/Agent Configs
Griptape Agent Config: Griptape Cloud

Run gpt-4o on a Griptape Cloud key

Griptape/Agent Configs
Griptape Agent Config: Grok Drivers

Grok in your Griptape agent — xAI's models, one config node

Griptape/Agent Configs
Griptape Agent Config: Groq Drivers

Chat plus Whisper transcription

Griptape/Agent Configs
Griptape Agent Config: HuggingFace [DEPRECATED]

Zephyr-7b and little else

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: HuggingFace Drivers

Hugging Face serverless inference as a Griptape config

Griptape/Agent Configs
Griptape Agent Config: LM Studio [DEPRECATED]

The old LM Studio config — local chat, but no embedding

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: LM Studio Drivers

A fully local Griptape config

Griptape/Agent Configs
Griptape Agent Config: Ollama [DEPRECATED]

The original Ollama config — still works, but superseded

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: Ollama Drivers

Run Griptape agents entirely on Ollama, no API key required

Griptape/Agent Configs
Griptape Agent Config: OpenAI Compatible [DEPRECATED]

Functional, but you have better options

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: OpenAI Compatible Drivers

One config that points Griptape at any OpenAI-compatible API

Griptape/Agent Configs
Griptape Agent Config: OpenAI [DEPRECATED]

The original OpenAI config node — workhorse of legacy workflows

Griptape/Agent Configs [DEPRECATED]
Griptape Agent Config: OpenAI Drivers

The one-stop Griptape config that wires every OpenAI model at once

Griptape/Agent Configs
Griptape Audio Transcription Driver: Groq

Whisper transcription at Groq speed, as a Griptape driver

Griptape/Agent Drivers/Audio Transcription
Griptape Audio Transcription Driver: OpenAI

OpenAI's Whisper transcription as a Griptape driver

Griptape/Agent Drivers/Audio Transcription
Griptape Code: Run Griptape Cloud Structure

Run a Griptape Cloud structure from inside a ComfyUI workflow

Griptape/Code
Griptape Code: Run Python [DEPRECATED]

Run Python inside a task — deprecated, but still here with a guardrail

Griptape/Code
Griptape Combine: Merge Dictionary

The Node That Feeds {{ placeholders }} to Your Griptape Agent

Griptape/Text
Griptape Combine: Merge Inputs

The 'Just Glue It Together' Text Node

Griptape/Text
Griptape Combine: Merge Texts

How the Pack's Signature 'Describe These Images' Workflow Glues Together

Griptape/Text
Griptape Combine: RAG Module List

Bundling Modules for an Engine

Griptape/RAG
Griptape Combine: Rules List

Combine Rulesets So Your Agent Isn't One-Note

Griptape/Agent Rules
Griptape Combine: String List

Turn Many Strings Into One List

Griptape/Text
Griptape Combine: Tool List

Merging Tools Into One Set

Griptape/Agent Tools
Griptape Convert: Agent to Tool

Making One Agent Another Agent's Tool

Griptape/Agent Tools
Griptape Convert: Text to CLIP Encode

The node that turns LLM output into something your sampler can use

Griptape/Text
Griptape Convert: Text to Combo

Why It's Force-Input Only

Griptape/Text
Griptape Create: Agent

Building Your First Griptape Agent

Griptape/Agent
Griptape Create: Agent from Config

The Config-First Route

Griptape/Agent
Griptape Create: CLIP Text Encode

Type a prompt, get conditioning — with Griptape's {{variable}} templating

Griptape/Text
Griptape Create: Image from Text

Your Agent Can Draw Now

Griptape/Image
Griptape Create: Image Inpainting Variation

Image + Mask + Prompt

Griptape/Image
Griptape Create: Image Variation

Variations Through an Image Task

Griptape/Image
Griptape Create: Key Value Pair

The Building Block of {{ template }} Replacement

Griptape/Text
Griptape Create: Rules

Teach Your Agent How to Behave in One Text Box

Griptape/Agent Rules
Griptape Create: Text

The Node That Just Holds a String

Griptape/Text
Griptape Display: Data as Text

See What Your Nodes Are Actually Outputting

Griptape/Display
Griptape Display: Dictionary

Look Inside the {{ key }} Dictionary Before It Hits Your Agent

Griptape/Display
Griptape Display: Image

The Preview Node That Ends the 'Where's My Image?' Question

Griptape/Display
Griptape Display: Text

Where your agent's answers actually land

Griptape/Display
Griptape Display: Text as Markdown

Stop squinting at raw agent output — render it as Markdown

Griptape/Display
Griptape Driver: Amazon Bedrock Stable Diffusion

Stable Diffusion via Bedrock, without a GPU in sight

Griptape/Agent Drivers/Image Generation
Griptape Driver: Amazon Bedrock Titan

Amazon's own image generator, wired into your Griptape graph

Griptape/Agent Drivers/Image Generation
Griptape Driver: Azure OpenAI Image Generation

DALL-E through your Azure contract, not your personal OpenAI key

Griptape/Agent Drivers/Image Generation
Griptape Driver: Black Forest Labs Image Generation

Flux, over the API, with every dial BFL's service offers

Griptape/Agent Drivers/Image Generation
Griptape Driver: Leonardo.AI

Leonardo.AI's curated model shelf, inside a Griptape driver

Griptape/Agent Drivers/Image Generation
Griptape Driver: OpenAI Compatible Image Generation

One image driver to rule the OpenAI-compatible clones

Griptape/Agent Drivers/Image Generation
Griptape Driver: OpenAI Image Generation

Give your agent hands that draw — via the OpenAI Images API

Griptape/Agent Drivers/Image Generation
Griptape Embedding Driver: Amazon Bedrock Titan

Titan embeddings for a RAG pipeline that never leaves AWS

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Amazon SageMaker Jumpstart

Embeddings from your own SageMaker endpoint, deployed and billed by you

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Azure OpenAI

OpenAI embeddings under your Azure contract, same models, different plumbing

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Cohere

Vectorize text for your agent's memory — Cohere embeddings, no fuss

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Google

Google's text-embedding-004, one dropdown and one task type away

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: HuggingFace

Embeddings straight from the Hub's serverless inference

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: LM Studio

Local embeddings for free, served by LM Studio on your own machine

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Ollama

Local embeddings with Ollama, the driver most people try first

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: OpenAI

OpenAI models, one key, done

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: OpenAI Compatible

One embedding driver, pointed at any OpenAI-compatible endpoint

Griptape/Agent Drivers/Embedding
Griptape Embedding Driver: Voyage AI

Voyage's retrieval-tuned embeddings, if your RAG quality calls for them

Griptape/Agent Drivers/Embedding
Griptape End Workflow

A node that does nothing on purpose — and that's the point

Griptape/Workflow
Griptape Expand: Agent Nodes

Tear a Griptape agent apart to see what's actually inside it

Griptape/Agent
Griptape Load: Audio

The file picker you drag files into

Griptape/Audio
Griptape Load: Image From URL

Grab an image straight from the web — no downloading, no drag-and-drop

Griptape/Image
Griptape Load: Text

Hand the graph a .txt, .md, .csv, even a .pdf — from your input folder

Griptape/Text
Griptape Prompt Driver: Amazon Bedrock

Put Claude and Titan inside a Griptape agent via AWS Bedrock

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Amazon SageMaker Jumpstart

Run a model you deployed yourself on SageMaker — if you already have one

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Anthropic

Give your agent the Claude brain — the one people actually reach for

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Azure OpenAI

Talk to Azure OpenAI's GPT-4o — for people who need their LLM inside Azure

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Cohere

Command-R for your agent — Cohere's long-context, tool-friendly brain

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Google

Gemini inside your graph — flash-fast, free-tier-friendly, and multimodal

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Griptape Cloud

GPT-4o routed through Griptape's own cloud — the house driver

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Grok

Give your Griptape agent a Grok brain (and where the model list is stale)

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Groq

Groq — the speed king, for when your agent should think at ludicrous speed

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: HuggingFace

Zephyr through Hugging Face's serverless API — no GPU, no setup, with caveats

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: LM Studio

Your local models, OpenAI-style — LM Studio as a Griptape brain

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: Ollama

Ollama + Llama 3 inside a Griptape agent

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: OpenAI

Your Griptape agent's brain is a dropdown — this node is it

Griptape/Agent Drivers/Prompt
Griptape Prompt Driver: OpenAI Compatible

The catch-all brain — any OpenAI-compatible endpoint, from GPT-4o to vLLM

Griptape/Agent Drivers/Prompt
Griptape RAG: Engine

The RAG conductor — assemble retrieval, reranking, and answering in one node

Griptape/RAG
Griptape RAG Query: Translate Module

Ask in English, retrieve in German — translate your RAG queries before search

Griptape/RAG
Griptape RAG Rerank: Text Chunks Module

Fix the #1 RAG failure — bad chunk ordering — with a rerank pass

Griptape/RAG
Griptape RAG Response: Footnote Prompt Module

RAG answers with receipts — footnotes on every claim

Griptape/RAG
Griptape RAG Response: Prompt Module

Turn retrieved chunks into a real LLM response

Griptape/RAG
Griptape RAG Response: Text Chunks Module

Skip the LLM — hand back the raw chunks for someone else to use

Griptape/RAG
Griptape RAG Retrieve: Text Loader Module

Feed your own documents to a ComfyUI agent

Griptape/RAG
Griptape RAG Retrieve: Vector Store Module

Search an index you already built — no new documents

Griptape/RAG
Griptape Replace: Rulesets on Agent

Swap your agent's personality mid-workflow

Griptape/Agent Rules
Griptape Replace: Tools on Agent

Give an agent new hands mid-graph

Griptape/Agent Tools
Griptape Rerank Driver: Cohere

A better ranking pass for your RAG results, at a price

Griptape/Agent Drivers/Rerank
Griptape Rerank Driver: Local

Free reranking, no API key, no drama

Griptape/Agent Drivers/Rerank
Griptape Retrieve: Cloud Ruleset

Share one agent personality across the whole team

Griptape/Agent Rules
Griptape Run: Agent

The node that makes ComfyUI talk back

Griptape/Agent
Griptape Run: Audio Transcription

Turn audio into text inside ComfyUI

Griptape/Audio
Griptape Run: Cloud Assistant

Run an assistant you built in Griptape Cloud

Griptape/Agent
Griptape Run: Image Description

Ask an LLM what's actually in your image

Griptape/Image
Griptape Run: Parallel Image Description

Get multiple angles on one image, at once

Griptape/Image
Griptape Run: Parallel Prompt Task

Batch a list of prompts through one agent, fast

Griptape/Agent
Griptape Run: Task

The flexible middle child of the Run nodes

Griptape/Agent
Griptape Run: Text Extraction

Turn messy text into structured data

Griptape/Text
Griptape Run: Text Summary

Shrink text to its point, for free-ish

Griptape/Text
Griptape Run: Text to Speech

Make ComfyUI talk, and hand the audio back

Griptape/Audio
Griptape Save: Text

Get your agent's output off the graph and onto disk

Griptape/Text
Griptape Set: Default Agent

Stop reconnecting the same agent everywhere

Griptape/Agent
Griptape Start Workflow

The label node for Griptape's workflow inputs

Griptape/Workflow
Griptape Text To Speech Driver: ElevenLabs

ElevenLabs voices inside ComfyUI

Griptape/Agent Drivers/Text to Speech
Griptape Text To Speech Driver: OpenAI

Cheap, good-enough voice for your Griptape agent

Griptape/Agent Drivers/Text to Speech
Griptape Tool: Audio Transcription

Transcribing audio mid-workflow

Griptape/Agent Tools
Griptape Tool: Calculator

LLMs can't do math. This tool is the fix.

Griptape/Agent Tools
Griptape Tool: DateTime

The tool that stops your agent living in the past

Griptape/Agent Tools
Griptape Tool: Extraction

Turning messy agent output into clean CSV or JSON

Griptape/Agent Tools
Griptape Tool: FileManager

Letting your agent read and write your disk (carefully)

Griptape/Agent Tools
Griptape Tool: Griptape Cloud KnowledgeBase

Your Griptape Cloud knowledge base

Griptape/Agent Tools
Griptape Tool: Prompt Summary

Stop your agent drowning in its own conversation

Griptape/Agent Tools
Griptape Tool: Query

Let your agent interrogate its own tools — the Query tool, briefly

Griptape/Agent Tools
Griptape Tool: RAG

Custom retrieval, wired into your agent

Griptape/Agent Tools
Griptape Tool: Text to Speech

The tool that lets your agent decide to talk

Griptape/Agent Tools
Griptape Tool: VectorStore

Query your vector store without the DIY RAG

Griptape/Agent Tools
Griptape Tool: WebScraper

Let your agent read web pages for real

Griptape/Agent Tools
Griptape Tool: WebSearch

Live web search for your agent — free, no API key required

Griptape/Agent Tools
Griptape Util: Create Agent Modelfile

Bake your agent's personality into an Ollama model

Griptape/Agent Utils
Griptape Util: Create Model from Modelfile

Turn that Modelfile into an actual Ollama model

Griptape/Agent Utils
Griptape Util: Remove Ollama Model

Clean house on Ollama without leaving ComfyUI

Griptape/Agent Utils
Griptape Util: Switch Node

The little router that keeps your workflow tidy

Griptape/Agent Utils
Griptape Vector Store: Add Text

Populate your vector store without leaving the graph

Griptape/Text
Griptape Vector Store Driver: Amazon OpenSearch

Point your RAG at a real OpenSearch cluster

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Azure MongoDB

Store your vectors in MongoDB Atlas on Azure

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Griptape Cloud

Your Griptape Cloud knowledge base, plugged straight into a workflow

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Local

The no-API-key vector store that gets you started in five minutes

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Marqo

Marqo search for your agents, without writing a line of client code

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: MongoDB Atlas

MongoDB Atlas

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: PGVector

The self-hosted vector store for people who already run Postgres

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Pinecone

The managed vector store that gets out of your way

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Qdrant

The vector store that runs anywhere, from Docker to the cloud

Griptape/Agent Drivers/Vector Store
Griptape Vector Store Driver: Redis

Redis as a vector store? Only with RediSearch, and here's the catch

Griptape/Agent Drivers/Vector Store
Griptape Vector Store: Query

The Query node is RAG's front door

Griptape/Text
Griptape WebSearch Driver: DuckDuckGo

Web search for your agent with zero API keys — DuckDuckGo just works

Griptape/Agent Drivers/Web Search
Griptape WebSearch Driver: Exa

Exa, explained

Griptape/Agent Drivers/Web Search
Griptape WebSearch Driver: Google

Give your agent real web search — but it needs two API keys

Griptape/Agent Drivers/Web Search
Griptape WebSearch Driver: Serper

Google results in your agent via Serper, with one extra dependency

Griptape/Agent Drivers/Web Search
Griptape WebSearch Driver: Tavily

A search API built for LLM context, not just links

Griptape/Agent Drivers/Web Search
Readme

ComfyUI Griptape Nodes

This repo creates a series of nodes that enable you to utilize the Griptape Python Framework with ComfyUI, integrating LLMs (Large Language Models) and AI into your workflow.

Instructions and tutorials

Watch the trailer and all the instructional videos on our YouTube Playlist.

Watch the Trailer on YouTube

The repo currently has a subset of Griptape nodes, with more to come soon. Current nodes can:

Ultimate Configuration

Use nodes to control every aspect of the Agents behavior, with the following drivers:

  • Prompt Driver
  • Image Generation Driver
  • Embedding Driver
  • Vector Store Driver
  • Text to Speech Driver
  • Audio Transcription Driver

Workflow to configure an agent

Example

In this example, we're using three Image Description nodes to describe the given images. Those descriptions are then Merged into a single string which is used as inspiration for creating a new image using the Create Image from Text node, driven by an OpenAI Driver.

The following image is a workflow you can drag into your ComfyUI Workspace, demonstrating all the options for configuring an Agent.

Three image descriptions being used to generate a new image

More examples

You can previous and download more examples here.

Using the nodes - Video Tutorials

  1. Installation: https://youtu.be/L4-HnKH4BSI?si=Q7IqP-KnWug7JJ5s
  2. Griptape Agents: https://youtu.be/wpQCciNel_A?si=WF_EogiZRGy0cQIm
  3. Controlling which LLM your Agents use: https://youtu.be/JlPuyH5Ot5I?si=KMPjwN3wn4L4rUyg
  4. Griptape Tools - Featuring Task Memory and Off-Prompt: https://youtu.be/TvEbv0vTZ5Q
  5. Griptape Rulesets, and Image Creation: https://youtu.be/DK16ouQ_vSs
  6. Image Generation with multiple drivers: https://youtu.be/Y4vxJmAZcho
  7. Image Description, Parallel Image Description: https://youtu.be/OgYKIluSWWs?si=JUNxhvGohYM0YQaK
  8. Audio Transcription: https://youtu.be/P4GVmm122B0?si=24b9c4v1LWk_n80T
  9. Using Ollama as a Configuration Driver: https://youtu.be/jIq_TL5xmX0?si=ilfomN6Ka1G4hIEp
  10. Combining Rulesets: https://youtu.be/3LDdiLwexp8?si=Oeb6ApEUTqIz6J6O
  11. Integrating Text: https://youtu.be/_TVr2zZORnA?si=c6tN4pCEE3Qp0sBI
  12. New Nodes & Quality of life improvements: https://youtu.be/M2YBxCfyPVo?si=pj3AFAhl2Tjpd_hw
  13. Merge Input Data: https://youtu.be/wQ9lKaGWmZo?si=FgboU5iUg82pXRkC
  14. Setting default agent configurations: https://youtu.be/IkioCcldEms?si=4uUu-y9UvIJWVBdE
  15. Merge Text with dynamic inputs and custom separator: https://youtu.be/1fHAzKVPG4M?si=6JHe1NA2_a_nl9rG
  16. Multiple Image Descriptions and Local Multi-Modal Models: https://youtu.be/KHz7CMyOk68?si=oQXud6NOtNHrXLez
  17. WebSearch Node Now Allows for Driver Functionality in Griptape Nodes: https://youtu.be/4_dkfdVUnRI?si=DA4JvegV0mdHXPDP
  18. Persistent Display Text: https://youtu.be/9229bN0EKlc?si=Or2eu3Nuh7lxgfEU
  19. Convert an Agent to a Tool.. and give it to another Agent: https://youtu.be/CcRot5tVAU8?si=lA0v5kDH51nYWwgG
  20. Text-To-Speech Nodes: https://youtu.be/PP1uPkRmvoo?si=QSaWNCRsRaIERrZ4
  21. Update to Managing Your API Keys in ComfyUI Griptape Nodes: https://www.youtube.com/watch?v=v80A7rtIjko

Recent Changelog

Please view recent changes here.

Installation

1. ComfyUI

Install ComfyUI using the instructions for your particular operating system.

2. Use Ollama

If you'd like to run with a local LLM, you can use Ollama and install a model like llama3.

  1. Download and install Ollama from their website: https://ollama.com

  2. Download a model by running ollama run <model>. For example:

    ollama run llama3

  3. You now have ollama available to you. To use it, follow the instructions in this YouTube video: https://youtu.be/jIq_TL5xmX0?si=0i-myC6tAqG8qbxR

3. Install Griptape-ComfyUI

There are two methods for installing the Griptape-ComfyUI repository. You can either download or git clone this repository inside the ComfyUI/custom_nodes, or use the ComfyUI Manager.

  • Option A - ComfyUI Manager (Recommended)

    1. Install ComfyUI Manager by following the installation instructions.
    2. Click Manager in ComfyUI to bring up the ComfyUI Manager
    3. Search for "Griptape"
    4. Find the ComfyUI-Griptape repo.
    5. Click INSTALL
    6. Follow the rest of the instructions.
  • Option B - Git Clone

    1. Open a terminal and input the following commands:

      cd /path/to/comfyUI
      cd custom_nodes
      git clone https://github.com/griptape-ai/ComfyUI-Griptape
      

4. Make sure libraries are loaded

Libraries should be installed automatically, but if you're having trouble, hopefully this can help.

There are certain libraries required for Griptape nodes that are called out in the requirements.txt file.

griptape[all]
python-dotenv

These should get installed automatically if you used the ComfyUI Manager installation method. However, if you're running into issues, please install them yourself either using pip or poetry, depending on your installation method.

  • Option A - pip

    pip install "griptape[all]" python-dotenv 
    
  • Option B - poetry

    poetry add "griptape[all]" python-dotenv 
    

5. Restart ComfyUI

Now if you restart comfyUI, you should see the Griptape menu when you click with the Right Mouse button.

If you don't see the menu, please come to our Discord and let us know what kind of errors you're getting - we would like to resolve them as soon as possible!

6. Set API Keys

For advanced features, it's recommended to use a more powerful model. These are available from the providers listed bellow, and will require API keys.

  1. To set an API key, click on the Settings button in the ComfyUI Sidebar.

  2. Select the Griptape option.

  3. Scroll down to the API key you'd like to set and enter it.

    Note: If you already have a particular API key set in your environment, it will automatically show up here.

You can get the appropriate API keys from these respective sites:

  • OPENAI_API_KEY: https://platform.openai.com/api-keys
  • GOOGLE_API_KEY: https://makersuite.google.com/app/apikey
  • AWS_ACCESS_KEY_ID & SECURITY_ACCESS_KEY:
    • Open the AWS Console
    • Click on your username near the top right and select Security Credentials
    • Click on Users in the sidebar
    • Click on your username
    • Click on the Security Credentials tab
    • Click Create Access Key
    • Click Show User Security Credentials
  • LEONARDO_API_KEY: https://docs.leonardo.ai/docs/create-your-api-key
  • ANTHROPIC_API_KEY: https://console.anthropic.com/settings/keys
  • VOYAGE_API_KEY: https://dash.voyageai.com/
  • HUGGINGFACE_HUB_ACCESS_TOKEN: https://huggingface.co/settings/tokens
  • AZURE_OPENAI_ENDPOINT & AZURE_OPENAI_API_KEY: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints
  • COHERE_API_KEY: https://dashboard.cohere.com/api-keys
  • ELEVEN_LABS_API_KEY: https://elevenlabs.io/app/
    • Click on your username in the lower left
    • Choose Profile + API Key
    • Generate and copy the API key
  • GT_CLOUD_API_KEY: https://cloud.griptape.ai/configuration/api-keys

Troubleshooting

Torch issues

Griptape does install the torch requirement. Sometimes this may cause problems with ComfyUI where it grabs the wrong version of torch, especially if you're on Nvidia. As per the ComfyUI docs, you may need to unintall and re-install torch.

pip uninstall torch
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121

Griptape Not Updating

Sometimes you'll find that the Griptape library didn't get updated properly. This seems to be especially happening when using the ComfyUI Manager. You might see an error like:

ImportError: cannot import name 'OllamaPromptDriver' from 'griptape.drivers' (C:\Users\evkou\Documents\Sci_Arc\Sci_Arc_Studio\ComfyUi\ComfyUI_windows_portable\python_embeded\Lib\site-packages\griptape\drivers\__init__.py)

To resolve this, you must make sure Griptape is running with the appropriate version. Things to try:

  • Update again via the ComfyUI Manager
  • Uninstall & Re-install the Griptape nodes via the ComfyUI Manager
  • In the terminal, go to your ComfyUI directory and type: python -m pip install griptape -U
  • Reach out on Discord and ask for help.

StabilityMatrix

If you are using StabilityMatrix to run ComfyUI, you may find that after you install Griptape you get an error like the following: Stability Matrix Error

To resolve this, you'll need to update your torch installation. Follow these steps:

  1. Click on Packages to go back to your list of installed Packages.
  2. In the ComfyUI card, click the vertical ... menu.
  3. Choose Python Packages to bring up your list of Python Packages.
  4. In the list of Python Packages, search for torch to filter the list.
  5. Select torch and click the - button to uninstall torch.
  6. When prompted, click Uninstall
  7. Click the + button to install a new package.
  8. Enter the list of packages: torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
  9. Click OK.
  10. Wait for the install to complete.
  11. Click Close.
  12. Launch ComfyUI again.

Thank you

Massive thank you for help and inspiration from the following people and repos!

  • Jovieux from https://github.com/Amorano/Jovimetrix
  • rgthree https://github.com/rgthree/rgthree-comfy
  • IF_AI_tools https://github.com/if-ai/ComfyUI-IF_AI_tools/tree/main