/pocketone:pocketonefrom pocketone
Works with PocketOne, a PocketBase fork with extensions, including its CLI, pages, and API. Useful for projects using pocketone.yaml, pb_pages/ templates, or PocketOne-specific features like PITR, OAuth, and multisite.
Ships in pocketone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
PocketOne is a community fork of PocketBase, based on upstream v0.41.1, maintained by Ben Allfree and contributors
(Ben also created PocketHost, which runs it in production). It is not affiliated with or endorsed by the PocketBase
project. Its changes to PocketBase's own code ("core") are kept to hooks and a few
bug fixes; every feature is an extension in ext/<name>/, each its own Go module. The stock binary is
pocketone (built from examples/pocketone).
Words: everything in ext/ is an extension, never a "plugin". Standard extensions ship in every pocketone
binary; the rest are community extensions. "Plugin" means only upstream's plugins/ (jsvm, migratecmd, ghupdate)
and Pages' own plugin system (+config.js plugins).
This skill covers using PocketOne in an app, its pages included: for anything in pb_pages/ (routes, ETS templates,
layouts, ctx, Pages plugins), read pages.md. Writing an extension and contributing it as a pull request
to ext/<name>/ is the pocketone-extensions skill.
brew install pocketonehq/tap/pocketone # macOS or Linux (formula in pocketonehq/homebrew-tap)
# or, macOS or Linux without Homebrew (on Linux: the .deb/.rpm/.apk package with a systemd service,
# https://pocketone.dev/docs/guides/linux-server; run it again to upgrade):
# curl -fsSL https://pocketone.dev/install.sh | sh
# Windows (PowerShell, Scoop manifest in pocketonehq/scoop-bucket):
# scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
# scoop install pocketone
# or: the zip for your platform from https://github.com/pocketonehq/pocketone/releases, on your PATH
# or from source:
git clone https://github.com/pocketonehq/pocketone.git
cd pocketone/examples/pocketone
go build -o pocketone .
pocketone --version prints the PocketOne version and the PocketBase version under it, e.g. 0.0.2 (PocketBase 0.41.1).
Create the superuser before the first serve of a fresh data dir; otherwise serve opens the superuser install page
in a browser:
pocketone superuser upsert [email protected] password --dir ./pb_data
pocketone serve --dir ./pb_data # http://127.0.0.1:8090, dashboard at /_/
pocketone serve --dev --dir ./pb_data # dev mode
# a server-rendered site from a starter kit:
pocketone pages starters # auth, daisyui, daisyui-docs, datastar, htmx, minimal (default), mvp
pocketone pages create myapp --starter htmx
cd myapp && pocketone serve --dev --dir ./pb_data
PocketOne reads the same pb_data, pb_hooks, pb_migrations and pb_public folders as PocketBase. To move an
existing app, back up pb_data, then point --dir at it. It adds pb_cache next to them: extensions' files they can
rebuild, never backed up or deployed, safe to delete (pocketone cache clear); gitignore it.
Same dashboard, collections, rules, REST and realtime APIs, JS hooks and migrations; PocketBase's docs still apply to those, and they're here: reference/pocketbase/ is PocketBase's own documentation (pocketbase.io/docs) as Markdown, one file per page, each starting with its pocketbase.io URL (all of it in llms-full.txt), and reference/pocketbase/jsvm/ is its JSVM reference (pocketbase.io/jsvm: every function and type pb_hooks see, with descriptions and examples). Read them for collections, rules and filters, the Web API, auth, files, and hooks; read PocketOne's docs (reference/docs/) for what PocketOne adds or changes. Where the two differ for a PocketOne app, PocketOne's docs win. What changes:
pb_data/litestream/; restore from
Settings → Backups, pocketone pitr restore, or pocketone remote restore to --at -2h. --pitr=false turns it off.serve --dev and no SMTP, mail goes to an inbox at http://127.0.0.1:8025 instead
of sendmail (Mail Trap).pb_pages is served when the folder exists next to pb_data (--pagesDir picks another).pocketone.yaml, with secrets in a .env beside it. Without it, nothing changes.login, link, remote, deploy, dev, pull, logs, restart./mcp, long-lived API tokens (pbt_…) with scopes, and an OAuth server
used by pocketone login and MCP sign-in.pocketone upgrade replaces the executable and keeps the old one as pocketone-<version>./api/_c/<id>/ (see how they fit together). /mcp and /.well-known/*
are the only extension paths at the root. Responses carry X-Powered-By: PocketOne <version>.multisite section in pocketone.yaml makes pocketone serve a host for many instances
(as isolates with Pocker, in containers with Docker, or both).The pocketone binary has PocketBase's commands (serve, superuser, migrate) and flags, plus these. Each flag is
on the commands that read it, so put it after the command name; only --config and --env-file are on every command.
Run pocketone <command> --help for the full list.
| Command | What it does |
|---|---|
serve [domains] | Starts the server. --http, --https, --origins, --publicDir, --pagesDir, --pitr, --autotls, and the app flags (--dir, --dev, --hooksDir, --migrationsDir, --jsvm). |
superuser create|upsert|update|delete|otp|ips | Manage superusers. |
pages create <name> [--starter kit], pages starters | A new pb_pages folder from a starter kit. |
config [--json], config check | List every pocketone.yaml section with defaults; check a file and its $VARs. |
link <url> [token] | Add a remote (default name default, --name) and sign in. |
login [remote], logout [remote] | Sign in as a superuser (browser OAuth, opening the superuser form; --device; a superuser's email and password when the remote has no OAuth server; --token, --token-stdin); forget the login. |
remote add <name> <url> [--default], list, default, rm, whoami, status, logs, restart | Manage remotes; inspect an app. |
remote <contract> <op> | Every contract operation an app offers, e.g. remote restore points, remote restore to --at -2h, remote settings, remote bulkmail, remote mail suppression. |
deploy [remote] | Upload changed pb_* files (not pb_data), package.json, bun.lock(b), patches/ and production node_modules. --restart, --dry-run, --out <dir>, -i/-e, --no-node-modules. Stops and lists files that changed on the remote since the last deploy, pull or dev; --force overwrites them. |
dev [remote] | Two-way sync with a remote and stream its logs. --prefer local|remote, --push-only, --poll, --no-logs. Type r and Enter to restart. |
pull [remote] [paths...] | Download files from a remote (--dry-run). |
logs [remote] [-n lines] | Stream a remote's app logs. |
restart [remote] | Restart a remote so new migrations and packages apply. |
pitr status, pitr restore --at <time> [--to file] | Local point-in-time restore (in place runs on the next start). |
token create|list|revoke|scopes | API tokens (pbt_…). |
oauth clients | OAuth server clients. |
template list, template eject [set] [--force] | Extensions' page templates (oauth: the sign-in screens): list them, or copy them to pb_templates/<set>/ to edit; eject asks before overwriting your changes. |
upgrade [-y] [--backup] | Move to the latest release (prereleases included; asks before stable → prerelease). |
docker seed|update | Release binaries for the Docker runtime (host mode only). |
Root flags --config <path> and --env-file <path> pick the config file and its .env.
pocketone clone https://myapp.example.com # no local copy yet: make ./myapp, link, sign in, pull its code
pocketone link https://myapp.example.com # add remote "default" and sign in
pocketone deploy # changed files only; hooks, pages, public go live at once
pocketone deploy --restart # restart if migrations or packages changed (use in CI)
pocketone dev # live two-way sync while you work
pocketone logs -n 200
default. Any command
also takes a URL instead of a name.--restart,
pocketone restart, or r in dev.dev keeps state in .pocketone/ and puts the remote's side of a conflict in .pocketone/conflicts/; list files
to leave out in .pocketoneignore.--device on headless machines), a superuser's email and password when the remote has no OAuth server (stock PocketBase), or an API token.--config picks another. The .env is found beside
it; --env-file picks another. Relative paths are relative to the file's folder.$VAR stops startup. An empty section means all defaults.$VAR / ${VAR} reads the .env first, then the environment ($$ is a literal $). The .env is never put in
the process environment, so JS hooks ($os.getenv) don't see it unless the name is in app.env_allow.server: # what serve reads
http: 127.0.0.1:8090
origins: ["*"]
public_dir: ./pb_public
app: # what every command that opens the app reads
dir: ./pb_data
hooks_dir: ./pb_hooks
env_allow: [STRIPE_KEY]
pitr:
retention: 168h
autotls:
auto: true
email: [email protected]
dns:
provider: cloudflare
api_token: $CF_API_TOKEN # from the .env
providers: # pick a provider when several extensions provide a contract
restore/v1: pitr
Sections in the stock binary: app, server, autotls, pitr, s3redirect, providers, and for hosts
multisite, instances, pocker, docker, firewall, rate_limits, edges, mothership, lifecycle. Run
pocketone config to see them with defaults, and read
reference/docs/config-reference.md for every key.
From each README's front matter. "In pocketone": yes = on in the stock binary; host = used when
pocketone.yaml has a multisite section; Go build = add it to your own main.go; planned = README only,
no code yet (version 0.0.0).
| Extension | In pocketone | What it's for | Reference |
|---|---|---|---|
| Standard extensions | |||
| PITR | yes | Point-in-time restore of your database with Litestream. On by default. | pitr |
| Settings | yes | One API for the settings an app's admins change for its extensions. | settings |
| Backups | yes | Restore an app to a moment from its own backups: the latest one before it. | backups |
| Auto TLS | yes (--autotls) | Certificates on demand and wildcards through ACME. | autotls |
| Bulk Mail | yes | Campaigns to your app's own users, with audiences from a collection, a view or SQL. | bulkmail |
| Pages | yes | Server-rendered pages from a pb_pages folder (formerly PocketPages). | pages.md |
| Vacuum | planned | Scheduled SQLite VACUUM. | vacuum |
| MCP | yes | An MCP endpoint at /mcp so agents can manage your app and call its tools. | mcp |
| S3 Redirect | yes | File downloads as short-lived signed S3 redirects. | s3redirect |
| S3 Fallback | yes | A default bucket for uploads and backups when an app has no S3 of its own; off until the storage section mounts one. | s3-fallback |
| Tokens | yes | Long-lived API tokens with scopes (and the OAuth server). | tokens, OAuth |
| Deploy | yes | pocketone deploy, dev, pull and logs, and the deploy API. | deploy |
| Remotes | yes | Named remotes and saved logins for the pocketone command. | remotes |
| Upgrade | yes | pocketone upgrade to the latest release, keeping the old executable. | upgrade |
| Config | yes | The pocketone.yaml config file, with secrets in a .env beside it. | config |
| JSVM | yes | The JS engine for pb_hooks and pb_migrations: one QuickJS VM per app, real globals, async handlers, hard limits. | jsvm |
| Run many instances | |||
| Pocker | host | Hundreds of PocketBase instances in one Go process, routed by hostname. | pocker, guide |
| Multisite | host | Many instances behind one listener, routed by hostname, run by one provider. | multisite |
| Docker | host | A host provider that runs each instance in its own container. | docker |
| Sandbox | host (via Pocker) | Confines untrusted JS hooks, SQL and outbound network. | sandbox |
| Firewall | host | Peer allow-lists, trusted proxies and rate limits for a host. | firewall |
| Edge | host | Forwards each request to the edge that owns the instance. | edge |
| Mothership | host | A control plane and its edges, across regions. | mothership |
| Schedules | planned | Scheduled webhooks that wake sleeping instances. | schedules |
| Stats | host | Measures disk use and last request for each instance a host serves. | stats |
| Services for your instances | |||
| Mail Relay | Go build | Outgoing mail for instances without SMTP, through your relay, with limits. | mailrelay |
| Server Timing | host | Server-Timing headers for each step of a request. | servertiming |
| Sell it as a service | |||
| Multitenant | planned | Accounts that own instances: quotas, owner logins, tokens and an API. | tenants |
| Multitenant Billing | planned | Plans, quotas and the billing provider hook for Multitenant. | tenant-billing |
| Lemon Squeezy Adapter | planned | Lemon Squeezy as the billing provider. | tenant-billing-ls |
| For extension authors | |||
| Extension Kit | Go library | The extension contract: one extension works on every app, standalone or hosted. | ext/extkit/extkit.go (no page) |
| Standard Set | yes | The extensions every PocketOne app has, as one set a host configures. | standard |
| Contracts | Go library | The versioned interfaces extensions use to work together, and their generator. | contracts |
| Mail Trap | yes (dev mode) | Dev mode: mail from an app without SMTP lands in a built-in inbox. | mailtrap |
| Dev Users | Go build | Local testing only: a superuser and a user with password "password". | ext/devusers/devusers.go (no page) |
| Bundle | Go build | An app's hooks, migrations and public files embedded in the binary. | bundle |
To turn a standard extension off, set enabled: false in its pocketone.yaml section; extensions that require it
turn off too, and the startup lines say why.
Plain-Markdown copies of pocketone.dev, regenerated by site/sync.
reference/docs/extensions/<name>/index.md;
guides Tokens OAuth, Pockerreference/docs/contracts/<id>/index.md:
bulkmail/v1, cli.commands/v1,
deploy/v1, gate/v1,
http.wrap/v1, instance.source/v1,
mail.fallback/v1, mail.feedback/v1,
mail.suppression/v1, mcp/v1,
oauth/v1, remote/v1,
restore/v1, runtime/v1,
settings/v1, tls/v1,
api-tokens/v1pb_pages pages: pages.md. Writing an extension: the pocketone-extensions skill.pages.md (opens in a new tab)reference/docs/agents.md (opens in a new tab)reference/docs/api-rules.md (opens in a new tab)reference/docs/authentication.md (opens in a new tab)reference/docs/collections.md (opens in a new tab)reference/docs/compatibility.md (opens in a new tab)reference/docs/config-reference.md (opens in a new tab)reference/docs/contracts/api-tokens.verify/v1/index.md (opens in a new tab)reference/docs/contracts/api-tokens/v1/index.md (opens in a new tab)reference/docs/contracts/bulkmail/v1/index.md (opens in a new tab)reference/docs/contracts/cache.clear/v1/index.md (opens in a new tab)reference/docs/contracts/cache/v1/index.md (opens in a new tab)reference/docs/contracts/cli.commands/v1/index.md (opens in a new tab)reference/docs/contracts/deploy/v1/index.md (opens in a new tab)reference/docs/contracts/gate/v1/index.md (opens in a new tab)reference/docs/contracts/http.wrap/v1/index.md (opens in a new tab)reference/docs/contracts/index.md (opens in a new tab)reference/docs/contracts/instance.fs/v1/index.md (opens in a new tab)reference/docs/contracts/instance.lookup/v1/index.md (opens in a new tab)reference/docs/contracts/instance.resolve/v1/index.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub pocketonehq/pocketone --plugin pocketoneOther plugins' skills for the same job