Skip to main content

Aigon Viewer Server

A lightweight FastAPI markdown viewer for local files.

Installation

Prerequisite: Install uv

curl -LsSf https://astral.sh/uv/install.sh | sh

then install aigon-viewer from PyPi

uv tool install aigon-viewer

or directly from GitHub

uv tool install git+https://github.com/aigonai/aigon-viewer.git

Updating

From PyPi

uv tool install --upgrade aigon-viewer

directly from Github

uv tool install --force git+https://github.com/aigonai/aigon-viewer.git

Running the Server

Using aigonviewer

Full CLI with Process Management

The aigonviewer command provides full process management with background execution, status checking, and cleanup.

Available Commands:

aigonviewer launch [OPTIONS]    # Launch server in background
aigonviewer status              # Check running servers
aigonviewer kill [OPTIONS]      # Stop running servers

Launch Options:

aigonviewer [launch] [DIRECTORY] [OPTIONS]

Arguments:
  DIRECTORY             Directory to serve (default: current directory)

Options:
  --port, -p PORT       Port to run on (default: 4444)
  --host HOST           Host to bind to (default: 127.0.0.1)
  --foreground, -fg     Run in foreground (don't daemonize)
  --no-browser          Don't open browser automatically
  --remote, -r          Enable remote sources (default: enabled)
  --no-remote           Disable remote sources (local files only)

Examples:

# Launch server (simplified syntax)
aigonviewer ~/notes

# Launch on custom port
aigonviewer ~/notes --port 8080

# Launch from current directory
aigonviewer

# Run in foreground (blocks until Ctrl+C)
aigonviewer ~/notes --foreground

# Explicit launch command (also works)
aigonviewer launch ~/notes --port 8080

# Check running servers
aigonviewer status

# Stop all servers
aigonviewer kill

# Stop server on specific port
aigonviewer kill --port 4444

Using aigonviewer_base

Simple Mode

For simple use cases where you don't need process management, use aigonviewer_base which runs directly in the foreground:

# Basic usage
aigonviewer_base ~/notes

# Custom port and host
aigonviewer_base ~/notes --port 8080 --host 0.0.0.0

# Don't open browser
aigonviewer_base ~/notes --no-browser

Options:

aigonviewer_base [PATH] [OPTIONS]

Arguments:
  PATH                   Directory to serve (default: current directory)

Options:
  --version              Show version and exit
  --port PORT            Port to run on (default: 3030)
  --host HOST            Host to bind to (default: 127.0.0.1)
  --remote               Enable remote sources
  --no-browser           Don't automatically open browser

Configuration

The _config.toml file is optional. If you create it in your markdown directory, you can organize files into groups and get a dropdown menu to focus on specific file groups.

Example _config.toml:

[work]
todo-aigon
agenda
project-notes

[personal]
shopping-list
brain-context-dump

Note: File names are listed without the .md extension.

Metadata

Release files for aigon-viewer 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aigon-viewer 0.10
File Size Uploaded Provenance
aigon_viewer-0.10.tar.gz 64.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aigon-viewer 0.10
File Interpreter ABI Platform
aigon_viewer-0.10-py3-none-any.whl Python 3 none any Details

Total release size: 99.2 kB

Release files / aigon_viewer-0.10.tar.gz

Download URL aigon_viewer-0.10.tar.gz
Size 64.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d264a4313e60aaeb1376bd312f0e41feca27aeea1ef7004d9beb249dcc133475
BLAKE2b-256 checksum
How to use checksums
f94fd207f8d6631be797db4d314fb8e2ad837d32cfd180779fce8b03941c0fd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / aigon_viewer-0.10-py3-none-any.whl

Download URL aigon_viewer-0.10-py3-none-any.whl
Size 35.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09f50995d6b0edaaafca8ec9495ad78a18045eada550ba81129061f0528925fd
BLAKE2b-256 checksum
How to use checksums
400751595b71b6ed3446e8cb52f69c6f1dd52a4eaf813e219af61a9b0d2e2ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Security for aigon-viewer 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aigon_viewer-0.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page