---
title: "Code"
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/code/code
markdown: https://docs.nodetool.ai/nodes/nodetool/code/code.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/code/code.md
---

# Code

**Type:** `nodetool.code.Code`

**Namespace:** `nodetool.code`

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| code | `str` |  | `return {};` |
| timeout | `int` | Max seconds before execution is aborted (0 = no limit). | `30` |

## Outputs

_(none)_

## Related Nodes

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