Skip to Content
Spiti

Use the terminal in Spiti

Open a named shell, reconnect to a running session, and control which plugins can use the terminal.

Open a terminal

In Spiti.app, press Command+T and choose New terminal to open a shell with your defaults. Choose New terminal with options if you want to name the tab or start in a different directory. Press Command+K and choose Terminal sessions to browse sessions.

When you use a project's +, new sessions start in that project's folder. New terminal with options lets you choose a different directory. Attaching to an existing session keeps its original directory.

New sessions use your Mac account's shell by default and include spiti on their path. Run spiti --version to check the CLI. If you have Claude Code or Codex installed, type claude or codex at the prompt.

Set your terminal defaults

In Settings → Terminal, choose a shell and the directory where new terminals start. Use Browse… to pick a folder or leave the directory blank to start in your home folder. The terminal can match Spiti's theme or use its own light or dark theme. You can also set the font size and turn on screen reader mode.

WebGL uses the GPU to draw terminal output, with a DOM fallback. Choose DOM to use the browser's text renderer directly. Display settings apply when you open or reattach a terminal tab.

Leave a session running

Closing a terminal tab detaches it. To bring it back, press Command+T and choose the matching Attach to entry. Closing and reopening the Spiti window restores your open tabs with their recent scrollback. Choose End session from the tab to stop the shell. Restarting the daemon ends running shells and clears scrollback. Their names and starting directories stay in the session list.

Grant terminal access to a plugin

Terminal access lets a plugin run commands with your Mac account's full access. If a plugin requests it, open Plugins, choose Manage, and read its reason under Terminal access. Choose Grant terminal access and confirm. Choose Revoke terminal access to stop the plugin from opening, writing to or reading sessions.

Plugin authors declare permissions.terminal.reason in spiti.json. After the owner grants access, plugin server code can call ctx.terminal.open({ name, workingDirectory }), ctx.terminal.write(id, data), and ctx.terminal.read(id, cursor). The optional cursor defaults to zero. Pass the cursor returned by each read to get subsequent output. A plugin can access the sessions it opened under its current install. Calls without a grant throw PermissionDeniedError.

On this page