Getting started
Apps extend what Ghost can do and adapt it to the way you work. These guides assume you’re working with an AI coding tool, such as Claude Code, Codex, or Cursor. To set things up yourself, follow the steps in Manual setup.
What you need
- Experience building and hosting web apps. Or work with a Ghost Expert.
- A Ghost site ready for apps, such as Ghost running in development mode on your computer, where you’re the Owner or an Administrator (see Get your site ready for apps).
- An AI coding tool, such as Claude Code, Codex, or Cursor, if you’re following the guided setup.
- Optionally, a free GitHub account, to keep a copy of your code online.
- Later, a host such as Cloudflare, Vercel, or Fly.io, so your app works when your computer is off. Start without one, and add it when you’re ready (see Deployment).
Get your site ready for apps
While apps are in private beta, they’re for developers who run Ghost themselves. A site opens apps when:
- It runs Ghost’s new auth engine. The auth engine is the part of Ghost that signs people in and issues the tokens apps work with. Sites run the older engine,
legacy, until they’re switched tobetter-auth. The new engine needs MySQL: On SQLite, Ghost logs a warning and stays onlegacy. - Apps was on when Ghost started. After turning on Apps while Ghost is running, restart Ghost before opening an app.
- It runs Ghost 6.80 or later. From 6.80, when someone opens an app, Ghost gives it a token, a credential limited to the access the site approved (see How apps work).
What to do depends on how you run Ghost:
- Ghost in development mode, from its repository: Bring the repository up to date with
git pullon itsmainbranch, then start Ghost from its folder withauth__engine=better-auth labs__apps=true pnpm dev, in place ofpnpm dev. Ghost updates its database as it starts, and its development setup already uses MySQL. To run Ghost this way for the first time, follow its Quick Start. - A site you host on a server: Update Ghost to 6.80 or later, such as with
ghost update, then add"auth": {"engine": "better-auth"}and"labs": {"apps": true}to Ghost’s config file, such asconfig.production.json, and restart Ghost. The site needs a MySQL database.
Ghost asks staff to sign in again, once, after the switch to the new engine.
To turn Apps on and off from Settings → Labs → Private features instead, set only the engine in Ghost’s config or environment, turn on Apps in Labs, and restart Ghost. Until that restart, opening an app tells you apps open once Ghost restarts. Ghost in development mode shows Private features already. On a server, add "enableDeveloperExperiments": true to Ghost’s config to show it. While the config or environment sets apps, the toggle looks like it saves, and changes nothing. Turning Apps off stops apps’ requests right away, and an app that’s open says apps are turned off the next time it calls Ghost.
On the legacy engine, Ghost still installs and uninstalls apps, and tells you apps need the new engine when you open one.
Set up
Paste this into your AI coding tool:
Set me up to build Ghost apps by downloading and following https://tryghost.github.io/Apps/SKILL.md
You only do this once. It installs what’s needed, checks your site is ready, and installs an example app to prove it all works.
Build your first app
Describe the app you want:
Build a Ghost app that shows my scheduled posts on a calendar, and give me the install link when it’s ready.
Your app starts out on your own computer. If your coding agent can use a browser, it installs and checks the app itself. If it asks you to sign in, use its browser.
You get back an install link. If the app isn’t installed yet, open it while you’re signed in to Ghost Admin. Ghost shows you what the app is and where it runs. Click Install, and the app appears under Apps in Ghost Admin.
To turn a website or web app you already have into an app, see Adapt an existing project.
To change the app, keep describing what you’d like. Small changes show up the next time you open the app. For bigger ones, like a new name or more access, Ghost asks for your approval before it opens the app (see App lifecycle).
With Ghost in development mode on your computer, the app installs directly. A hosted site, on a server, reaches it through a tunnel: A temporary public URL that only works while your computer is on and the app is running. Quick tunnels get a new URL each time, so you may need to install from a new link when you come back to it.
The app on your computer is a development version, signed with its own keys. When you deploy it, the deployed app is a different app to Ghost, so you install it again from its new link (see App identity).
Save your code to GitHub
Your app’s code lives in a Git repository on your computer, which stores the code and its saved history. Each commit saves a version to return to if a later change stops working.
We recommend also keeping a copy on GitHub. It’s a backup if something happens to your computer, it lets you work on the app from anywhere or with other people, and many hosts deploy straight from it.
Save my Ghost app to a private repository on GitHub. Commit my latest changes first, and leave out secrets like
.dev.varsand.ghost-app/.
The first time, GitHub asks you to sign in, or to create a free account. After that, ask your AI coding tool to push to GitHub whenever you’d like to bring the copy there up to date.
Deploy your app
To have your app work when your computer is off, put it on a host. Deployment explains how, with hosts like Cloudflare, Vercel, and Fly.io. Ghost’s examples use Cloudflare.
Examples
Ghost has example apps to build on, written to be copied.
Manual setup
The same steps, done yourself. You’ll need Node.js 22 or later, and pnpm 12.7 or later.
- Copy the Hello world example from Ghost’s apps repository:
npx degit TryGhost/Apps/examples/hello-world my-app, thencd my-app. - Install what it needs:
pnpm install --allow-build=esbuild --allow-build=workerd. The two names let pnpm fetch the tools Hello world builds and runs with. - Give it its own ID: In
ghost-app.json, changeidfromorg.ghost.hello-worldto something likecom.yourname.calendar, and changenametoo. - Start its history: Check that
.gitignorelistsnode_modules/,.wrangler/,dist/,.dev.vars, and.ghost-app/, so they’re never saved or shared..ghost-app/holds your app’s keys. Then rungit init,git add ., andgit commit -m "Started my app". Commit again each time you get a change working. - Start the app with
pnpm dev. It prints an install link for Ghost athttp://localhost:2368. - Open the install link in Ghost.
With a hosted site
Replace steps 5 and 6 with:
- In a second window, open a tunnel to port 8787:
npx cloudflared tunnel --url http://localhost:8787. It prints a URL ending intrycloudflare.com. No account needed. - Start the app with the tunnel’s URL and your site’s:
GHOST_URL=https://yoursite.com GHOST_APP_TUNNEL_URL=https://your-tunnel.trycloudflare.com pnpm dev. It prints an install link for your site. - Open the install link it prints.
When the tunnel’s URL changes, restart pnpm dev with the new one, and install from the new link.
To deploy it, see Deployment. The deployed app keeps its address in .env.production, its backend key in a Worker secret you store once, and has its own keys, so it’s a different app to Ghost: Uninstall the one from your computer, and install the deployed one.
Manual GitHub setup
With the GitHub command line tool (gh), from your app’s folder:
- Sign in, once:
gh auth login - Create a private repository and push your code to it:
gh repo create my-app --private --source=. --push - After each new commit, bring GitHub up to date:
git push
If you’d rather not use the command line, GitHub Desktop does the same with buttons.
To deploy your app, see Deployment.