> ## Documentation Index
> Fetch the complete documentation index at: https://docs.foks.pub/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> FOKS is an open-source, federated protocol for end-to-end encrypted Git hosting and secret storage.

## What is FOKS?

**FOKS** (Federated Open Key Service) is an open-source system for sharing and managing cryptographic keys across devices and teams. The simplest summary: *Keybase, but with federation, SSO, and YubiKey support, and fully open-source.*

FOKS provides:

* **End-to-end encrypted Git repositories** — source code and commit history are encrypted on your machine before reaching any server
* **Encrypted key-value store** — store secrets, configs, and files that sync across devices and teams
* **Federated team management** — teams can span multiple servers; role-based access with automatic key rotation on membership changes
* **Multi-device support** — provision new devices, YubiKeys, and manage them all in one place
* **Single Sign-On** — OAuth2-based SSO for enterprise deployments

Everything is encrypted client-side. The server never sees your data or filenames in plaintext.

Users are identified as `user@host` pairs — like email addresses — so a user on `foks.app` and a user on `corp.example.com` can share the same team.

## Key Properties

<CardGroup cols={2}>
  <Card title="End-to-end encrypted" icon="lock">
    Data is encrypted on your machine before it is sent to any server. Servers store only ciphertext.
  </Card>

  <Card title="Open source" icon="code">
    All code is released under the MIT License. Run your own server or use the hosted service at foks.app.
  </Card>

  <Card title="Federated" icon="network-wired">
    Like email, FOKS consists of many independently-operated servers speaking the same protocol. Teams can span servers.
  </Card>

  <Card title="Post-quantum cryptography" icon="shield">
    Combines Curve25519 with ML-KEM algorithms to provide resistance against quantum attacks.
  </Card>
</CardGroup>

## Get Started

<CardGroup cols={2}>
  <Card title="Install FOKS" icon="download" href="/installation">
    Install the `foks` CLI on macOS, Linux, or Windows.
  </Card>

  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Sign up, create an encrypted Git repo, and push your first commit.
  </Card>

  <Card title="CLI Reference" icon="terminal" href="/cli/overview">
    Full reference for all `foks` commands.
  </Card>

  <Card title="Self-hosting" icon="server" href="/server/overview">
    Run your own FOKS server for your team or organization.
  </Card>
</CardGroup>

## How It Works

FOKS uses a hierarchical key structure. Each device has its own key pair. User keys are derived from device keys. Team keys are derived from user keys. This chain means that when a device or user is revoked, all keys further up the tree rotate automatically.

Merkle trees prevent servers from tampering with or rolling back data. Every operation is auditable through signature chains.

See [Architecture](/concepts/architecture) for a deeper explanation.
