Skip to content

Support self-hosting on celld - #2

Merged
backnotprop merged 2 commits into
plannotator:mainfrom
Whamp:upstream-celld
Nov 21, 2026
Merged

backnotprop merged 2 commits into
plannotator:mainfrom
Whamp:upstream-celld

Conversation

@Whamp

@Whamp Whamp commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Lets a self-hosted copy run on celld, Deno's self-hosted Workers runtime, which runs the Worker, Durable Objects, D1, R2, cron and static assets from an S3-compatible bucket. Sign-up on celld also needs #1 (no node:crypto scrypt there).

  • Transfer links. Optional TALKTO_R2_OBJECT_BASE sets the https address before each object key in signed links, for a store other than R2. celld keeps an R2 binding's objects at r2/<bucket_name>/ in its own bucket, so the links point there. Unset, links use R2's address as before.
  • Deployment. pnpm celld deploy | migrate (apps/server/tools/celld.mjs) builds a celld config from the self-host template, drops the keys celld rejects (ratelimits, version_metadata, routes, account_id and others, all optional to TalkTo), copies the dashboard into the project without .assetsignore and source maps, runs celld, and deletes the config, which holds the secrets.
  • Docs. A "Run it on celld instead" section in the self-hosting guide: what differs, the commands, and the transfer setup.

Tests: a transfers test signs links at a TALKTO_R2_OBJECT_BASE address (new transferObjectBase harness option); the docs tests pass. pnpm lint, pnpm format:check and pnpm typecheck pass; with #1, pnpm test passed in full.

Running it: one celld 0.6.3 node behind an https proxy, with SeaweedFS as the bucket. Sign-up, the dashboard, agents over MCP (direct messages, channels, search), a node restart, and signed upload and download links through the proxy all worked.

🤖 Generated with Claude Code

celld, Deno's self-hosted Workers runtime, runs TalkTo's Worker, Durable
Objects, D1, R2, cron and assets from an S3-compatible bucket.

- TALKTO_R2_OBJECT_BASE sets the https address before each object key in
  signed transfer links, for a store other than R2. celld keeps the
  binding's objects under r2/<bucket_name>/ in its own bucket. Unset,
  links use R2 as before.
- `pnpm celld deploy | migrate` builds a celld config from the self-host
  template, drops the keys celld rejects, copies the dashboard into the
  project, runs celld and deletes the config, which holds secrets.
- The self-hosting guide gains a "Run it on celld instead" section.

Co-Authored-By: Claude <noreply@anthropic.com>
- Self-host guide: celld is community-supported and untested by TalkTo.
  The proxy must replace cf-connecting-ip with the real client address,
  or password-guess limits can be bypassed. Transfers are optional, need
  a key limited to the transfers folder, need your own 30-day cleanup,
  and are signed for region auto.
- TALKTO_R2_OBJECT_BASE: reject a query or fragment, and log one warning
  by name when the value is malformed.
- pnpm celld: generate the config in a temporary directory, so your own
  wrangler.selfhost.jsonc stays, and always delete the secrets file.
@backnotprop

Copy link
Copy Markdown
Contributor

Thanks, Will, this is great. I pushed one commit on top of yours with a few fixes before merging:

  • The guide now says the proxy must overwrite cf-connecting-ip. Without it, a client could send a fresh address with each request and get around the sign-in rate limit.
  • Transfers are clearly optional, with warnings about limiting the S3 key to the transfers folder and adding a 30-day cleanup rule.
  • A malformed TALKTO_R2_OBJECT_BASE now logs a warning instead of silently turning transfers off.
  • pnpm celld no longer overwrites wrangler.selfhost.jsonc and always removes its secrets file.
  • The celld section is marked community-supported for now, since celld is pre-1.0.

Merging now. Thanks again for both PRs!

@backnotprop
backnotprop merged commit e31de7f into plannotator:main Nov 21, 2026
@Whamp

Whamp commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

You're welcome thank you for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants