# Repository Briefing: slopus/happy
> Source: https://repoforai.com/repo/slopus/happy (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/slopus/happy
- **Official Docs / Website**: https://happy.engineering/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Swift
- **License**: MIT
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 22/25 · Releases 17/20 · License 20/20)
- **Latest Release**: cli-1.2.5 (2026-09-22) — https://github.com/slopus/happy/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 24,967 ★ total (+2 24h / +111 7d) · 2,162 forks
- **Topics**: `claude-code`, `claude-desktop`, `codex`, `codex-cli`, `hacktoberfest`, `agent-orchestration`, `ai-agents`, `coding-agents`, `grok`
- **When to Use**: Best for: Developers who want to continue Claude Code or Codex sessions from a phone, and teams willing to adopt the separate desktop stack for shared, multi-model work. Skip if: A single terminal already meets your needs, or you require an air-gapped, fully local inference stack or a single repository containing the entire desktop runtime.

## Overview
```text
### Architecture & Core Mechanics
Happy separates agent execution from cross-device access. The original `happy-cli` wraps Claude Code and Codex on the machine that holds the project; `happy-server` relays encrypted session updates to clients. The monorepo contains iOS, Android, and web clients, with Swift/UIKit on iOS, Kotlin/Jetpack Compose on Android, and shared JSON translations in `happy-i18n`.

The relay and CLI sit in a pnpm workspace. The root Dockerfile references `happy-wire` and a Prisma directory under `happy-server`; the standalone relay uses PGlite for embedded PostgreSQL. `happy-push-server` is a separate notification path: a Cloudflare Worker sends through APNs and FCM. The desktop app and its Happy Agent runtime live in `slopus/happy-desktop` and `slopus/happy-agent`, respectively. Agent Client Protocol (ACP) is an extension point in the broader harness stack, not a feature to assume in the original Claude and Codex entrypoints.

### Key Capabilities & Differentiators
The original CLI provides the shortest route from an existing terminal workflow to mobile handoff: install the `happy` npm package, start `happy claude` or `happy codex`, and continue the same session from the phone. Cross-device session data is end-to-end encrypted. The broader Happy stack supports shared sessions in which collaborators can watch the same agent and either participant can steer it.

For multi-model work and teams, the intended path is the desktop app and Happy Harness. It supports Claude, Codex, and Grok, routes Gemini through Antigravity, and accepts OpenCode or other ACP agents as harnesses. Tasks can be assigned to different models or delegated to subagents. Claude, Codex, and Grok can reuse existing subscriptions, while Antigravity, OpenCode, and ACP agents keep their own logins. Adopting the harness does not consolidate provider authentication into one account.

### Trade-offs & Limitations
Direct Claude Code or Codex is the simpler baseline for a single operator at one terminal. Happy is worth the extra moving parts when a running session needs to be followed or steered from a phone, shared with a colleague, or coordinated across providers. Evaluate those workflows separately: the original CLI covers terminal-to-phone handoff, while multi-model and team adoption brings in the desktop app and its runtime as separate components to deploy and keep compatible.

The single-container relay avoids operating separate PostgreSQL and Redis services, but its embedded database and local files still need durable storage and backups. End-to-end encryption covers device synchronization; it does not establish that provider calls are local or subject to the same data boundary. MIT licensing gives teams flexibility to modify and host Happy itself, not permission to bypass provider subscription terms or remove external model and push dependencies.

### Hardware & Deployment Guide
For a CLI trial, install with `npm install -g happy` and launch `happy claude` or `happy codex` with the corresponding agent available on the project machine. For relay self-hosting, the root Dockerfile uses Node.js 24 and pins pnpm 10.11.0 in the dependency stage. Its standalone target needs neither an external PostgreSQL instance nor Redis: it uses embedded PGlite and local filesystem storage. Plan persistent storage and test restoration of both database and file data before putting the relay into service.

Stable CLI 1.2.5 improves recovery after daemon state loss, prevents duplicate session ownership on concurrent or cancelled resumes, and recovers transcripts that appear late or after a watcher restart. CLI 1.2.6 beta.0 raises the Claude Agent SDK floor to `^0.3.283` for Opus 5.5 compatibility in app-started sessions. Beta.1 fixes delivery of messages, Stop, and kill after reconnect for ACP, Gemini, agy, and OpenClaw sessions started while the relay was unreachable. That is reconnect recovery, not a guarantee that cloud-backed models work offline.
```

## Key Capabilities
```text
- Repository scope: iOS, Android, and web clients, the original CLI, and the relay live here; the desktop app and agent runtime are separate repositories.
- Terminal integration: `happy claude` and `happy codex` wrap existing coding-agent harnesses on the project machine.
- Backend extension: Gemini uses Antigravity; OpenCode and other Agent Client Protocol (ACP) agents can plug in as harnesses.
- Session sync: The mobile app uses end-to-end encryption for cross-device session data; the relay is not the agent executor.
- Standalone relay: The root Dockerfile uses Node.js 24 and pnpm 10.11.0 in its dependency stage; standalone mode uses PGlite and local files without Redis.
- Push delivery: `happy-push-server` uses a Cloudflare Worker to deliver notifications through APNs and FCM, replacing Expo push.
```

## Quick Start / Clone
```bash
npm install -g happy

# Start Claude Code
happy claude

# Or start Codex
happy codex
```
