The fileglancer command-line tool starts a local Fileglancer server for browsing and managing files on your machine.
Install Fileglancer as a standalone command-line tool. This creates an isolated environment for it and puts the fileglancer command on your PATH, the same way JupyterLab is installed.
With uv (0.3 or newer):
uv tool install fileglancerOr with pipx:
pipx install fileglancerIf you already manage Python environments yourself, you can instead pip install fileglancer into a virtual environment, or pixi add fileglancer to a Pixi project, and run fileglancer from inside that environment.
uv tool upgrade fileglancer # or: pipx upgrade fileglanceruvx runs a tool from a disposable cached environment. If that environment was interrupted while being built, or is shared between machines or uv versions, later runs fail with Package fileglancer does not provide any executables. Running uv cache clean fileglancer clears the bad cache, but a persistent uv tool install avoids the problem entirely.
Once installed, run:
fileglancer startThis starts the server on http://127.0.0.1:8000, opens your browser, and serves your home directory by default.
The first fileglancer start writes a commented default config to ~/.config/fileglancer/config.yaml (or $XDG_CONFIG_HOME/fileglancer/config.yaml when that variable is set). Every start logs the path of the config it read. Edit that file and restart the server to apply changes.
To read a different file, pass --config PATH or set the FGC_CONFIG_FILE environment variable.
Settings are loaded from multiple sources, in priority order (highest first):
- CLI flags (e.g.,
--port 9000) - Environment variables — prefixed with
FGC_(case-insensitive) .envfile — next to the config file- The config file
Every setting is optional. The personal server runs as the user who started it, and the login page asks for a password: set simple_auth_password in the config to pin one, or read the password the server prints at each start. The browser that fileglancer start opens is logged in automatically.
# Password for the login page
simple_auth_password: change-me
# Directories to expose in the file browser
file_share_mounts:
- "~/"
- /data/shared
# Logging level (ERROR, WARNING, INFO, DEBUG, TRACE)
log_level: INFOA full template with all available options is available at docs/config.yaml.template in the source repository.
Any setting can also be set via an environment variable with the FGC_ prefix:
export FGC_LOG_LEVEL=DEBUG
export FGC_FILE_SHARE_MOUNTS='["~/data", "/shared/images"]'
export FGC_DB_URL='sqlite:///my-fileglancer.db'For nested settings (like cluster configuration), use __ as a delimiter:
export FGC_CLUSTER__EXECUTOR=lsf
export FGC_CLUSTER__QUEUE=normalYou can also place environment variables in a .env file next to the config file:
FGC_LOG_LEVEL=DEBUG
FGC_SIMPLE_AUTH_PASSWORD=change-me
Start the Fileglancer server. Run fileglancer start --help to see all available options.
fileglancer start [OPTIONS]| Option | Default | Description |
|---|---|---|
--host |
127.0.0.1 |
Host address to bind to |
--port |
8000 |
Port to bind to |
-f / --file-share-mounts |
— | File share path to mount (repeatable) |
--no-browser |
off | Don't open a browser automatically |
--config |
~/.config/fileglancer/config.yaml |
Config file to read |
--auto-port |
true |
Find an available port if the specified one is in use |
--reload |
off | Enable auto-reload on code changes |
--workers |
— | Number of worker processes |
--ssl-keyfile |
— | Path to SSL private key file |
--ssl-certfile |
— | Path to SSL certificate file |
--ssl-ca-certs |
— | Path to CA certificates file |
--ssl-ciphers |
TLSv3 |
SSL ciphers to use |
--timeout-keep-alive |
5 |
Keep-alive timeout in seconds |
Start with defaults (serves home directory on port 8000):
fileglancer startServe specific directories:
fileglancer start -f ~/projects -f /data/sharedStart on a specific port without opening a browser:
fileglancer start --port 9000 --no-browserStart with HTTPS:
fileglancer start --ssl-keyfile /path/to/key.pem --ssl-certfile /path/to/cert.pemBy default, Fileglancer stores its database at:
~/.local/share/fileglancer/fileglancer.db
This can be overridden with the db_url setting in the config file or the FGC_DB_URL environment variable. The same directory holds the key that signs session cookies, so a browser stays logged in across server restarts.