https://github.com/openloaf/openloaf
๐Open-source, local-first AI workspace with Agents, multi-model chat (GPT/Claude/Gemini/DeepSeek), Notion-like docs, AI image & video generation, email, calendar & terminal. Your data never leaves your device. AI ๅทฅไฝๅฐ๏ผๆบ่ฝไปฃ็ + ๅคๆจกๅๅฏน่ฏ + ๆๆกฃ็ฎก็ + AI ็ๅพ/่ง้ข + ้ฎไปถ/ๆฅๅ/็ป็ซฏ
https://github.com/openloaf/openloaf
ai chat claude deepseek desktop gemini gui image-generation jimeng llm notion openclaw viedo-generation workspace
Last synced: 2 months ago
JSON representation
๐Open-source, local-first AI workspace with Agents, multi-model chat (GPT/Claude/Gemini/DeepSeek), Notion-like docs, AI image & video generation, email, calendar & terminal. Your data never leaves your device. AI ๅทฅไฝๅฐ๏ผๆบ่ฝไปฃ็ + ๅคๆจกๅๅฏน่ฏ + ๆๆกฃ็ฎก็ + AI ็ๅพ/่ง้ข + ้ฎไปถ/ๆฅๅ/็ป็ซฏ
- Host: GitHub
- URL: https://github.com/openloaf/openloaf
- Owner: OpenLoaf
- License: agpl-3.0
- Created: 2025-12-08T08:32:33.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-03-24T10:51:11.000Z (2 months ago)
- Last Synced: 2026-03-25T05:18:59.579Z (2 months ago)
- Topics: ai, chat, claude, deepseek, desktop, gemini, gui, image-generation, jimeng, llm, notion, openclaw, viedo-generation, workspace
- Language: TypeScript
- Homepage: https://openloaf.hexems.com
- Size: 143 MB
- Stars: 28
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Cla: .github/CLA.md
Awesome Lists containing this project
README
OpenLoaf
Open-Source AI Productivity Desktop โ Project-Centric, Multi-Agent, Local-First
Each project gets its own AI agent team, memory, and skills. Projects link to share knowledge. A Secretary Agent orchestrates everything. The agent runtime, memory system, skills loading, and tool routing are native OpenLoaf capabilities - not a thin wrapper around Claude Code. Your data never leaves your device.
๐ฌ AI Secretary ย |ย ๐ Independent Projects ย |ย ๐ Project Linking ย |ย ๐ค Multi-Agent ย |ย ๐จ Canvas ย |ย ๐ง Email ย |ย ๐
Calendar ย |ย ๐ Tasks
One app, multiple project windows. Each project has its own AI team. Link projects to share knowledge. A Secretary Agent ties it all together โ 100% local.
๐ฅ Download for macOS / Windows / Linux
English | ็ฎไฝไธญๆ | ๆฅๆฌ่ช
---
> **โ ๏ธ This project is in active development. Features and APIs may change โ use in production with caution.** Encountered a bug or have an idea? Submit feedback via the app's built-in feedback button.
---
## About
OpenLoaf is a local-first AI productivity desktop app built around **projects as independent workspaces**. Each project opens in its own dedicated window with a full-featured environment: AI assistant, file tree, terminal, task board, and canvas.
A **Secretary Agent** lives in the main window as your personal assistant โ it can answer questions, manage your calendar and email, and route complex tasks to the right project's AI agent. For cross-project work, projects **link** to each other to share memory and skills.
> **Built natively into OpenLoaf:** the Secretary / Project / Worker agent system, project memory injection, skills discovery, runtime tool execution, and multi-window orchestration are all part of OpenLoaf's own product architecture - not a Claude Code reskin or thin wrapper.
### How It Works
```
You (the Boss)
โ
โผ
Secretary Agent (Main Window โ your personal assistant)
โ
โโโ Simple tasks โ handles directly
โโโ Single-project tasks โ spawns a Project Agent
โโโ Cross-project tasks โ spawns multiple Project Agents in parallel
โ
โโโ Project Agent (Project Window)
โ
โโโ Worker Agents (explore, plan, code...)
```
**Main Window** โ your command center:
- AI Secretary for global tasks (calendar, email, cross-project queries)
- Activity timeline showing recent projects, conversations, and canvases
- Project grid to browse and open projects
**Project Window** โ each project gets its own:
- Dedicated AI assistant with project-specific memory and skills
- File explorer, terminal, task board, canvas
- Links to other projects (their memory and skills are auto-injected)
---
## Features
### Multi-Agent Architecture
OpenLoaf's AI isn't a single chatbot โ it's a **layered agent system** modeled after how companies work and built specifically for OpenLoaf's project-centric workflow:
| Agent | Role | Scope |
|-------|------|-------|
| **Secretary** | Your personal assistant in the main window | Global: calendar, email, project routing, cross-project queries |
| **Project Agent** | Dedicated assistant per project | Project: files, code, docs, terminal, tasks |
| **Worker Agents** | Specialized sub-agents spawned on demand | Focused: explore, plan, code, review |
The Secretary decides the most efficient path โ simple questions get answered immediately, project-specific tasks get routed to the right Project Agent, and complex multi-project tasks spawn parallel agents. Agent roles, project routing, memory injection, skills loading, MCP access, and runtime tool execution are first-class OpenLoaf capabilities rather than a thin layer on top of Claude Code.
### Independent Project Windows
Each project opens in its own window (Electron) or browser tab (web). No context switching โ work on multiple projects simultaneously with full isolation.
Projects are organized by **user-defined type labels** (e.g., "code", "docs", "knowledge base") which serve as visual groupings in the project grid. Types are just labels โ the system treats all projects equally.
### Project Linking
Any project can link to any other project. When linked:
- The linked project's **memory** is injected into the current project's AI context
- The linked project's **skills** become available to the current project's agent
- Perfect for sharing a knowledge base, design system docs, or coding standards across multiple projects
### Memory & Skills System
Three-level memory hierarchy:
| Level | Path | Purpose |
|-------|------|---------|
| **User** | `~/.openloaf/memory/` | Personal preferences, habits, global context |
| **Project** | `/.openloaf/memory/` | Project-specific architecture decisions, conventions |
| **Linked Projects** | Auto-loaded from linked projects | Shared knowledge (e.g., coding standards, API docs) |
Skills follow the same pattern โ global skills plus project-specific skills, all discoverable by AI agents at runtime.
Skills are reusable Markdown workflows defined by a `SKILL.md` file. Put them in `~/.agents/skills/` for global reuse or in `/.agents/skills/` for project-specific behavior, and agents can load the instructions plus related tool dependencies on demand.
OpenLoaf also supports **MCP (Model Context Protocol)** servers. You can connect external tools over `stdio`, `http`, or `sse`, configure them globally in `~/.openloaf/mcp-servers.json` or per project in `/.openloaf/mcp-servers.json`, and import JSON configs from clients like Claude Desktop, Cursor, VS Code, Cline, or Windsurf to expose GitHub, databases, filesystems, Slack, and more to your agents.
### AI Chat
Multi-model AI chat supporting **OpenAI**, **Anthropic Claude**, **Google Gemini**, **DeepSeek**, **Qwen**, **xAI Grok**, and local models via **Ollama**. AI is aware of your project's full context โ file structure, document content, conversation history. Built-in memory lets AI retain knowledge across conversations.
### Infinite Canvas
A ReactFlow-based infinite canvas for visual thinking. Supports sticky notes, images, videos, freehand drawing, AI image generation, AI video generation, and image content understanding. Mind maps, flowcharts, and inspiration boards on a single canvas.
### Built-in Productivity Tools
Everything in one app โ no more window-switching:
- **Terminal** โ Full terminal emulator. AI agents can run commands with your approval.
- **Email** โ Multi-account IMAP email with AI-powered drafting and summarization.
- **Calendar** โ Native system calendar sync (macOS / Google Calendar). AI-powered scheduling.
- **File Manager** โ Grid/list/column views, drag-and-drop, file preview (images, PDFs, Office, code).
- **Task Board** โ Kanban board (To Do โ In Progress โ Review โ Done) with priority labels and AI-powered task creation.
- **Rich Text Editor** โ Block editor built on [Plate.js](https://platejs.org/) with LaTeX, tables, code blocks, and bi-directional links.
---
## Use Cases
- **Software Development** โ Each repo is a project. Link a shared "coding standards" project for consistent AI behavior across all repos.
- **Research & Writing** โ Create a "references" project as a knowledge base, link it to your paper projects. AI draws from your curated sources.
- **Content Creation** โ Brainstorm on the canvas, generate images with AI, write in the editor, track deliverables on the task board.
- **Project Management** โ One project per client. Secretary Agent gives you a cross-project overview. Calendar and email keep everything coordinated.
- **Personal Knowledge Base** โ Accumulate notes, web clippings, and journal entries. Link to work projects so AI connects the dots.
---
## Why OpenLoaf
### The Problem
- **Fragmented AI workflows** โ One thing done requires jumping between five windows.
- **No project context** โ AI forgets everything between conversations. You re-explain your project every time.
- **Single-project silos** โ Projects can't share knowledge. Your coding standards project can't help your code repos.
- **Cloud lock-in** โ Your data lives on someone else's servers. You can't choose your own AI models.
### OpenLoaf's Approach
- **Self-developed agent stack** โ The Secretary / Project / Worker architecture, memory pipeline, skills system, MCP integration, and tool runtime are built natively in OpenLoaf instead of being a Claude Code reskin or wrapper.
- **Project-centric** โ Each project is a self-contained environment with its own AI agent, memory, and skills.
- **Linked knowledge** โ Projects share context through explicit links. A knowledge base enriches every project it's linked to.
- **Multi-agent routing** โ The Secretary Agent handles the orchestration. Simple tasks are fast; complex tasks get the right specialist.
- **Local-first** โ All data stored locally (`~/.openloaf/`). Bring your own API keys. No telemetry, no tracking.
- **Ready out of the box** โ Download, install, go. No servers, databases, or Docker.
### Loaf = Bread + Lounging
OpenLoaf's logo is a bread-shaped sofa. **Loaf** means both "bread" and "to lounge around" โ hand off tedious work to AI while you make the important decisions.
---
## Privacy & Security
- **100% Local Storage** โ All data stored on your filesystem (`~/.openloaf/`). Nothing uploaded to cloud servers.
- **Bring Your Own Key (BYOK)** โ Configure your own AI API keys. API calls go directly from your device to the model provider.
- **Works Offline** โ Core features work fully offline. Use Ollama for a completely air-gapped AI experience.
- **No Telemetry** โ No analytics, no usage data, no tracking. What happens on your device stays on your device.
- **Open-Source & Auditable** โ Full codebase under AGPLv3. Inspect every line that touches your data.
---
## Quick Start
### Prerequisites
- **Node.js** >= 20
- **pnpm** >= 10 (`corepack enable`)
### Installation
```bash
# Clone the repository
git clone https://github.com/OpenLoaf/OpenLoaf.git
cd OpenLoaf
# Install dependencies
pnpm install
# Initialize the database
pnpm run db:migrate
# Start the development environment (Web + Server)
pnpm run dev
```
Open [http://localhost:3001](http://localhost:3001). For the desktop app: `pnpm run desktop`.
---
## Architecture
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenLoaf โ
โ โ
โ Main Window โ
โ โโโ Secretary Agent (global AI assistant) โ
โ โโโ Activity Timeline (recent history) โ
โ โโโ Project Grid (all projects by type) โ
โ โโโ Calendar, Email, Canvas (global features) โ
โ โโโ Settings โ
โ โ
โ Project Window (one per project) โ
โ โโโ Project Agent (project-scoped AI) โ
โ โโโ File Tree, Terminal, Search โ
โ โโโ Task Board, Canvas โ
โ โโโ Linked Projects (shared memory/skills) โ
โ โโโ Project Settings & Skills โ
โ โ
โ Data Layer โ
โ โโโ ~/.openloaf/memory/ (user memory) โ
โ โโโ ~/.openloaf/config.json (project registry) โ
โ โโโ ~/.openloaf/openloaf.db (SQLite database) โ
โ โโโ /.openloaf/memory/ (project memory) โ
โ โโโ /.agents/skills/ (project skills) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
### Project Structure
```
apps/
web/ โ Next.js 16 frontend (static export, React 19)
server/ โ Hono backend, tRPC API
desktop/ โ Electron 40 desktop shell
packages/
api/ โ tRPC router types & shared API logic
db/ โ Prisma 7 database schema (SQLite)
ui/ โ shadcn/ui component library
config/ โ Shared env utilities & path resolution
```
### Tech Stack
| Area | Technology |
|------|------------|
| Frontend | Next.js 16 / React 19 / Tailwind CSS 4 |
| Backend | Hono + tRPC / Prisma + SQLite |
| Desktop | Electron 40 |
| Editor | Plate.js |
| AI | Vercel AI SDK (OpenAI / Claude / Gemini / DeepSeek / Qwen / Grok / Ollama) |
| Collaboration | Yjs |
| Canvas | ReactFlow |
| Tooling | Turborepo + pnpm monorepo |
---
## Roadmap
- [x] Multi-agent architecture (Secretary โ Project Agent โ Workers)
- [x] Independent project windows
- [x] Project linking with shared memory/skills
- [x] User-defined project types with visual grouping
- [x] Activity timeline in main window
- [ ] Full web browser access (without desktop app)
- [ ] Internationalization (i18n) โ in progress
- [ ] Project template marketplace
- [ ] WPS / Microsoft Office integration
- [ ] More features coming...
---
## Contributing
1. **Fork** this repository
2. Create your feature branch: `git checkout -b feature/my-feature`
3. Commit your changes ([Conventional Commits](https://www.conventionalcommits.org/)):
```bash
git commit -m "feat(web): add dark mode toggle"
```
4. Push: `git push origin feature/my-feature`
5. Open a **Pull Request**
> Before submitting a PR, please read the [Contributing Guide](.github/CONTRIBUTING.md) and [Development Guide](docs/DEVELOPMENT_en.md), and sign the [CLA](.github/CLA.md).
---
## License
OpenLoaf uses dual licensing:
- **Open Source** โ [GNU AGPLv3](./LICENSE): Free to use, modify, and distribute. Derivative works must remain open-source.
- **Commercial** โ For closed-source commercial use, contact us for a commercial license.
---