talorys README

项目的 README,来自 github.com/rociiu/talorys。合并为一个 markdown 文件:README.md。

Talorys

Your personal AI agent. Your own cloud.

Website: rociiu.github.io/talorys

Talorys is a free, open-source personal AI assistant that runs entirely inside your own Cloudflare account. It chats with you, remembers what matters, manages tasks, notes and projects, and runs reminders and routines on a schedule — without any server, database or account operated by the Talorys developers.

One person. One Cloudflare account. One command. One personal AI agent.

npx create-talorys@latest

Or install it with Appflare, which deploys it as a single Worker:

Install with Appflare


1. What Talorys is

Screenshots

Today Chat with tool activity
Today Chat
Tasks Memory (dark mode)
Tasks Memory
Automations
Automations

Mobile   Login

2. How it works

Browser ──HTTPS──▶ Cloudflare Pages (React app + /api Pages Function)
                         │  service binding (no public URL)
                         ▼
                   Private Worker (Hono router)
                         │  getAgentByName("personal-agent")
                         ▼
                   TalorysAgent — Cloudflare Agents SDK Durable Object
                     ├─ SQLite: conversations, memories, tasks, notes, projects,
                     │          automations, sessions, settings, usage
                     ├─ Workers AI: @cf/zai-org/glm-4.7-flash (streaming + tool calling)
                     └─ Alarms: reminders and recurring schedules

More detail: docs/architecture.md.

3. Cloudflare services used

Service Used for Free plan
Cloudflare Pages Frontend + Pages Function Yes
Cloudflare Workers Private API Worker Yes
Durable Objects (SQLite) All data, scheduling alarms Yes
Workers AI Chat model (@cf/zai-org/glm-4.7-flash) Yes, daily allocation

Talorys does not provision R2, D1, KV, Vectorize, AI Search, Workflows or any paid service.

4. Deploy

npx create-talorys@latest

The installer:

  1. Checks Node.js (22+) and uses its bundled Wrangler CLI (any globally installed wrangler/cf is detected but not required).
  2. Verifies your Cloudflare login, or opens Cloudflare's authorization page in your browser.
  3. Lets you choose an account (if you have several) and an agent name.
  4. Asks for an owner password (hidden input, strength-checked). It is hashed locally with PBKDF2-SHA256 and stored only as a Cloudflare secret.
  5. Generates a 256-bit session secret, a Web Push key pair, and unique resource names (talorys-<id>-agent, talorys-<id>-web).
  6. Deploys the private Worker (creating its SQLite Durable Object), stores secrets, creates and deploys the Pages project with the service binding.
  7. Verifies the live deployment (frontend, auth endpoint, unauthenticated rejection, storage health) without running any AI inference.
  8. Prints the real https://….pages.dev URL reported by Cloudflare.

It writes a talorys/ directory containing talorys.json (installation id, account id, resource names, URL — no secrets) and the deployable artifacts. Keep it for updates.

Interrupted? Run the same command again in the same place. It reconciles what already exists: no duplicate resources, no password re-prompt if the password is already configured, and no data is ever deleted.

Non-interactive installs: TALORYS_OWNER_PASSWORD=... npx create-talorys@latest --yes --account-id <id> (with CLOUDFLARE_API_TOKEN set if you are not logged in).

Permissions

Browser login uses Wrangler's standard OAuth flow — no Global API Key. If you use an API token instead, it needs:

See docs/deployment.md.

5. Access

Open the URL the installer prints and enter your owner password. Today shows what needs attention; use Chat whenever you want help or want to describe a plan. Sign in from any number of devices — they are all the same owner. Manage sessions under Settings → Security.

Forgot the password? From your talorys/ directory:

npx create-talorys@latest reset-password

This replaces the password secret and signs out every device.

6. Where your data lives

All data is stored in a single SQLite-backed Durable Object (personal-agent) in your Cloudflare account. Talorys has no telemetry, analytics, tracking or advertising code and sends nothing to its developers.

Cloudflare processes your data to provide its services — including running Workers AI inference on your chat messages and the relevant memories included in each prompt. Review Cloudflare's privacy policy and Workers AI terms.

If you connect a remote MCP server, calling one of its tools sends that call's arguments to the server, outside your Cloudflare account. Nothing is sent to an MCP server unless you connected it and turned the tool on. See docs/mcp.md.

Security model and threat mitigations: docs/security.md.

Calling the API from scripts with personal access tokens: docs/remote-access.md.

7. What is free and what may cost money

Talorys is designed to fit the Cloudflare Workers Free plan and never enables paid features on its own. It is not "unlimited free", though:

Built-in guardrails (adjustable in Settings → AI): max output tokens, max context tokens (older history is summarized), max tool calls and reasoning steps per request, max AI requests per day (every chat-model call counts, including each reasoning step, history summary and memory check), and max scheduled AI runs per day. Embeddings have their own daily request cap. Simple reminders and task digests never use AI.

The Usage panel separates provider-reported tokens from fallback token estimates, and shows local estimated Neurons and USD inference value for today and the last seven days. Model-specific estimates use static published Workers AI rates at the time each call is recorded; the pricing date and source are linked in the panel. They are not a Cloudflare bill or quota balance: account-wide usage and free allowances are excluded. No account credentials or extra network calls are needed for these estimates.

Unsupported models remain unpriced, not free. Mixed coverage is labelled as a partial subtotal, while historical mixed token counts retain an unknown model and provenance and cannot be repriced. Demo/mock calls show estimated tokens but have no real AI consumption and no Neuron or USD estimate. Completed model steps remain counted if a later step fails or is cancelled; steps without a usage receipt cannot be measured. Use the linked Cloudflare dashboard for account-level usage and billing.

8. Local development

Requirements: Node.js 22+.

git clone https://github.com/rociiu/talorys.git
cd talorys
npm install
npm run dev

npm run dev starts the agent Worker (wrangler dev, port 8787), the Pages Function proxy with its service binding (wrangler pages dev, port 8788) and the Vite UI (http://localhost:5173) in one terminal. It creates apps/agent/.dev.vars with a local password (talorys-dev-password, override with TALORYS_DEV_PASSWORD) and uses the deterministic mock AI provider, so no Cloudflare login is needed. State persists in .wrangler/state.

Other scripts: npm run build, npm test, npm run test:e2e, npm run test:pack, npm run typecheck, npm run lint. See docs/development.md.

9. Back up your data

Settings → Privacy → Download backup produces talorys-backup.json with conversations, memories, tasks, notes, projects, settings and automations (never sessions or credentials). Import validates the file and merges it in one transaction; importing the same backup twice is harmless, and a memory, task, note or project you edited locally after the backup was made is not overwritten. Memory history (current vs. past facts) is included. Older backups import as before. Settings include the effective installer defaults. If an imported timezone changes, retained local automations are also rescheduled in that timezone. A backup file is treated as untrusted: new automations arrive paused, existing automations are never changed except to pause them, and the model, limits, demo mode, auto-memory, memory history and agent name settings are kept as they are (the import result lists any it skipped).

10. Update

From your talorys/ directory:

npx create-talorys@latest update

This redeploys the latest Worker and frontend to the same resources. The Durable Object namespace is never recreated (migrations are append-only), the owner password and sessions are kept, and schema migrations run automatically and transactionally on first request. Also available: status and doctor.

11. Troubleshooting

Problem Fix
Installer stopped midway Re-run the same command; it resumes.
"did not pass its health checks yet" New pages.dev sites can take a few minutes. Re-run.
Permission errors Use an account where you can edit Workers and Pages, or a token with the permissions above.
Chat says the AI allocation is used up Wait for the daily reset; or enable Demo mode in Settings → AI.
Locked out after failed logins Wait 15 minutes, or reset the password with the CLI.

npx create-talorys@latest doctor checks everything automatically. More in docs/troubleshooting.md.

Repository layout

apps/agent              Private Worker: Hono API, TalorysAgent, tools, SQLite repositories
apps/web                React + Vite app, Pages Function (functions/api/[[path]].ts)
packages/shared         Zod schemas, types, recurrence/DST logic, password hashing
packages/create-talorys The one-command installer (npm package)
tests/e2e               Playwright UI tests
tests/smoke             Optional real-account deployment test
docs/                   Architecture, deployment, development, security, troubleshooting

Credits

Thanks to everyone who has contributed to Talorys:

License

MIT

talorys (rociiu/talorys)

正在搜索数据库…

这是什么?Talorys 是一个免费开源的个人 AI 助手,完全部署到你自己的 Cloudflare 账号中,处理聊天、记忆、任务、笔记、项目和定时提醒,开发者不运营任何服务器或数据库。
我要把它装在服务器上,还是它运行在我自己的 Cloudflare 账号里?它不是传统的自托管服务器应用:它以 Cloudflare Pages 前端加一个私有 Worker 和一个 Durable Object 的形式部署,全部位于你自己的 Cloudflare 账号内,而且后端 Worker 完全没有公开 URL。
怎么部署它?运行 'npx create-talorys@latest';安装程序会检查 Node.js、验证你的 Cloudflare 登录状态,让你选择账号和智能体名称、设置所有者密码,并替你部署 Worker 和 Pages 项目。它还支持非交互模式,便于脚本化安装。
运行安装程序之前需要什么?只需要 Node.js 20.18+ 和一个 Cloudflare 账号;安装程序使用自带的 Wrangler CLI,如果你尚未登录,会打开 Cloudflare 的登录页面。
免费的 Workers AI 配额用完后会怎样?聊天会显示清晰的提示,并在每日重置后恢复;其他一切(任务、笔记、记忆、提醒)在没有 AI 的情况下照常工作,而且简单提醒和任务摘要本来就不使用 AI。
它是多用户的吗,比如团队助手?不是,它设计上是单用户的:安装程序只设置一个所有者密码,没有注册、账号或团队功能,不过同一位所有者可以从多台设备登录,并在设置中管理会话。
运行它需要我花钱吗?它的设计适配 Cloudflare Workers 免费套餐,并且绝不会自行开通 R2、D1、KV 或 Vectorize 这类付费 Cloudflare 服务;如果你的账号是付费套餐,超出免费配额的用量会由 Cloudflare 直接计费。
我的数据到底去了哪里?所有数据都存储在你自己 Cloudflare 账号内一个基于 SQLite 的 Durable Object 中,不会向开发者发送任何遥测或分析数据,不过 Cloudflare 自身为提供其服务会处理你的数据(包括运行 Workers AI 推理)。
这个 AI 助手日常实际能做什么?它可以以流式响应和 Markdown 格式聊天,记住个人事实和偏好(每轮只记住最相关的部分),通过聊天指令管理任务/笔记/项目,并通过 Durable Object 闹钟运行一次性或周期性提醒,以及可选的 AI 例行任务。
我可以备份或迁移我的数据吗?可以,“设置 → 隐私 → 下载备份”会导出一个 talorys-backup.json,包含对话、记忆、任务、笔记、项目和自动化,同一文件可以安全地重新导入,甚至导入两次也没问题。
可以在不部署到 Cloudflare 的情况下在本地运行测试吗?可以,'npm run dev' 使用确定性的 mock AI 提供方在本地启动智能体 Worker、Pages Function 代理和 Vite 界面,所以开发时不需要登录 Cloudflare。
作者
rociiu
大小
2.9 MB
星标
1.5K
时长
1个月
提交 · 90 天