ownbackend

Running on your device

Your backend runs where you run ownbackend serve: Linux, macOS or Windows, on x86 or ARM. It keeps its files in a hidden .ownbackend/ folder there: data/ (the database, uploaded files, backups and this device's link; it's git-ignored, never commit it), and migrations/ and hooks/, which belong with your app's code.

Staying online

Your app is online while the device runs ownbackend serve and has internet. No router setup is needed: the device connects out to the relay.

Backups

The device sends an encrypted backup of the whole backend to the relay every 24 hours; the relay keeps the last 7. They're encrypted on the device with your backup recovery code, shown once when you connect the device. Without it, nobody can read them, including us. Show it again with:

ownbackend backup recovery-code

Moving to another device

Install ownbackend on the new device, then in the dashboard choose Move to another device on your backend for a new connect code, and run the commands it shows (or run ownbackend serve --relay wss://app.ownbackend.com on the new device and pick your existing backend when you approve). The old device is disconnected. To bring your data along:

ownbackend backup restore latest --yes --recoveryCode <your code>

Admin access

There's no admin dashboard: your AI agent manages the data and its rules through the MCP server, on the device. Admin access never works through the public address.

This page as Markdown: /docs/devices.md