# Integrated terminal

> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Each chat in the ChatGPT desktop app includes a terminal scoped to its current project or
worktree. Open it from the terminal icon in the top-right corner of the app, or
press <kbd>Ctrl</kbd>+<kbd>`</kbd>.

<CodexScreenshot
  alt="Integrated terminal drawer open beneath a ChatGPT chat"
  lightSrc="/images/codex/app/integrated-terminal-light.webp"
  darkSrc="/images/codex/app/integrated-terminal-dark.webp"
  maxHeight="400px"
  class="my-8"
/>

## Run and validate your project

Use the terminal to validate changes, run scripts, and perform Git operations
without switching apps. ChatGPT can read the current terminal output, so it can
check a running development server or refer to a failed build while it works
with you.

Common commands include:

- `git status`
- `git pull --rebase`
- `pnpm test` or `npm test`
- `pnpm run lint` or another project-specific check

## Create reusable actions

If you run a command regularly, define an action in your [local environment](https://learn.chatgpt.com/docs/environments/local-environment#actions).
Actions appear as shortcuts in the ChatGPT desktop app and run in the integrated
terminal.

<kbd>Cmd</kbd>+<kbd>K</kbd> opens the app command palette; it doesn't clear the
terminal. To clear the terminal, press <kbd>Ctrl</kbd>+<kbd>L</kbd>.