# Put this online with Vinssi

Vinssi puts your app or website on the internet in Europe. Billing is per app, at a fixed monthly price from €5, excluding VAT. New workspaces receive €9 of credit. That credit is applied to invoices before the card is charged.

You are a coding agent. Choose one path, follow only that path, then give the user the live link.

Run every command below as `vinssi` if that command is installed. If it is not, run the same command as `npx -y vinssi`. The CLI needs Node 20 or newer. The flags below are the ones `vinssi --help` accepts.

## Choose a path

- **A. Vinssi Pages.** A static site or a simple page, published straight from a file or folder. No git repository, no build, and no plan.
- **B. Vinssi App.** Deployed from a GitHub repository. Vinssi builds it and runs a server. Postgres is optional. This path needs a plan.

Inspect the project before you ask. Signs of B include a server, API routes, a database, or a Node backend (Express, Fastify, Hono, or NestJS), or a Next.js or Vite app that should keep running. Signs of A include HTML, CSS, and other files a browser can open, with no server and no database. A built folder of static files, with no server to run, is A. Do not publish a server or API with Pages. Pages only serves GET and HEAD for static files. Do not upload a Next.js or Node source folder to Pages. Pages serves those files as they are, so the app would not run and the source would be public. A Vite or React app that should stay static is path A after you build it and publish the dist folder.

If the project makes one path obvious, say which path you are taking and confirm with one short question. If it does not, ask one short question: static page (A) or an app with a server (B). Do not run a long interview.

Then follow that branch.

## Sign in

Both paths use this sign-in.

A workspace is created the first time the user signs in.

Ask the user to run `vinssi login`. The CLI prints a short code and a link. They open the link, sign in, check that the code matches, and choose Allow. The CLI stores a token in `~/.vinssi/credentials.json`. The code expires after ten minutes. If no browser opens, they paste the printed URL into one. `vinssi login --local` opens a browser on the same machine and expires after five minutes.

The CLI labels each request. It sends `agent` when `VINSSI_CLIENT=agent`, or when `CURSOR_AGENT`, `CLAUDECODE`, `CLAUDE_CODE`, `CODEX_SANDBOX`, `CODEX_THREAD_ID`, `GROK_AGENT`, or `GROK_BOT` is set to something other than empty, `0`, or `false`. That check is a heuristic: a person can set those variables, and an agent can unset them. If you are an agent and none of them are set, run `export VINSSI_CLIENT=agent` before the commands. `VINSSI_CLIENT=human` forces the human label. `VINSSI_CLIENT=mcp` is only for an MCP client. This does not change the price or the commands.

If the address of this page includes `ref`, `utm_source`, `utm_medium`, `utm_campaign`, or `code`, pass those same values to login and omit any flag that was not in the address. This records where the signup came from. It does not change the price.

```sh
npx -y vinssi login --ref <ref> --utm-source <source> --utm-medium <medium> --utm-campaign <campaign> --code <code>
```

This file is static, so it cannot insert those values for you. Read them from the page address.

Do not run login in a loop. If a later command fails with `UNAUTHORIZED`, run `npx -y vinssi login` again the same way and wait.

`npx vinssi whoami` shows who is signed in.

## A. Vinssi Pages

Pages publishes a static file or folder. It does not need a plan. Follow the skill at https://vinssi.ai/skills/vinssi-pages/SKILL.md and the docs at https://vinssi.ai/docs/pages and https://vinssi.ai/docs/cli.

### Publish

Publish only what the user asked to share. If the files look sensitive, such as credentials, customer data, or internal financials, ask first.

```sh
npx vinssi pages publish /absolute/path/to/file.html --json
```

`--json` prints `siteId`, `versionId`, `url`, `bytes`, and `fileCount`.

- A single `.html` file becomes the site's index page.
- A folder is published as-is. It should have `index.html` at its root. Relative asset paths work. Dotfiles and symlinks are skipped.
- To update the same URL later, add `--site <siteId>` and keep the site id from the first publish.
- `--name <n>` sets the display name and the start of the URL. If you omit it, the name comes from the file.

### No project yet

If the user has nothing to publish, write one HTML file and publish that file with the command above. A single `.html` file becomes the site's index page. For example, `hello.html`:

```html
<!doctype html>
<html>
  <body>
    <p>Hello from Vinssi.</p>
  </body>
</html>
```

```sh
npx vinssi pages publish /absolute/path/to/hello.html --json
```

### Built Vite or React app

Skip this when you published an HTML file or a folder that needs no build.

If the project is a Vite or React app that builds to static files, build it from the app directory, then publish the output folder. Do not publish the source folder.

```sh
npm run build
npx vinssi pages publish /absolute/path/to/dist --json
```

The `dist` folder should contain `index.html`. Add `--site <siteId>` when you update the same URL.

### Check and share the link

Before you hand the `url` from the publish output over, check it:

```sh
curl -s -o /dev/null -w "%{http_code}" <url>
```

The result should be 200. A site that was just published can return 404 for about ten seconds. One retry after a short wait is enough.

Then give the user the `url` as a link.

## B. Vinssi App

Follow https://vinssi.ai/docs/quickstart and https://vinssi.ai/docs/cli. Supported apps are Next.js, Vite, and Node backends on Express, Fastify, Hono, or NestJS: https://vinssi.ai/docs/app-types.

The repository must be on GitHub. One repository connects to one project. The app must listen on port 3000 (`PORT` is set to 3000) and runs on Node 22. Pushes to the default branch deploy after setup. Pushes to other branches are ignored.

The CLI cannot manage environment variables, build settings, domains, or billing. Use the dashboard for those: https://vinssi.ai/dashboard.

If the code is not on GitHub yet, ask the user to put it there and install the GitHub App. Do not publish that server with Pages.

### 1. Install the GitHub App

Ask the user to open the dashboard and choose **Install GitHub App**. GitHub asks which repositories the app may read. They grant only the repositories they intend to deploy. Vinssi requests read access to repository contents and metadata.

### 2. Create a project and connect the repository

```sh
vinssi projects create "<name>"
vinssi projects connect-repo <project> <owner/repo>
```

`<project>` is the id, slug, or name. `apps` is another name for `projects`. `projects create` prints JSON. The live address is `https://` plus `environment.platformDomain`, in the form `https://<project-slug>-<4 random characters>.app.vinssi.ai`.

`connect-repo` works only when that repository is visible to the workspace's GitHub App. If it is not, ask the user to install the app on the repository, then run the command again.

The user can instead choose **New app** at https://vinssi.ai/dashboard and connect the repository there. The app can be created first and the repository connected later, but `vinssi deploy` fails until a repository is connected.

### 3. Build settings and variables

Leave build settings on Auto unless the app is a monorepo or does not read `PORT`. For a monorepo, the user sets **Root directory** under **Settings → Build** to the folder that contains the app's `package.json`, for example `apps/web`.

Secrets go under **Settings → Variables**. They apply on the next deployment, not to the app that is already running.

### 4. Pick a plan

Deploys need an active plan. Ask the user to open **Billing** on the project, choose a plan, and complete checkout. Tiny is €5, App is €9, and Pro App is €15 a month, excluding VAT. Checkout asks for a card. The €9 signup credit is taken off the invoice before the card is charged, and creating the app does not spend it. See https://vinssi.ai/docs/plans-and-limits. The CLI cannot do this. `vinssi deploy` fails until the plan is active.

### 5. Postgres, if the app needs it

Skip this step when the app has no database.

Do not set `DATABASE_URL` by hand. After the plan is active:

```sh
vinssi db create <project> --plan lite
vinssi db status <project>
```

`--plan` is `lite`, `starter`, `standard`, or `plus`. A project can have one managed Postgres database. Wait until status is `running`, then deploy. Vinssi injects `DATABASE_URL` into the build and the running app. Lite is ready in seconds when pool capacity is available. A dedicated database takes 5 to 10 minutes. See https://vinssi.ai/docs/databases.

### 6. Deploy

```sh
vinssi deploy <project>
```

The command prints JSON with `deploymentId` and `status`. The user can also press **Deploy** on the project page. A first deployment typically takes two to five minutes.

```sh
vinssi deployments show <deploymentId>
vinssi deployments logs <deploymentId>
```

Wait until status is `healthy`. The dashboard shows that as **Live**. If the status is `preflight_failed`, `build_failed`, or `deploy_failed`, read the log and stop. Common causes are a missing `DATABASE_URL`, an app that does not listen on port 3000, and a monorepo without a root directory. See https://vinssi.ai/docs/troubleshooting.

From then on, every push to the repository's default branch starts a new deployment.

### 7. Give the user the link

Read `environment.platformDomain` from:

```sh
vinssi projects show <project>
```

The URL is `https://<platformDomain>`. Before you hand it over, check it:

```sh
curl -s -o /dev/null -w "%{http_code}" https://<platformDomain>
```

The result should be 200. If the app answers on a different path, check that path. Then give the user the URL as a link.
