Skip to main content
Codeg includes an integrated terminal so you can run build commands, check git status, install dependencies, and interact with your project alongside your agent session — all without leaving the workspace window.

Opening a terminal

Click the Terminal icon in the workspace toolbar to open a terminal panel for the current folder. The terminal starts in the folder’s root directory.

Multiple terminals

You can spawn multiple terminal sessions per folder. Each session is independent — open as many as you need. Sessions appear as tabs in the terminal panel and can be switched between freely.

Full PTY support

The terminal uses a full pseudo-terminal (PTY) rather than a simple pipe. This means:
  • Resize support — the terminal resizes correctly when you drag the panel edge or resize the window; the running process receives the new column and row counts
  • ANSI colors — color output from tools like git, npm, build scripts, and test runners renders correctly
  • Interactive programs — tools that rely on terminal capabilities (progress bars, spinners, prompts) work as expected

Git credential integration

When you open a terminal in Codeg, git operations automatically use the credentials you have configured in Settings > Version Control. Codeg injects a credential helper into the terminal’s environment at spawn time. Your credentials are never written to disk in plain text.

Common use cases

  • Run pnpm install or npm run build while an agent session is active in the same folder
  • Check git status or git log without switching windows
  • Run tests and review output alongside the agent’s code changes
  • Execute one-off scripts or inspect environment variables

Session lifecycle

Terminal sessions persist until you explicitly close them or the workspace window closes. If the process running inside the terminal exits (for example, a build command that completes), the session stays open so you can see the output and run further commands. To close a terminal session, click the × on its tab or run exit in the shell.
Use multiple terminals to run a long-running process (like a dev server) in one tab while running other commands in another — without interrupting your agent session.