Skip to main content
Lovable builds the app. Ankra runs it on your cluster, with open-source software you control, behind HTTPS, with every change built and scanned first. You keep prompting in Lovable. Lovable commits to your GitHub repository, and Ankra builds every commit.
An app built in Lovable is synced to your GitHub repository. Ankra's add-application wizard analyses it and opens a setup pull request. Ankra builds, scans and deploys it to your cluster, where it runs next to open-source Postgres and object storage that Ankra also runs. A live HTTPS address is printed, and every later edit in Lovable is rebuilt and redeployed.

From a Lovable repository to your own cluster


What Ankra does for you

Adding an application is a wizard, and the work is done by Ankra’s AI, not by you. You can drive the same flow from chat, which is useful when you want the AI to explain or change the plan before anything is written:
Agent mode stops at a confirmation card before every write. See Applications and AI Assistant.

Chat and deploy from inside Lovable

The Ankra - Chat & Deploy extension for Chrome puts an Ask Ankra button on your Lovable project. From that panel you can chat with Ankra AI, connect the project’s GitHub repository and deploy it to your cluster, without switching to the portal.
1

Install and connect

The Chrome Web Store listing is in review, so for now install the extension manually. Open a project on lovable.dev and click Ask Ankra. Choose Sign in to Ankra, sign in, and approve the extension in the browser sign-in screen the CLI also uses. An Ankra API token works too.
2

Pick where it deploys

In the panel’s Settings, Where it runs is the target cluster, and More settings holds the Organisation and the GitHub connection Ankra should use. Chat needs only the organisation. If your organisation has no usable cluster, Start for free requests a temporary Playground and selects it once it is ready.
3

Connect GitHub and deploy

Open the panel’s My app tab and choose Connect GitHub. The extension opens Lovable’s Git settings and reads the repository and branch from there. If the project is not connected yet, you finish account choice and GitHub authorisation in Lovable. Check the repository and branch under Change where the code comes from, then click Put it online.The extension reuses an application with the same repository and branch, or registers a new one, so the first deploy runs the same setup pull request, pipeline and scans described below. If Ankra is not ready yet, for example while the setup pull request or the first build is pending, the request waits and is sent once Ankra accepts it, for up to 24 hours, even if you close the panel.
Deployment requested means Ankra accepted the request, not that the app is live. Open the application in Ankra to follow the build and get the address. The extension does not move database contents, Lovable Cloud data or Supabase secrets.
The extension has access to four sites and to Ankra, and Chrome shows them on the extension’s details page: lovable.dev, vercel.com, github.com and claude.ai (with the Claude Design canvas on *.frame.claudeusercontent.com), and platform.ankra.app for its own requests. It asks for api.vercel.com only when you choose to bring your variables over from Vercel. On Lovable it reads the project’s address and title, the GitHub links the page shows and, on the Git settings screen, the repository’s clone address and its branch, along with the navigation and account controls it needs to open that screen for you. On Lovable it does not read cookies, page storage, passwords, other form fields, source code or the rest of the page. On Vercel it reads, with your signed-in session, the project’s own record, the GitHub links on the page and, if those do not name it, the project’s overview page, only to find the GitHub repository the project builds. On Claude Design it takes the design’s own HTML export, and only when you press Put it online. Your sign-in and recent chats are kept in local extension storage, and Disconnect clears them. Chat in the panel uses Ask mode; continue writes that need approval in the portal.

Install the extension without the Chrome Web Store

The Chrome Web Store listing is in review. Until it is live, load the same package into Chrome yourself:
  1. Download ankra-chrome-extension.zip and unzip it into a folder you will keep. Chrome loads the extension from that folder, so do not delete it.
  2. Open chrome://extensions and turn on Developer mode in the top-right corner.
  3. Choose Load unpacked and select the unzipped folder.
  4. Reload any open Lovable tab, then click Ask Ankra.
A manually loaded extension does not update itself. When the store listing is live, remove this copy from chrome://extensions and install the extension from the store to get updates. The same steps work in other Chromium browsers such as Edge and Brave, from that browser’s own extensions page.

Add the app with the wizard

1

Connect Lovable to GitHub

In Lovable, open the project’s GitHub settings and connect a repository. Lovable commits every change to it from then on. This is the only link between the two.
2

Add the repository in Ankra

In the portal, open Applications and choose New application, which opens What are you shipping?. Pick your GitHub connection, the repository and the branch Lovable tracks. Ankra analyses it in the background.Without the portal, from a clone of the repository:
3

Let Ankra write the Dockerfile

A Lovable project is usually a Vite single-page app: it builds static files and starts no process. Ankra recognises that shape from package.json (Vite, a build script, no start script) and writes the Dockerfile for it. You add nothing to the repository. A project that declares TanStack Start (@tanstack/react-start) is not that shape: it runs its own server, and Ankra packages it as one.The Dockerfile builds the app with Vite and serves the result from an unprivileged nginx on port 8080, running as a non-root user. A refresh on /dashboard/settings returns the app instead of a 404, while a missing file under /assets/ is still a 404. Read the generated nginx configuration in the setup pull request: caching and a health route are only there if it writes them, and the Dockerfile below shows both.
4

Review the setup pull request and ship

Read the pull request Ankra opened: the Dockerfile, the manifests, the deploy options and the pipeline. Nothing builds the branch until you merge it, because it adds the pipeline. Merge it, then deploy from the wizard, or in one command:
Run before the merge, ship stops with the state waiting_for_setup_pull_request (exit code 9); merge and run it again, and it continues from there. Ankra waits for the build, deploys, waits until the pods run and the address answers over HTTPS, and prints:
If the address is still not answering after five minutes, ship ends with Deployed and healthy, not answering yet and the reason, and exit code 0: run it again to check.
The first pipeline definition needs a person to approve it once. If the build stops with a refused step, run ankra pipeline get --application shop --latest, which prints the exact approve command, and run it as yourself.

Run the backend on your cluster

A Lovable app is a front end plus a backend, and the backend is usually a hosted service. On Ankra the backend is open-source software on your own cluster, run by Ankra. What Ankra runs for you today The database is a Kubernetes resource in your repository, so it is reviewed in the same pull request as the app, sized by the deploy mode (one instance for quick, three for high availability), and protected like any other data with backups and restore points.

The part to be honest about: the data layer

Lovable generates apps that talk to Supabase with supabase-js: sign-in, tables, storage and functions all go through Supabase’s own API. Ankra does not recognise Supabase, and its wizard does not rewrite application code, so a repository that calls Supabase keeps calling Supabase unless the data layer changes. There are two ways to get fully onto your cluster:
  1. Replace the data layer in the code. Move tables to the Postgres Ankra generated, files to the S3 service, and sign-in to an open-source identity provider such as Ory Kratos, Keycloak or authentik. This is a code change, and it is the right job for an AI coding assistant working in the repository, with the Ankra skills installed so it knows where the pieces live:
  2. Run Supabase’s open-source stack on your cluster. Supabase is open source and can be self-hosted, which keeps the app’s code unchanged because only its address changes. Ankra can convert a Supabase self-host Docker Compose file with ankra migrate and restore its Postgres through a backup vault, but there is no one-step Supabase package, and the compose file’s mounted configuration needs care. Treat this as an advanced route.
Whichever you choose, never ship the Supabase service role key in the repository or in any VITE_ variable, and review Row Level Security or its replacement before real users arrive. Do not switch the data layer in production first: prove it in development.

Use your own domain

Add two options to the deploy:
Ankra’s DNS automation covers the generated subdomain. For a zone of your own, store a DNS credential and serve the zone from the cluster once:
If the name points at Lovable’s hosting today, remove it there first. See Domains and DNS.

Development, then production

Add a second cluster so each change is proved before production sees it. An application deploys to as many environments as you give it, and each environment is a cluster and namespace with its own database and secrets.
An app built in Lovable is committed to GitHub. An Ankra pipeline tests, builds, scans and gates it and publishes an immutable tag. The tag is deployed to a development cluster and proved there, then promoted unchanged to a production cluster. Each environment talks to its own backend, and one image serves both because the backend address is injected when the container starts.

One image, two environments: the backend address is injected when the container starts

1

Deploy to development

Each environment gets its own database, so development data never reaches production.
2

Promote the tag that passed

Deploy the exact tag you tested to production, as an environment named production. Promotion moves the image tag only: never a rebuild, never configuration.
A new environment follows the application’s push to deploy switch, which is on, so turn it off for production at once and leave development on, so production never follows a push:
In the portal, choose production in the environment menu at the top of the application, open Settings → Deploys, and choose Turn off deploy on every push. Deploy on every push now reads Off for production.Once production has that first deployment, ankra application promote moves the tag development runs onto production and leaves production’s own deploy options as they are:
It prints what each environment runs and what stays different, asks before it deploys, and --dry-run stops after showing it; it refuses a production that still follows pushes. You can also promote from the application’s Environments view in the portal, under Promote a version, or from chat with promote_application. To roll back, deploy an earlier tag the same way.
Anything that differs per environment and is baked into a Vite build, such as a public API address, can be filled in when the container starts instead of at build time:
The same image serves any backend whose address you pass as SUPABASE_URL and SUPABASE_PUBLISHABLE_KEY (the names follow Lovable’s; rename them to match your .env), including a self-hosted one. Give each environment its values with an environment secret, which is stored per application, sealed into the workloads and rolled on apply:
Variables in the environment take priority over the .env Lovable commits, so the committed address never reaches the bundle. A container started without a variable exits at once and names it.

What you get without asking

  • Scans on every change. Semgrep over the source, Checkov over the manifests and Trivy over the image, judged against your organisation’s gate before anything is published. A generated app is mostly code you did not write, so this is where an unsafe pattern or a leaked key shows up.
  • An immutable tag per commit. Every deployment is a sha- tag.
  • Tests when you add them. The pipeline has a test stage only when package.json has a test script, and Lovable projects usually have none.
  • An AI review and a watcher. Ankra reads every pull request, watches every run, and opens a fix when a build breaks.
  • Pull request previews. A live preview of each branch, with its own throwaway Postgres if you ask for one. See Pull request preview environments.

Verify

Then open the address, reload a nested page, and sign up and sign in once. A green deployment is not a working app; the sign-in is the check.

Troubleshooting

Ankra writes the Dockerfile for a Vite app that builds static files and names no server of its own. If package.json has a start script or a main file, or a server.js sits beside the app, Ankra treats the repository as a Node server instead. If vite.config moves the build output out of dist/, the generated image cannot find it. In either case add your own Dockerfile at the repository root and commit it to the branch Lovable tracks: Ankra builds whatever Dockerfile it finds and never overwrites it.
The try_files $uri /index.html; line is missing from the nginx config, or the config was not copied into the image.
The identity provider’s allowed redirect list does not include the new address. Add it for each environment.
The code still calls Supabase, which Ankra does not rewrite. Change the data layer as described above, or inject a self-hosted backend’s address.
A scanner found something above your threshold. ankra pipeline findings <run-id> --application shop lists it, worst first. Fix it, or accept it deliberately and write down why.
Only the runtime-config Dockerfile does this, on purpose. Set the environment secret and run ankra application env-secrets apply <application-id>.
The zone was not declared for that cluster. Run ankra cluster custom-dns-zones list <cluster> and add it with its credential.

Next steps

Applications

How Ankra analyses a repository, what the setup pull request contains and how deployments work.

Managed services

PostgreSQL, Valkey, NATS, OpenSearch and S3-compatible storage, run on your cluster.

Backups and restore points

Protect the database and the files the app depends on.

Prompt to Production

The same development-then-production discipline for apps you build from a written plan.