Skip to main content

Launch a Session

A session is the live runner for a workspace. It gives you a terminal-first environment backed by a configured container image and Cloud Run service.

Choose an Image

Session image choices are configured by the app. Pick the smallest image that contains the language runtime and tools the project needs. Heavier images are useful for agent stacks with preinstalled CLIs, but they take longer to build and maintain.

ImageTerminal or agent modePreview supportFunction or tool supportRecommended use case
pi-basicPi agent terminalNo browser previewStandard terminal tools, no function runnerAgent-led terminal work that does not need a web preview.
pi-webPi agent terminalBrowser preview and preview QAWeb preview plus function-capable toolingAgent-led web app work where you need to inspect and test the running UI.
codex-basicCodex terminalNo browser previewStandard terminal tools, no function runnerCode changes and command-line verification without a browser-served app.
codex-webCodex terminalBrowser preview and preview QAWeb preview plus function-capable toolingCodex-driven frontend or full-stack work that needs a live browser preview.

Choose a *-basic image when terminal access is enough. Choose a *-web image when the project needs an in-browser preview, preview QA, or function-capable tooling.

Start the Runner

  1. Select a workspace.
  2. Choose New Session.
  3. Select the runtime image.
  4. Launch the session.
  5. Wait for the terminal to attach.

The terminal, file tree, and agent commands operate inside the workspace boundary. If the runner image changes, launch a new session so Cloud Run gets a fresh revision.

Stop Idle Work

Stop sessions when active work is finished. Mapache is designed around serverless runners, so keeping idle containers around is unnecessary cost.