New AMD EPYC dedicated servers in Panama City, from $64.99 a month See servers

Pay with

Self-hosted app·Privacy and networking

2FAuth hosting
in Panama City.

2FAuth hosting in Panama City: Docker Compose behind Caddy, sizing, backups and cost on the $12.99 Standard VPS, paid in crypto.

Runs here
  • Laravel
  • PHP
  • SQLite
  • Docker

PTY1·Panama City

In stock

Recommended for this use case

Cloud VPS · Small appsStandard · 4 vCPU · 4 GB RAM$12.99/mo160 GB NVMe · 15 TB transfer · 1 Gbps
  • 1 Gbps port15 TB of transfer a monthIncluded
  • Debian 13preinstalled with the orderIncluded
  • DDoS protection, 1 IPv4VNC console and full rootIncluded
Per month$12.99/mo

Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less

Deploy VPS Standard
  • No KYC
  • Crypto only
  • Panama jurisdiction
  • 4 vCPU, 4 GB RAM
  • 160 GB NVMe local storage
  • 15 TB transfer on a 1 Gbps port
  • DDoS protection included
  • Panamanian law

01/07

Short answer.

Yes. 2FAuth is a small Laravel application shipped as a single Docker image, and it runs comfortably on our Standard Cloud VPS in PTY1, Panama City: 4 vCPU, 4 GB of RAM, 160 GB of NVMe and 15 TB of monthly transfer for $12.99 a month. If 2FAuth will be the only service on the machine, the $6.99 Starter is enough, and we would rather say so than sell you idle cores. Standard is our recommendation because a 2FA vault rarely stays alone for long; it ends up sharing the box with the reverse proxy, a backup job and often a password manager. The decision that matters most is not the plan. It is where you keep a second copy of APP_KEY: with database encryption switched on, that key is the only thing that can decrypt your TOTP secrets, and 2FAuth's own documentation states there is no workaround if it is lost.

02/07

What 2FAuth is,
and who runs it.

2FAuth is an open-source (AGPL-3.0) web application, maintained by the developer who publishes as Bubka, that stores the secrets behind your two-factor accounts and generates the one-time codes in a browser, on a desktop or a phone. The backend is Laravel, and the codes are computed on the server by the OTPHP library according to RFC 4226 (HOTP) and RFC 6238 (TOTP). That detail has a consequence people tend to miss: your codes are only as correct as the server's clock. The app imports from Google Authenticator migration QR codes, Aegis, 2FAS and, since v6.0, Bitwarden exports, and it exports to its own JSON format. You can sign in with a password, a WebAuthn security key, OpenID Connect or GitHub, or hand authentication to a proxy such as Authelia.

Version 7.0 (June 2026) added account sharing, built so that a recipient can generate codes without ever seeing the secret, together with a log of who generated a code and when. Version 8.0 (1 July 2026) followed a Laravel upgrade, invalidated existing personal access tokens, and fixed a user-impersonation flaw in auth-proxy mode as well as two server-side request forgery paths. When we checked on 4 November 2026, the latest release was v8.0.2, published on 2 September 2026. An outdated image of a security tool is a liability, so plan for updates from the first day.

It is run mostly by people leaving a phone authenticator who want codes on their workstation and a backup they control, and by small teams sharing access to registrar, bank or supplier accounts. The trade-off deserves a plain statement. A second factor on an internet-facing server, opened in the same browser as your password manager, is closer to one factor than two, because whoever holds that browser session holds both. Use 2FAuth for convenience and recovery, keep hardware keys for the accounts you cannot afford to lose, and log in to 2FAuth itself with WebAuthn rather than a password alone.

Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.

03/07

Requirements and sizing.

The documentation describes 2FAuth as a very light application with few concurrent connections and recommends SQLite for a single user or a small group. We agree: SQLite turns the backup into one file, and a database server would only add a service to patch. The official image runs nginx and PHP-FPM under supervisord as an unprivileged user (UID and GID 1000), listens on port 8000 inside the container and keeps its data under /2fauth. PHP's memory limit in the image is 256 MB, raised temporarily to 512 MB while it decodes an uploaded QR code, which is the only moment the app asks for real memory. A bare-metal install requires PHP 8.4 or later, which Debian 13 provides, but we still prefer the image because it fixes the PHP extensions and web server at what the developer tests.

The network side is short. Port 8000 should never be published to the internet; the host exposes 80 and 443 to a reverse proxy that obtains the certificate, and 22 for SSH. HTTPS is mandatory in practice: WebAuthn and camera-based QR scanning only work in a secure context, and APP_URL must match the public HTTPS address, otherwise WebAuthn and SSO redirects fail.

ResourceWhat 2FAuth usesStarter ($6.99)Standard ($12.99)
vCPULight; spikes only on QR decoding24
RAMPHP limit 256 MB, 512 MB during QR decoding2 GB4 GB
DiskImage plus one SQLite file80 GB NVMe160 GB NVMe
Monthly transferNegligible10 TB15 TB
Port speedIrrelevant at this scale1 Gbps1 Gbps

Transfer is not a concern. As a theoretical figure, if every session moved 2 MB and you opened 2FAuth a hundred times a day, the month would total about 6 GB, or 0.04 % of the 15 TB included with Standard. The full plan list is on our Cloud VPS page.

04/07

How to deploy 2FAuth
with Docker on our VPS.

  1. 01

    1. Order the server and point a hostname at it

    Order a Standard VPS with Debian 13 from this deploy link. While it provisions, create an A record such as 2fa.example.org pointing at the server's IPv4 address; Caddy needs that record to resolve before it can obtain a certificate. Once you can log in over SSH, run timedatectl and check that it reports a synchronised clock, because every code 2FAuth shows depends on it.

  2. 02

    2. Install Docker from Docker's repository

    Debian 13 is on Docker's list of supported releases. Use the upstream packages rather than docker.io so the Compose plugin matches the engine. One warning from Docker's own documentation applies directly: ports published by containers bypass ufw and firewalld rules, which is why the compose file below publishes only Caddy's 80 and 443 and nothing else.

    bash
    apt update && apt install -y ca-certificates curl sqlite3 restic install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc chmod a+r /etc/apt/keyrings/docker.asc tee /etc/apt/sources.list.d/docker.sources <<EOF Types: deb URIs: https://download.docker.com/linux/debian Suites: trixie Components: stable Signed-By: /etc/apt/keyrings/docker.asc EOF apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
  3. 03

    3. Write three files

    The data directory must belong to UID 1000, or the container cannot write its database. Generate the application key with the image itself and paste the output, which starts with base64:, into settings.env.

    bash
    mkdir -p /opt/2fauth/data && cd /opt/2fauth chown 1000:1000 data && chmod 700 data docker run --rm --entrypoint /usr/bin/php 2fauth/2fauth:8.0.2 artisan key:generate --show

    /opt/2fauth/compose.yaml:

    yaml
    services: 2fauth: image: 2fauth/2fauth:8.0.2 container_name: 2fauth env_file: settings.env volumes: - ./data:/2fauth networks: [web] restart: unless-stopped caddy: image: caddy:2 container_name: caddy ports: - "80:80" - "443:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile:ro - caddy_data:/data networks: [web] restart: unless-stopped networks: web: ipam: config: - subnet: 172.30.0.0/24 volumes: caddy_data:

    /opt/2fauth/settings.env (then chmod 600 settings.env):

    ini
    APP_NAME=2FAuth APP_ENV=production APP_KEY=base64:paste-the-generated-key-here APP_URL=https://2fa.example.org DB_CONNECTION=sqlite DB_DATABASE=/srv/database/database.sqlite TRUSTED_PROXIES=172.30.0.0/24 SESSION_SECURE_COOKIE=true MAIL_MAILER=smtp MAIL_HOST=smtp.example.net MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME=2fa@example.org MAIL_PASSWORD="your-smtp-password" MAIL_FROM_ADDRESS=2fa@example.org MAIL_FROM_NAME=2FAuth

    /opt/2fauth/Caddyfile:

    example
    2fa.example.org { reverse_proxy 2fauth:8000 }

    The fixed subnet exists so that TRUSTED_PROXIES can name it; without it, 2FAuth treats Caddy as an untrusted hop and generates http:// links behind your HTTPS site. We pin 8.0.2 instead of latest, which follows the master branch. Since v8.0.0 the image also carries moving 8 and 8.0 tags if you want patch releases to arrive on their own, but we pin and upgrade deliberately, because v6.0 and v8.0 each shipped a change that required action from the administrator.

  4. 04

    4. Start it and close the door

    Run docker compose up -d, check docker compose logs 2fauth, then register your account immediately: on a fresh instance the registration form is open to anyone who finds the hostname. Then turn off new registrations in the admin panel, enable Protect sensitive data under Admin › App setup so that secrets and otpauth URIs are encrypted in the database, and enrol a security key. If you are the only user, the stronger design keeps 2FAuth off the public internet entirely and reaches it over a WireGuard tunnel (our guide to VPN servers); you then give up Caddy's automatic HTTP-challenge certificate and need a DNS challenge or an internal CA instead.

  5. 05

    Backups

    Three things must survive the loss of the VPS: the SQLite file, settings.env (it holds APP_KEY), and your knowledge of the restic password. Copy the database with SQLite's online backup rather than cp, which can catch a half-written page, and push it to an S3-compatible object storage bucket with restic, which encrypts on the client so the bucket on its own is useless to whoever reads it. Keep another copy of APP_KEY offline, in your password manager or on paper, and never only beside the database it decrypts. The app's JSON export is a good second format for migration, but it contains the secrets in clear, so treat that file like the seeds themselves.

    bash
    mkdir -p /root/backup sqlite3 /opt/2fauth/data/database.sqlite ".backup '/root/backup/2fauth.sqlite'" cp /opt/2fauth/settings.env /root/backup/ restic -r s3:https://<your-endpoint>/<bucket>/2fauth backup /root/backup

    Run it daily from cron with AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and RESTIC_PASSWORD_FILE set. Updating follows the documented Docker procedure: read the release notes, take a backup, change the tag, then docker compose pull && docker compose up -d.

05/07

Cost.

ItemPer month
Cloud VPS Standard (4 vCPU, 4 GB, 160 GB NVMe, 15 TB transfer, 1 Gbps)$12.99
Optional daily VPS backups (+20 %)$2.60
Optional object storage, 250 GB bucket, for restic$1.99
Total with both options (theoretical sum)$17.58

Yearly billing takes roughly 25 % off the VPS, which works out at about $9.75 a month as a theoretical figure. The daily VPS backups and an off-server restic copy cover different failures, the first a broken upgrade, the second the loss of the server or the account, so for a vault of second factors we would keep both. Outbound port 25 is open on every VPS, though for password-reset mail an authenticated relay on port 587 will deliver more reliably than a fresh IP with no sending history. All prices are on our pricing page.

Payment is in crypto only (AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT or XMR), with prices and balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; the unused paid part of a top-up is refundable within 14 days. As an example, a $100 top-up becomes a $110 balance, which in theory covers about eight and a half months of Standard on its own. Signing up is no-KYC: an email address is enough.

06/07

What hosting in Panama changes,
and what it does not.

Jurisdiction decides who can compel us to hand over a disk, not whether your instance gets compromised, and for a 2FA vault the second risk is the larger one. With that caveat, the legal position is concrete. Article 29 of Panama's Constitution allows private communications to be intercepted only on the order of a judicial authority, and private documents to be examined only on the order of a competent authority, for specific purposes. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Panama. US requests therefore go through the mutual legal assistance treaty in force between the two countries since 6 September 1995, which means through Panamanian authorities; it does not mean the server sits beyond any reach. Our offshore hosting page covers this in more detail.

One technical point undercuts any legal comfort: settings.env sits on the same disk as the database, so an image of that disk contains both the encrypted secrets and the key that opens them. Database encryption protects you against a leaked database file, not against someone who holds the whole server.

If a team in the EU uses your instance, the accounts and logs it stores are personal data. Panama has no EU adequacy decision, so the transfer needs appropriate safeguards such as the 2021 standard contractual clauses. On the Panamanian side, personal data falls under Law 81 of 2019, implemented by Executive Decree 285 of 2021.

07/07

Acceptable use
and your obligations.

The VPS is yours to administer. Patching Debian, Docker and the 2FAuth image is your job, we do not manage software inside customer servers, and nothing is backed up unless you add the daily backup option or run your own. 2FAuth is a normal, lawful tool and we are glad to host it. What we do not accept is using it as infrastructure for account takeover: storing the seeds of accounts you have no right to access, harvesting TOTP secrets through phishing pages, or reselling hijacked accounts. We forward complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful.

If you open registration to other people, you become the custodian of their second factors. Tell them how the instance is backed up and who can read the server, keep the image current, and keep audit logs long enough to answer questions; 2FAuth retains authentication and OTP logs for 365 days by default. The full rules are in our acceptable use policy.

Catalogue·Options

Every configuration, every option, every price.

Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.

Six cloud VPS plans in PTY1 · transfer included on every plan

PlanvCPUMemoryNVMeTransferPortPriceDeploy
StarterStaging, dev22 GB80 GB10 TB / month1 Gbps$6.99/moDeploy Starter
ProProduction68 GB320 GB20 TB / month1 Gbps$22.99/moDeploy Pro
PowerHeavy workloads1216 GB640 GB40 TB / month2 Gbps$42.99/moDeploy Power
UltraDatabases1632 GB1000 GB60 TB / month2 Gbps$65.99/moDeploy Ultra
TitanDense hosts3264 GB2000 GB100 TB / month5 Gbps$119.99/moDeploy Titan

Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.

Every plan

  • AMD EPYCon every host
  • Local NVMenot network storage
  • DDoS protectionalways on
  • 1 IPv4 addressmore at $2 each
  • VNC consoleand full root access

Options and upgrades · prices per month

OptionWhat you getPrice
Daily backupsSnapshots of the whole VPS+20%
Extra IPv4Per address, up to 64+$2.00
Priority supportPer VPS+$10.00
Longer billingPay quarterly or yearly−10% / −25%
Dedicated serverWhen a VPS is no longer enough: 10 Gbps, unmetered trafficfrom $64.99

FAQ

Questions
people ask first.

Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.

Still unsure?

Tickets go straight to the people who run PTY1.

Contact support
Does the 2FAuth browser extension work with a self-hosted instance?

Yes. The extension authenticates with a personal access token created in your 2FAuth settings. If you upgrade from 7.x to 8.x, regenerate the token, because v8.0.0 changed how tokens are generated and old ones stop working. v8.0.2 also fixed a bug where the extension needed a trailing slash on the instance URL.

Can I put 2FAuth behind Authelia or another authentication proxy?

Yes, with AUTHENTICATION_GUARD=reverse-proxy-guard. Since v8.0 the proxy must be listed in TRUSTED_PROXIES, and port 8000 must stay unreachable from outside, because in this mode 2FAuth trusts the identity headers it receives and skips its own login checks.

Why are my 2FAuth codes rejected?

Usually because of the clock. 2FAuth computes TOTP codes on the server, so a server clock that has drifted by more than the 30-second window produces wrong codes on every device. Check timedatectl on the VPS before you suspect the app.

Can I mount the object storage bucket as a disk for the 2FAuth data?

No. Our object storage consists of S3-compatible buckets reached with an endpoint and access keys, not a block volume, so there is nothing to format or attach. Use restic, rclone or aws-cli to send backups there, and never place the live SQLite file on an rclone mount.

Who can see my 2FA secrets on your VPS?

Inside the VM, anyone with root, which should only be you. Below it, whoever operates the host can in principle read a virtual disk, and on a VPS that is us; a dedicated server removes the hypervisor layer, although whoever has physical access to the machine still matters. Database encryption keeps the secrets unreadable in a copied database file, but the key lives on the same disk, so the practical protection is limiting who can reach the server: SSH keys only, no published port 8000, and ideally access over a VPN.

Sources

Every fact on this page, with its source

Checked 4 Nov 2026 unless noted.

Your server in Panama,
ready when you are.

Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.