Local Development
Run GCP Computer locally with emulated sandboxes for development, testing, and demos — no cloud infrastructure required.
Emulation Mode
Set APP_MODE=local-emulated in your .env file to enable the local development path. This mode:
- Hides Google login — credentials-based login only
- Runs sandboxes in an in-memory emulator instead of Docker or GCP
- Falls back to a deterministic demo response when Gemini is unavailable
- Displays a Local Emulation badge on the login page
Verification Checklist
Use this checklist to confirm everything works after starting the dev server:
- Open
http://localhost:3000 - Confirm the login page shows a Local Emulation badge
- Sign in with credentials auth
- Create a new chat session
- Send a prompt that triggers a command execution
- Send a prompt that writes and reads a file
- Send a prompt that mounts a directory
- Reload the page and confirm the chat and sandbox still load
- Sign out and confirm you return to the login page
Pass Criteria
- Login works without Google credentials
- Sandbox commands run inside the emulator, not on the host OS
- Agent responses render without Gemini
- Tool logs appear in the chat UI
- The demo can be repeated after a page refresh
Development Scripts
| Command | Description |
|---|---|
| npm run dev | Start the Next.js development server |
| npm run build | Build for production |
| npm run lint | Run ESLint |
| npx prettier --check . | Check code formatting |
Project Structure
src/
├── app/ # Next.js App Router pages and API routes
├── components/ # React components
├── config/ # Runtime configuration
├── db/ # Database layer and migrations
├── services/
│ └── sandbox/ # Sandbox drivers (Docker, GCP, Emulated)
└── auth.ts # NextAuth configuration