Overview
What Enrai is, what it includes, and how the workspace is organized.

Enrai
Enrai is a self-hosted coding workspace that combines:
- a Monaco-based editor
- a terminal backed by PTY sessions
- local preview tabs
- a file explorer
- an AI chat interface
- Codex session and rollout control
It is designed for local-first usage and internal deployments where the application runs on a trusted machine or inside a firewall-protected environment. It is also designed to be operated by agents as well as humans: queued tasks, rollout continuation, terminal-backed workspaces, and callback hooks all make it usable inside larger automation flows.
Start hereRun with npx
Launch Enrai with
Deploy safelySecurity modelnpx enrai@latest start and point it at a real workspace.Enrai ships without built-in auth and is meant to live behind a firewall, proxy, or bastion.
Automate workTask queue APIEnqueue Enrai jobs, continue rollouts, and inspect active, queued, and completed tasks.
Main capabilities
- Edit and save files directly from the browser.
- Run shell commands in embedded terminals.
- Switch between Enrai sessions and historical rollouts.
- Keep the explorer root synchronized with the active Codex working directory.
- Queue Codex work in the backend and execute tasks sequentially.
- Run the frontend and backend as separate apps or in portable mode under a single Express process.
Repository layout
frontend/ Main editor application
backend/ Express API, WebSocket server, PTY manager, Codex integration
documentation/ Fumadocs-powered documentation site
bin/ CLI entrypoints
scripts/ Bootstrap and utility scripts