---
title: "Set Variable"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/variable/setvariable
markdown: https://docs.nodetool.ai/nodes/nodetool/variable/setvariable.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/variable/setvariable.md
---

# Set Variable

**Type:** `nodetool.variable.SetVariable`

**Namespace:** `nodetool.variable`

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| name | `str` | Name of the variable channel to publish the value on. | `` |
| value | `any` | Value to publish. Passed through unchanged to the output. | null |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `any` |  |

## Related Nodes

Browse other nodes in the [nodetool.variable](./) namespace.
