AI Apps

Build a website with your own AI agent, keep it in your GitHub and run it on your own server.

AI Apps lets you build a web app or website with your own AI agent (Claude Code, Cursor and others) and run it on your own server. The code stays in your GitHub. GitHub builds the site; Appdonia deploys it on your server, on your domain.

How it works

  1. You and your agent build a Next.js site on your computer.
  2. The code goes to your GitHub repository. On every push, GitHub Actions builds the site into an image and stores it in GitHub's registry (ghcr.io).
  3. Appdonia pulls that image on your server and serves it on your domain. A deployed site is a normal project: you see it under Projects, with its status, environment variables, redeploy and delete.

Nothing is built on your server, so a small server can run several sites.

Before you start

You need:

  • A GitHub account. Free is enough: private repositories include 2,000 GitHub Actions minutes a month, and a site build takes a few minutes.
  • A server on Appdonia. See How to start a project for adding one. How many servers you can have depends on your plan.
  • A domain, or a subdomain, that you can point to the server.
  • An AI coding agent, for example Claude Code.

You can deploy a site on every plan, also on the Free plan, as long as your account is within the limits of your plan. It needs no app purchase, but each deployed site counts as one of the apps of your plan, like an app from the marketplace.

1. Connect your agent

Claude app (desktop or web): no token needed. Appdonia is in the Claude directory. Open Appdonia in the Claude directory, or in Claude open Settings › Connectors › Browse connectors and search for Appdonia. Press Connect, sign in to Appdonia and choose Allow.

Other agents connect with a token. Open AI Apps in the top menu and choose Create token. Copy the token: it is shown only once.

For Claude Code, run the command shown on the page in your terminal. It looks like this:

claude mcp add --transport http appdonia-sites https://appdonia.com/mcp/sites --header "Authorization: Bearer YOUR_TOKEN"

For Cursor and other agents, add the JSON block from the page to the agent's MCP settings.

The token lets your agent work on your own sites and deploy them on your servers, and nothing else. You can revoke it, or make a new one, at any time.

2. Ask your agent to build the site

Open an empty folder, or your existing Next.js project, with the agent and tell it what you want, for example:

Build me a Next.js website for my bakery. Follow the site guide from the Appdonia Sites MCP, push it to my GitHub, then add it to Appdonia and deploy it on my server.

The agent reads the site guide from Appdonia. It adds three things to the project: a Dockerfile, a GitHub Actions workflow that builds the image, and the Next.js setting for a standalone build. Then it pushes the code and waits until GitHub has built the image.

3. Private repositories

A private repository makes a private image, and your server needs permission to download it. A public repository needs nothing.

Open AI Apps and the Connect your GitHub tab. Its link opens GitHub's new token page with the right permission (read:packages, read-only) already selected. Choose Generate token, copy it, and save it on the tab with your GitHub username. You save it yourself: your AI agent never asks for it. It is saved encrypted on your Appdonia account and used for all your sites, so you do this only once. When a deploy needs it, your agent sends you to this tab.

To take the access away, choose Remove access on the same tab, or delete the token in your GitHub settings.

4. Point your domain to the server

At your domain registrar, create an A record with the IP address of your server. The AI Apps page shows it when you choose the server.

Type:   A
Name:   @            (or a subdomain, for example "shop")
Value:  203.0.113.10 (the IP address of your server)

DNS changes usually take a few minutes. Appdonia checks the record before it deploys.

5. Deploy

Ask your agent to deploy the site, or open the site on the AI Apps page, choose the server, enter the domain and choose Deploy.

The install takes one to three minutes. Your agent follows it and tells you when the site is live. The HTTPS certificate is created for you.

Updating the site

Ask your agent for the change. It pushes the code, waits for GitHub to build the new image, and redeploys. You can also open the project and choose Redeploy: it pulls the latest image and restarts the site.

Ready-made apps from the same connection

The same connection also reaches the Appdonia marketplace. Ask your AI, for example:

Find me a free alternative to Zendesk and deploy it on my server.

It searches the apps the same way the search on appdonia.com does, or finds the apps that replace a known product. A free (open source) app it can deploy for you on your server, on a free address or your own domain, and follow until it is live. A paid app it cannot buy: it gives you the link to choose a server, pay and deploy it on appdonia.com.

Settings and secrets

  • Secret values such as API keys are environment variables of the project. Set them when the site is added, or change them later on the project's Environment page. Never put them in the code.
  • Public values (names that start with NEXT_PUBLIC_) are fixed when GitHub builds the image. Your agent sets them as GitHub repository variables.

What AI Apps does not include yet

  • A database on your server. Sites that store data or have user logins use Supabase Cloud for the database, file storage and sign-in. Your agent asks you to add the Supabase plugin and sets it up there.
  • A free address. Every site uses your own domain.
  • Deploy on push. After GitHub builds a new image, the site is updated when you or your agent redeploy it.

Troubleshooting

What you see What to do
The deploy says the domain does not point to the server Check the A record at your registrar and wait a few minutes.
The deploy says you use more than your plan allows Remove the extra servers or apps, or choose a bigger plan on the pricing page, then ask your agent to deploy again.
The project failed, and the log mentions "pull" or "denied" GitHub may not have built the image yet: check the Actions tab of your repository. Or the repository is private and no GitHub token is saved: save one under AI Apps › Connect your GitHub, then redeploy.
The site shows an error page Ask your agent to check the build with npm run build and the GitHub Actions run, then redeploy.
Nothing changed after a push GitHub may still be building. When the Actions run is green, redeploy.

For anything else, open a ticket from the project's page.

Appdonia

Secure checkout by AgentaOS