Use the app

Run project commands in Terminal

Run project commands beside your files and inspect your app without leaving the workspace.

On this page

Terminal gives you an interactive shell beside project files and chat. Commands entered here run in the real operating system, not in a preview.

In a Bun project with a dev script, run bun run dev in Terminal; open the printed localhost URL in Browser to check the checkout page after a change. Use your project's documented command when it differs.

Run a command in your project

Open Terminal from the side panel, or press Mod+K and choose Terminal from the command palette. Type your command and press Enter. This is your own shell; its commands do not appear in an agent's separate command session.

A new terminal uses the active branch's worktree when one is configured; otherwise it uses the selected project folder. To open another independent shell, use + in the auxiliary tab bar and choose Terminal. Each terminal keeps its own working directory. Terminals follow the active workspace rather than the pin setting used by other companion views; switching workspaces keeps existing shells available when you return. The Terminal view has no separate header.

If the requested folder no longer exists, Terminal reports an error instead of silently switching to your home directory. Select an available project or worktree and open a new terminal there.

Debug a saved file

For a saved JavaScript or Python file, open Code intelligence in the file tab and choose Debug in terminal. Save the file and resolve any disk conflict first. The corresponding runtime must already be installed; this flow is available on macOS and Linux. It starts a command in your terminal, not an agent request.

When a command fails

Read the terminal output and confirm the command is running from the expected project or worktree. If a server starts but Browser cannot open it, use the exact local URL printed by the server and check that it is still running.

  • Work — ask an agent about your project
  • Tabs and splits — keep a terminal and chat open together

Documentation image