CodewithChat LogoCodewithChat
DocsBuilding & IterationTerminal Commands & Sandbox Execution
Building & Iteration• Xterm.js Terminal

Terminal Commands & Sandbox Execution

Run npm commands, inspect build logs, and monitor web container execution in real time.

Using the Embedded Terminal

CodewithChat includes a full terminal powered by Xterm.js. You can watch the Next.js dev server compile pages, inspect console logs, and run custom npm scripts directly in your browser.

Installing npm Packages

You can run `npm install <package-name>` inside the terminal or simply ask the AI mentor to add the library for you.

Viewing Server Logs

Server-side `console.log` statements from your API routes and Server Actions stream directly into the terminal tab for effortless debugging.

Ready to build your first website or web app?

Start with your idea and let the AI mentor guide you step-by-step from an empty folder to a successful launch.

Start Building Now

Command Palette

Search for a command to run...