Running the Editor Locally
Note
This page is for running Griptape Nodes from the command line with gtn. If you use Griptape Nodes Desktop, skip it: the desktop app already runs the editor locally.
The engine can serve the editor itself, so you can build workflows without opening the hosted editor at nodes.griptape.ai. The editor loads from your own machine and talks to the engine over the direct WebSocket, so editor traffic never leaves the machine.

Set it up
-
Install Griptape Nodes with the
editorextra, which adds the editor files:uv tool install 'griptape-nodes[editor]'If Griptape Nodes is already installed, add
--forceto reinstall it with the extra. Each version of Griptape Nodes installs the one editor version that matches it. -
Turn on the
websocket_directtransport, which the local editor uses to reach the engine. Add this to yourgriptape_nodes_config.json(see Engine Configuration for where it lives):{ "transports": { "websocket_direct": { "enabled": true } } }Like the other local transports,
websocket_directonly starts when the engine has a license or a Griptape Cloud API key. -
Start the engine with
gtn. When it's ready, it prints the editor's address:Engine is ready to receive events Open: http://127.0.0.1:8126/ to access the Workflow Editor -
Open that address in your browser.
Change the address
The editor is served at http://127.0.0.1:8126/ by default. To use another port, set it in your config file:
{
"editor_server": {
"port": 9000
}
}
| Setting | Default | Environment variable | Description |
|---|---|---|---|
editor_server.host |
127.0.0.1 |
GRIPTAPE_NODES_EDITOR_HOST |
Address the editor listens on. |
editor_server.port |
8126 |
GRIPTAPE_NODES_EDITOR_PORT |
Port the editor listens on. |
The environment variables take precedence over the config file. Restart the engine after changing either.
The engine uses exactly the port you set. If another program already holds it, the engine logs an error, skips the local editor, and keeps running. A second engine on the same machine is the usual cause.
Keep it on this machine
The editor server has no sign-in. Leave editor_server.host on 127.0.0.1 so only programs on this machine can reach it. To use an editor from another machine, see Reach an engine on another machine.
When the editor doesn't start
If the engine's ready message says Return to: https://nodes.griptape.ai instead of a local address, the local editor didn't start. Check the engine's log:
- "Not starting the local editor server: it needs the 'websocket_direct' transport": turn on
websocket_directas shown in Set it up. - "Editor server could not bind": the port is taken. Stop the other program or pick another port.
- Nothing about the editor: the
editorextra isn't installed. Reinstall withuv tool install --force 'griptape-nodes[editor]'.