Self-hosted

Your server, your data, no invoice from us.

PriceNot runs as one container next to Postgres. The job queue lives in the database, so there is no Redis and no separate worker to keep alive.

Install

Three commands and a few secrets.

You need a Linux host with Docker and Compose v2. A small VM is enough for a typical portfolio.

  1. 1. Clone the repository and copy .env.example to .env.
  2. 2. Generate the secrets and set your public URL.
  3. 3. Start it. The schema is created on first start and kept in sync on every start after.
  4. 4. Sign up. The first account on an install becomes its operator.

Full guide, including backups, updates and replicas: docs/self-hosting.md in the repository.

git clone <repository-url> pricenot
cd pricenot
cp .env.example .env

# in .env
POSTGRES_PASSWORD=$(openssl rand -hex 16)
AUTH_SECRET=$(openssl rand -base64 36)
ENCRYPTION_KEY=$(openssl rand -hex 32)
CRON_SECRET=$(openssl rand -hex 24)
APP_URL=https://pricing.example.com

docker compose up -d --build

Airbnb

The one thing we cannot ship in the box.

Airbnb grants API access only to certified software partners. Each partner gets its own application credentials, tied to its own agreement with Airbnb. PriceNot Cloud cannot lend its application to other installs.

So a self-hosted install has two modes. Out of the box it reads calendars through iCal and gives you rates as CSV. If you hold a certified Airbnb application, set its client ID and secret and you get two-way sync.

The Airbnb adapter is a single file, lib/channels/airbnb.ts, with overridable endpoint URLs. Expect to adjust its field mapping to the API version your certification covers.

CapabilityiCal onlyWith your Airbnb application
Read availability and blocked dates
Recommended rates and min stays for 365 nights
Export rates as CSV
Import listings from your Airbnb account
Push rates and min stays to Airbnb on a schedule

iCal carries dates but no prices, so revenue figures for iCal-only listings are estimated from your calendar rates. Vrbo and Booking.com connect through iCal in both modes.

Configuration

Environment variables

Install-level settings come from the environment. Workspace settings such as the Apify token, sync schedule and notifications are set in the app.

VariableNeededWhat it does
POSTGRES_PASSWORDyesPassword for the bundled Postgres. Compose builds DATABASE_URL from it.
AUTH_SECRETyesSigns sessions. openssl rand -base64 36
ENCRYPTION_KEYyesEncrypts stored tokens with AES-256-GCM. openssl rand -hex 32. Back it up.
APP_URLrecommendedPublic URL of the install, used in emails and OAuth redirects.
CRON_SECREToptionalBearer secret for /api/cron/tick, an external scheduler heartbeat.
AIRBNB_CLIENT_ID, AIRBNB_CLIENT_SECREToptionalYour certified Airbnb application. Enables two-way sync.
APIFY_ACTOR_AIRBNB, _BOOKING, _VRBOoptionalReplace the default scraper actors.
MAIL_WEBHOOK_URLoptionalWhere password-reset and invite mail is POSTed. Without it, links go to the log.
WORKER_DISABLEDoptionalSet to 1 on web-only replicas.

Market data

Each workspace saves its own Apify token in Settings. Apify bills that account. Metered billing at cost plus 10% is a Cloud feature and is not offered on self-hosted installs.

Background jobs

Calendar syncs, repricing, Apify polling and price pushes run in a worker inside the app process. Several replicas can run it at once; jobs are claimed with row locks.

License

AGPL-3.0. Running it for your own business asks nothing of you. If you modify it and let others use your version over a network, you offer them your source. Details.

Price your first listing tonight.

Add a listing with its calendar link and get 365 nights of recommended rates, each with the reasoning attached. Or load the sample portfolio and look around first.

Built with Viski