Skip to main content
Frontier can be installed on macOS, Windows, Linux, and any platform that supports Docker or Kubernetes. Choose the installation method that best fits your environment.

Prerequisites

Before installing Frontier, ensure you have:
  • PostgreSQL 13 or above - For storing Frontier data
  • SpiceDB - For authorization decisions (Installation guide)
You can run PostgreSQL and SpiceDB locally using Docker Compose. See the Docker section below.

Installation Methods

macOS

Install via Homebrew

Linux

Install via package manager

Windows

Install via Scoop

Docker

Run with Docker

Kubernetes

Deploy with Helm

Binary

Download pre-compiled binary

macOS

Frontier is available via Homebrew.
1

Install Frontier

brew install raystack/tap/frontier
2

Verify installation

frontier --help
3

Upgrade to latest version

brew upgrade frontier
You can also download binaries directly from the releases page.

Linux

Frontier is available as downloadable .deb and .rpm packages.
# Download the .deb package
wget https://github.com/raystack/frontier/releases/latest/download/frontier_linux_amd64.deb

# Install with dpkg
sudo dpkg -i frontier_linux_amd64.deb
1

Verify installation

frontier --help

Windows

Frontier is available via Scoop.
1

Add Frontier bucket

scoop bucket add frontier https://github.com/raystack/scoop-bucket.git
2

Install Frontier

scoop install frontier
3

Verify installation

frontier --help
4

Upgrade to latest version

scoop update frontier

Binary (Cross-platform)

Download pre-compiled binaries for any platform from the releases page.
1

Download binary

Visit the releases page and download the appropriate version for your platform.
2

Extract and install

Extract the binary and move it to a location in your PATH. For Unix-like systems:
# Extract the archive
tar -xzf frontier_*.tar.gz

# Move to /usr/local/bin
sudo mv frontier /usr/local/bin/

# Make executable
sudo chmod +x /usr/local/bin/frontier
3

Verify installation

frontier --help

Docker

Run Frontier using Docker containers.

Pull Docker Image

docker pull raystack/frontier:latest

Using Docker Compose

The easiest way to run Frontier with all dependencies:
1

Clone the repository

git clone https://github.com/raystack/frontier.git
cd frontier
2

Start services with Docker Compose

docker-compose up
This starts PostgreSQL, SpiceDB, and Frontier with default configurations.
3

Access Frontier

Frontier will be available at http://localhost:8080

Run Docker Container Manually

Run Frontier container with custom configuration:
docker run -p 8080:8080 \
  -e FRONTIER_DB_DRIVER=postgres \
  -e FRONTIER_DB_URL=postgres://frontier:@localhost:5432/frontier?sslmode=disable \
  -e FRONTIER_SPICEDB_HOST=spicedb.localhost:50051 \
  -e FRONTIER_SPICEDB_PRE_SHARED_KEY=randomkey \
  raystack/frontier:latest server start
Ensure PostgreSQL and SpiceDB are running and accessible before starting Frontier.

Kubernetes (Helm)

Deploy Frontier to Kubernetes using Helm charts.

Prerequisites

Installation Steps

1

Add Raystack Helm repository

helm repo add raystack https://raystack.github.io/charts/
helm repo update
2

Create values file

Create a values.yaml file with your configuration:
values.yaml
image:
  tag: "latest"

config:
  db:
    driver: postgres
    url: postgres://frontier:@postgres:5432/frontier?sslmode=disable
  spicedb:
    host: spicedb
    port: 50051
    pre_shared_key: "your-secret-key"

ingress:
  enabled: true
  hosts:
    - frontier.example.com
See the full values guide for all options.
3

Install Frontier

helm install frontier raystack/frontier -f values.yaml
4

Verify deployment

kubectl get pods -l app=frontier
View the complete Helm chart documentation for advanced configuration options.

Building from Source

Build Frontier from source code.

Prerequisites

  • Go 1.21 or later
  • Make
  • Git

Build Steps

1

Clone repository

git clone [email protected]:raystack/frontier.git
cd frontier
2

Build native executable

make
This creates the frontier binary in the root directory.
3

Initialize configuration

./frontier config init
Customize the generated config.yaml with your settings.
4

Run migrations

./frontier server migrate
5

Start server

./frontier server start

Build Docker Image

1

Build image

docker build . -t frontier:custom
2

Run container

docker run -p 8080:8080 frontier:custom server start

Verify Installation

After installing Frontier, verify it’s working correctly:
1

Check version

frontier --help
You should see help output with available commands.
2

View command reference

frontier reference
This prints the complete CLI command reference.

Next Steps

Now that Frontier is installed:

Quick Start

Set up your first Frontier instance

Configuration

Configure Frontier server settings

CLI Reference

Explore CLI commands

Admin Portal

Access the web interface
Having issues? Check the GitHub issues or ask for help in discussions.

Build docs developers (and LLMs) love