# Slash commands

> Every built-in and cell slash command, with syntax, aliases and headless support.

Source: https://nodecode.ai/docs/slash-commands
Updated: 2026-10-06

Type `/` in the composer for the list. `/help` shows it with the key bindings.

## Headless

A headless command answers without the shell, the terminal UI.

| Surface | How |
| --- | --- |
| Web page | Type the command in the page's composer. |
| Chat room | Send the command as a message. |
| Eval | `(slash "/think high")` |

A shell-only command answers `/name needs an interactive shell` there.

## Built-in

| Command | Does | Headless |
| --- | --- | --- |
| `/help` | Shows commands and key bindings. | Yes |
| `/clear`, `/new` | Starts a fresh session. Headless: moves this session back to its start. | Yes |
| `/sessions`, `/agents` | Opens the session picker. | No |
| `/rename [name \| default]` | Names the session, 64 characters at most. Bare: shows the name. | Yes |
| `/export [path]` | Saves the session as Markdown. | No |
| `/execs` | Shows an exec's output. Ctrl+X or Delete interrupts it. | No |
| `/tree`, `/checkpoints` | Opens the session tree. Continue from a turn, or rewind. | No |
| `/undo` | Rewinds the last turn. | Yes |
| `/redo` | Returns to the branch the last rewind left. | Yes |
| `/fork` | Forks a new session at the current head. | No |
| `/history` | Picks a past prompt into the composer. | No |
| `/themes [name]` | Lists themes, or switches to one. | No |
| `/models [provider] [model] \| list \| refresh` | Shows or sets the provider and model. Bare: opens the picker. | Yes |
| `/model-aux [provider] [model] \| list \| refresh` | Shows or sets the auxiliary model. | Yes |
| `/evict [percent]`, `/compact` | Drops the oldest turns from context. 1 to 100, default 50. | Yes |
| `/context` | Reports the context window and token use. | Yes |
| `/usage [today \| 7d \| 30d \| all]` | Reports spend across sessions. Default: 7 days. | Yes |
| `/details collapsed\|expanded` | Sets transcript detail, the level Ctrl+O cycles. Bare: reports it. | No |
| `/cells` | Lists the cell folders this process loaded. | Yes |
| `/doctor` | Lists what is missing, with the remedy. | Yes |
| `/backup` | Archives the home under `~/.nodecode/backups/`. The archive holds your keys. | Yes |
| `/profile [switch \| list \| use \| create \| delete \| export \| import \| install \| update \| help]`, `/profiles` | Manages profiles. Bare: opens the roster. | Yes |
| `/gateway [on \| off \| restart \| logs \| help]` | Same as `nodecode gateway`. | No |
| `/web` | Same as `nodecode web`. | No |
| `/connect` | Opens provider key setup. Takes no arguments. | No |
| `/setup` | Opens the setup walk. Takes no arguments. | No |
| `/think [rung]`, `/effort` | Sets reasoning effort. `default` uses the model's own. | Yes |
| `/gc [reset]` | Shows garbage collection and stall stats. `reset` restarts the window. | Yes |
| `/exit`, `/quit` | Exits the shell. | No |

| Command | Shell and headless differ |
| --- | --- |
| `/clear` | Shell: opens a new session. Headless: rewinds this session to its start. `/redo` returns. |
| `/undo` | Shell: restores files too. Headless: moves the conversation only. |
| `/models`, `/model-aux` | Shell: bare opens a picker. Headless: bare prints the current target. |

Details: [Sessions and undo](https://nodecode.ai/docs/sessions), [Models and providers](https://nodecode.ai/docs/models), [Context](https://nodecode.ai/docs/context), [Profiles](https://nodecode.ai/docs/profiles), [Gateway](https://nodecode.ai/docs/gateway).

## Cell

A cell is a folder of code under `~/.nodecode/cells/`. Its command exists while the cell runs. Every cell command is headless.

A built-in wins over a cell command of the same name.

A cell adds its own commands with the `:command` clause. See [Cell API](https://nodecode.ai/docs/cell-api#define-cell). The cells you can add are listed under [Cells](https://nodecode.ai/cells/browse).
