**English** | [简体中文](README.zh-CN.md)
Deck
Your local cockpit for autonomous AI agents — secure sandboxes, one desktop app.
> [!NOTE]
> Deck is currently in the **stable desktop release** line.
> Official desktop downloads are currently macOS DMG (signed and notarized).
> Windows and Linux desktop builds are planned on the roadmap.
---
## Why Deck?
🔁 **Closed-Loop AI Workflow** — Start Sandbox -> Observe Desktop -> Handoff to Editor, OpenCode, or Terminal from the top bar without breaking context.
🔒 **Local-First Sandboxes** — Spin up isolated Docker containers with a full Linux desktop, dev tools, and AI agents. Your data stays on your machine.
🖥️ **Live Desktop Visibility** — Chat with AI and inspect real execution in noVNC with command-level traceability and permission-aware actions.
🚦 **Local/Remote Profile Orchestration** — Keep multiple connection targets and switch instantly while preserving one cockpit workflow.
🤖 **AI-Native Architecture** — Built-in OpenCode integration for multi-turn AI sessions with tool execution, file diffs, reasoning traces, and permission controls.
💬 **Pilot Automation Suite (Optional)** — Extend cockpit workflows to multi-channel messaging and headless orchestration when needed.
🧩 **Polyglot Monorepo** — TypeScript, Go, Rust, and Python in one repo with pnpm, Go workspaces, Cargo, and uv — everything you need to extend the platform.
📖 **Fully Open Source** — Apache 2.0 licensed. Fork it, extend it, self-host it.
---
## 🚀 Quick Start
### 1. Install the app
Download the latest macOS DMG from **[GitHub Releases](https://github.com/cofy-x/deck/releases)**, open it, and drag `deck.app` into `/Applications`.
Current desktop release assets are for macOS. Windows and Linux builds are on the roadmap.
### 2. Start a local sandbox and open your project directory
Open the app, select the built-in **Local** profile, click **Start Sandbox**, then choose your working directory from **Open Project**.
The app will automatically pull `ghcr.io/cofy-x/deck/desktop-sandbox-ai:latest` on first run with a live progress indicator.
> **Tip:** To pre-pull the image manually:
>
> ```bash
> docker pull ghcr.io/cofy-x/deck/desktop-sandbox-ai:latest
> ```
### 3. Handoff from the top bar
After the sandbox is running, use the top bar to continue in your preferred surface:
- `Editor (VS Code/Cursor)`: available for **Local Sandbox**.
- `Terminal`: available for **Local Sandbox**.
- `OpenCode`: available for any **running connection** (Local or Remote).
> `Pilot Automation Suite` is optional and currently operated as separate `apps/pilot/{host,server,bridge}` modules; cockpit-native continuity is roadmap work.
---
## 🔨 Build From Source
Prerequisites: **Node.js >= 20**, **pnpm**, **Rust**, **Go**, **Docker**.
```bash
make install
cd apps/client
pnpm tauri dev
```
Other active modules
```bash
# Pilot host
pnpm run pilot:dev
# API + Dashboard
make docker-dev-up
make run-api
make run-dashboard
```
---
## 🏗️ Architecture
```mermaid
graph LR
User([User]) --> Client["Deck Client
(Tauri + React)"]
Client --> Docker["Docker Container"]
Docker --> Daemon["Daemon (PID 1)"]
Daemon --> AI["AI Agent
(OpenCode)"]
Daemon --> Desktop["Linux Desktop
(noVNC)"]
Daemon --> ComputerUse["Computer Use
(mouse / keyboard)"]
User --> PilotSuite["Pilot Suite (Optional)
(Host / Server / Bridge)"]
PilotSuite --> PilotHost["Pilot Host"]
PilotHost --> Daemon
```
---
## Tech Stack
| Layer | Technologies |
| :--------------- | :------------------------------------------------------------------------- |
| Desktop App | Tauri v2, React, TypeScript, Vite, Tailwind CSS, shadcn/ui |
| Sandbox Runtime | Go, Docker, noVNC, X11, supervisord |
| AI Integration | OpenCode, SSE streaming, MCP tool server |
| Backend Services | NestJS, Fastify, Drizzle ORM, PostgreSQL, Redis, BullMQ |
| Messaging Bridge | Node.js, multi-channel adapter framework (optional via Pilot suite) |
| Build & Tooling | pnpm, Cargo, Go workspaces, uv, Makefile |
---
## Repository Structure
```
deck/
├── apps/
│ ├── client/ # Tauri v2 desktop cockpit (primary desktop surface)
│ ├── pilot/ # Optional automation suite for orchestration workflows
│ │ ├── bridge/ # Messaging bridge adapters
│ │ ├── host/ # Headless CLI orchestrator
│ │ └── server/ # Filesystem API server for sandboxes
│ ├── api/ # NestJS BFF service
│ ├── dashboard/ # React web admin UI
│ └── cli/ # Go CLI / MCP tool server
├── packages/
│ ├── daemon/ # Go sandbox daemon (container PID 1)
│ ├── computer-use/ # Visual automation plugin (mouse, keyboard, screenshots)
│ ├── core-ts/ # Shared TypeScript logic & types
│ ├── core-go/ # Shared Go utilities
│ ├── client-daemon-ts/# TypeScript SDK for daemon API
│ └── client-daemon-go/# Go SDK for daemon API (generated)
├── docker/ # Multi-stage sandbox image builds
├── deploy/ # Local dev docker-compose
├── docs/ # Design documents & media
└── scripts/ # Build & codegen scripts
```
See [module-status.md](.x/module-status.md) for the full lifecycle matrix.
---
## 🗺️ Roadmap
### v0.0.x — Now
- Stable desktop cockpit with local and remote sandbox workflows.
- Improved session control, desktop visibility, and reliability.
- Sandbox image optimizations and faster boot times.
### v0.1 — Next
- Cockpit-to-Pilot workflow continuity improvements.
- Unified desktop and bridge orchestration from one entrypoint.
- Multi-session and multi-sandbox management.
- Enhanced file viewer, diff viewer, and markdown preview.
### Future
- Windows and Linux desktop builds.
- Plugin system for custom sandbox extensions.
- Team collaboration and shared sandbox sessions.
---
## 🤝 Contributing
Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md) before submitting a pull request.
This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).
---
## Community
- [GitHub Issues](https://github.com/cofy-x/deck/issues) — Bug reports and feature requests.
- [GitHub Discussions](https://github.com/cofy-x/deck/discussions) — Questions, ideas, and general conversation.
- [Changelog](CHANGELOG.md) — Release history.
- [Security Policy](SECURITY.md) — Responsible disclosure.
---
## ⭐ Star History
[](https://star-history.com/#cofy-x/deck&Date)
---
## License
Deck is licensed under [Apache License 2.0](LICENSE).
Built with care by cofy-x