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

- **GitHub URL**: https://github.com/rociiu/talorys
- **Official Docs / Website**: https://rociiu.github.io/talorys/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (89/100 · Maintenance 35/35 · Adoption 17/25 · Releases 17/20 · License 20/20)
- **Latest Release**: create-talorys@0.1.7 (2026-10-19) — https://github.com/rociiu/talorys/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, CLI
- **Momentum**: 1,497 ★ total (+0 24h / +7 7d) · 151 forks
- **Topics**: `ai-agent`, `cloudflare`, `cloudflare-workers`, `durable-objects`, `personal-assistant`, `react`, `self-hosted`, `typescript`, `workers-ai`
- **When to Use**: Best for: One owner who wants chat, persistent memory, task planning, and reminders across devices, with deployment and backups under their control and no database server to maintain. Skip if: You need offline inference, deployment outside Cloudflare, separate identities and roles for a team, or a guarantee that prompts never reach a cloud provider.

## Overview
```text
### Architecture & Core Mechanics
Talorys is a TypeScript monorepo with a React/Vite frontend in `apps/web` and a Hono API in `apps/agent`. In the default deployment, the browser sends HTTPS requests to Cloudflare Pages; the `/api/*` Pages Function forwards them over a service binding to a Worker with `workers_dev` and `preview_urls` disabled. The Worker enforces authentication and authorization, and chat streams end to end over Server-Sent Events.

The API resolves `personal-agent`, a named Cloudflare Agents SDK Durable Object. Its SQLite store holds conversations, memories, tasks, notes, projects, automations, sessions, settings, and usage; Durable Object alarms drive scheduling. `packages/shared` houses Zod schemas and recurrence/DST logic. Integration has two distinct paths: external clients call the API with personal access tokens, while Talorys can call enabled tools on remote MCP servers.

### Key Capabilities & Differentiators
The default Workers AI model, `@cf/zai-org/glm-4.7-flash`, handles streaming chat and tool calling. Users can edit or delete durable memories, and only relevant memories are included in each turn. Optional semantic recall is off by default and extends meaning-based retrieval to tasks, notes, and automations. Chat can draft a task plan for editing and project assignment before confirmation creates the full set in one operation, exactly once.

The Today view, simple reminders, and task digests need no inference. Scheduled AI routines are optional. Per-request controls cap output, context, tool calls, and reasoning steps; older history is summarized to manage context. Daily chat-model limits count reasoning, summarization, and memory-check calls, not just visible turns. Scheduled AI runs and embedding requests each have their own caps.

### Trade-offs & Limitations
Compared with a vendor-hosted assistant, Talorys moves application resources and data into your Cloudflare account without requiring a database server. Compared with a local-first assistant, it trades offline inference and independence from a cloud runtime for managed compute and storage. Cloudflare still processes prompts and relevant memories for inference, and an enabled remote MCP invocation sends its arguments to that server. Multiple devices share one owner identity rather than gaining separate workspaces or roles.

The MIT license allows commercial use, but it does not change Cloudflare’s service terms or account-wide quotas. When the daily AI allocation is exhausted, chat pauses until reset while non-AI features continue; paid accounts can incur overage charges. Usage estimates are not billing or remaining quota. JSON backups provide a data exit path, not a portable runtime: they omit credentials and sessions, preserve newer local edits to supported records, and import new automations paused.

### Hardware & Deployment Guide
Start with Node.js 22+, a Cloudflare account, and `npx create-talorys@latest`. The installer bundles Wrangler, supports browser OAuth or an API token, hashes the owner password locally with PBKDF2-SHA256, and stores the resulting verifier as a Cloudflare secret. The default install provisions the Worker and Pages and verifies the live deployment without inference. Keep the generated `talorys/` directory for resumable installs and updates. Appflare offers a separate single-Worker route without Pages.

For development, `npm run dev` runs the Worker, Pages proxy, and Vite locally with mock AI; no Cloudflare login or GPU is needed. In production, `npx create-talorys@latest update` redeploys to the existing resources without recreating the Durable Object namespace; schema migrations run transactionally on the first request. Release `create-talorys@0.1.7` added personal access tokens and Web Push, extended semantic search to tasks, notes, and automations, and made existing automations editable.
```

## Key Capabilities
```text
- API boundary: Pages forwards `/api/*` via a service binding to a Worker with public and preview URLs disabled in the default deployment.
- State and scheduling: One SQLite-backed Durable Object stores personal data and uses alarms for reminders and recurring jobs.
- Controlled writes: Chat-generated task plans remain drafts until confirmed; confirmation creates the full plan atomically and exactly once.
- Retrieval: Opt-in semantic recall finds memories, tasks, notes, and automations by meaning; embedding requests have their own daily cap.
- Usage accounting: The dashboard distinguishes reported from estimated tokens and labels Neuron and USD figures as estimates, not account balances or bills.
- Recovery: JSON imports merge transactionally, exclude sessions and credentials, and bring in new automations paused.
```

## Quick Start / Clone
```bash
npx create-talorys@latest
```
