Installation
SharkAuth is distributed as a single, zero-dependency binary. It embeds the database engine (SQLite) and the admin dashboard, so you don't need to manage external services or separate frontend deployments.
Direct Binary Download (Recommended)
Download the pre-compiled binary for your platform from the GitHub Releases page.
Linux / macOS
Windows
- Download the
shark_windows_x86_64.zipfrom the releases page. - Extract the
shark.exeto a folder of your choice. - Add that folder to your system
PATH. - Open a terminal and run
shark version.
Docker
We provide a lightweight Docker image based on Alpine Linux.
-p 8080:8080: Maps the main API and dashboard port.-v $(pwd)/data:/data: Persists the SQLite database and install ID outside the container.
Build from Source
If you have Go 1.22+ and Node.js 20+ installed, you can build SharkAuth yourself.
First Boot
On the very first run, SharkAuth will:
- Create the
data/directory. - Initialize the SQLite database and run 29 migrations.
- Generate a 32-byte
server.secret. - Generate a default admin API key.
Watch the console output! SharkAuth prints your admin key and a one-time bootstrap URL once.
Configuration
SharkAuth works out of the box with zero config. Runtime configuration is DB-backed and mutated via the dashboard or CLI (shark admin config dump). Bootstrap values (port, secret, base URL) can be set via environment variables.
See CLI admin commands for details.