---
title: "Gokapi expiring file sharing, self-hosted · CloudSat"
description: "Host Gokapi on a CloudSat VPS: share files through links that expire by downloads or days, with encrypted uploads, S3 storage and SSO, on your own server."
url: https://cloudsat.io/apps/deploy-gokapi
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[File hosting](https://cloudsat.io/apps/category/file-sharing-and-sync)

# Gokapi on a VPS

Gokapi gives every file a share link that expires once a download limit or day limit is reached. Only registered users upload, with optional encryption and S3 storage.

[Deploy Gokapi](https://dash.cloudsat.io/console/deploy?image=app%3Agokapi&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About Gokapi

Gokapi is an AGPL-3.0 file sharing server written in Go, built as a lightweight alternative to Firefox Send without public uploads. Each share expires after a download count or a number of days and is then deleted, and identical files are stored only once.

Hosting it yourself keeps shared files on your own disk or your own S3-compatible bucket instead of a third-party service. The Go binary is light, so plan the server around storage and pick a region near the people downloading.

After deploy, Gokapi listens on port 53842 and opens with a setup wizard at `/setup`.

## What you get with Gokapi

- Links that expire by download count or days
- End-to-end encrypted uploads
- Local storage or S3-compatible object storage
- File requests so outsiders can upload to you
- REST API, OpenID Connect sign-in and user roles

## Gokapi use cases

- Sending client deliverables that should not live forever
- Collecting files from people without accounts
- Internal sharing with SSO through Keycloak or Authelia

## After you deploy Gokapi

1. When the server reports **Running**, open `http://<server IP>:53842/setup` and follow the wizard.
2. Choose authentication there: a local admin login or OpenID Connect through your identity provider.
3. Decide on storage: keep files on the server's NVMe disk or point Gokapi at an S3-compatible bucket.
4. Serve it on a domain with HTTPS so download links look trustworthy and travel encrypted.

## Gokapi ports

Open these in your firewall if you use one: `53842/tcp Gokapi`.

## Gokapi FAQ

### Can anyone upload files to my Gokapi server?

No. Uploads are limited to registered users, while recipients only download. To receive files from outsiders, create a file request and send them its link.

### What happens when a share expires?

Once the download limit or the expiry date is reached, Gokapi removes the file automatically, so the link stops working and the space is freed.

**Disclaimer.** The Gokapi project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like Gokapi

[All apps in File hosting](https://cloudsat.io/apps/category/file-sharing-and-sync)

- [FilePizza](https://cloudsat.io/apps/deploy-filepizza): Self-hosted FilePizza sends files straight from one browser to another over WebRTC. Your server hosts the app while the files travel peer to peer.
- [Zipline](https://cloudsat.io/apps/deploy-zipline): File hosting Zipline is a self-hosted file upload server for ShareX and other clients: share screenshots and files on your own domain, with a URL shortener and a dashboard.
- [File Browser](https://cloudsat.io/apps/deploy-file-browser): File hosting File Browser puts a folder of your server in the browser, with uploads, previews, editing, share links and separate user accounts.
- [Chibisafe](https://cloudsat.io/apps/deploy-chibisafe): File hosting Chibisafe is your own file and screenshot host: upload in the browser, through ShareX or the API, and share direct links from your domain.
- [bewCloud](https://cloudsat.io/apps/deploy-bewcloud): File hosting bewCloud is a lightweight personal cloud built with Deno: files, notes, photos, news, expenses, calendar and contacts in one self-hosted web app.
- [BookLore](https://cloudsat.io/apps/deploy-booklore): File hosting BookLore organizes your ebook, PDF and comic collection in one web app with smart shelves, metadata fetching, an in-browser reader and Kobo and OPDS sync.
