Skip to content

Run NoteDiscovery with Python and Access via Localtonet

Install NoteDiscovery with git, pip and python run.py, verify it on localhost:8000, then reach it securely from anywhere using a Localtonet HTTP tunnel.

In this article 10 sections
Self-Hosting · NoteDiscovery · Localtonet · 2026

Prepare a local notes workspace, verify its boundaries, and understand what must be secured before remote access

NoteDiscovery stores notes as Markdown files and provides a browser-based workspace for editing and organizing them. This guide explains the Python installation workflow, local verification, backup planning, and how our HTTP tunnels fit into a remote-access deployment. However, the available project evidence does not establish a complete, release-specific authentication configuration, Python requirement, storage configuration, or listener configuration. Public deployment is therefore blocked in this guide until those details are verified, rather than presenting an incomplete setup as safe to publish.

🔒 Authentication before public access 🌐 Same-host tunneling does not require LAN exposure ⚡ Local checks, persistence tests, and recoverable backups

Why self-host NoteDiscovery?

NoteDiscovery is an open-source knowledge base whose project website describes Markdown storage, wikilinks, graph navigation, public sharing, optional password protection, and AI-assistant integration. Keeping the underlying notes in ordinary folders makes them accessible to other Markdown tools and makes file-based migration possible. It does not remove the need to understand configuration, access control, attachments, and recovery.

A browser interface adds convenience: you can edit a note without opening a local editor on the server. Remote access extends that convenience to another computer or a phone. With Localtonet, a client running on a device establishes an outbound connection to one of our relay servers. An HTTP tunnel then makes a reachable local web service available at a public HTTPS address without inbound router port forwarding or a public IP address.

Illustration of a laptop running a notes application on port 8000 and a smartphone accessing it through a tunnel
Remote access is the intended architecture, not proof that the illustrated application has been authenticated or safely configured.

Storage location and data access are separate questions. When a remote browser reads a note, its contents travel to that browser. A public share link deliberately makes selected content available outside the host. An AI client that can read notes may process them elsewhere according to its own configuration. Local Markdown storage therefore does not mean note contents never leave the machine.

📂 Portable note files Markdown files can be inspected independently of the web interface. Attachments and supporting configuration still need their own backup coverage.
🔐 Optional application authentication The project advertises password protection. Its exact configuration and route coverage must be verified for the installed revision before exposure.
🌐 Intentional sharing exceptions The project describes public note links that work with authentication enabled. Treat these as deliberate exceptions to private access.
🤖 Separate AI access boundary MCP integration can allow AI tools to read and edit notes. Do not assume browser authentication also protects that integration.

Prerequisites and the limits of this workflow

Public deployment is not authorized by these instructions

The supplied project extracts are incomplete. They do not establish the authentication settings, Python compatibility, Python storage path, listener behavior, or relevant reverse-proxy requirements for one reviewed revision. Do not start a public tunnel to this application on the strength of this guide. Until those prerequisites are resolved, use only a disposable evaluation environment with no sensitive notes and controlled network access.

This is an evidence limitation, not a claim that NoteDiscovery lacks documentation or security features. The repository lists README.md, config.yaml, pyproject.toml, requirements.txt, run.py, SECURITY.md, and documentation directories. Their complete release-specific contents were not supplied. The available startup extract ends before the server-launch implementation, so it cannot establish which interfaces the application binds to.

The earlier claim that this tutorial was prepared against v0.33.0 was too strong. The supplied v0.33.0 release notes establish that release's editor conflict prompt and note/media completion changes. They do not establish a tested deployment, a current release recommendation, or compatible Python dependencies. The commands below describe a moving-default-branch checkout and record its commit, rather than pretending to install that release.

RequirementWhat is establishedWhat remains a gate
Python runtimeThe project has a Python startup script and dependency declarations.Confirm the supported Python version against the same revision's declarations and dependencies. Do not rely on the previous unverified Python 3.8+ minimum.
AuthenticationThe project advertises optional password protection.Verify exact settings, secret handling, and protection of private read/write routes.
Persistent storageNotes are described as Markdown files in folders.Establish the Python data directory, attachment paths, and other required state.
ListenerThe supplied startup extract selects a port.Establish the bind address from complete startup code and the running listener.
Proxy behaviorAn HTTP application can be a tunnel target.Verify any required origin, forwarded-header, redirect, or cookie configuration.

For a Python evaluation, have Git, a compatible Python interpreter, pip, and virtual-environment support available. Check your installed tools with git --version, python --version or python3 --version, and python -m pip --version. A version command identifies the installed interpreter; it does not prove application compatibility.

Allow internet access for cloning and installing dependencies. The supplied startup source also checks frontend vendor assets and can download them when missing. Use a non-administrative account and an isolated environment. Merely leaving Localtonet stopped does not guarantee that an application listening on every interface is inaccessible from the LAN.

Prepare the Python installation

Terminal illustration showing repository cloning, dependency installation, and Python application startup
The workflow has four actions: clone, create an isolated environment, install dependencies, and start the application. The illustration summarizes commands, not a validated release-specific deployment.

The following is a conditional local evaluation workflow, not a complete production recipe. Review the full files in the checkout before installing or executing its code. The official NoteDiscovery repository is the primary project location; when comparing documentation, keep it aligned with the commit you actually use.

1. Clone and record the checkout

git clone https://github.com/gamosoft/NoteDiscovery.git
cd NoteDiscovery
git rev-parse HEAD
git status --short

Save the full commit identifier with your deployment notes. Cloning without a tag follows the repository's default branch at that time. It does not pin v0.33.0, and the next person running the command may receive different code. Recording the commit improves traceability but is not a substitute for reviewing its requirements.

Before continuing, inspect that checkout's README, dependency declarations, configuration, complete startup script, and security guidance. Resolve Python compatibility first. Resolve storage and listener settings before writing real notes. Resolve authentication and proxy behavior before considering remote deployment. No setting names for those unresolved areas are invented here.

2. Create an isolated Python environment

After selecting a supported interpreter, create a virtual environment. These are standard Python commands.

# Linux and macOS
python3 -m venv venv
source venv/bin/activate
python --version
python -m pip --version
# Windows Command Prompt
python -m venv venv
venv\Scripts\activate
python --version
python -m pip --version

For PowerShell, activation normally uses .\venv\Scripts\Activate.ps1. If organizational policy blocks script activation, use the environment's interpreter directly rather than weakening policy globally. For example, .\venv\Scripts\python.exe -m pip --version checks pip without activation.

A virtual environment avoids mixing application dependencies with the operating system's Python packages. On systems using PEP 668, do not bypass an externally managed environment error with a global installation override.

3. Install the declared dependencies

python -m pip install -r requirements.txt
python -m pip check

Using python -m pip ties the installer to the selected interpreter. A successful dependency check helps detect package conflicts, but does not establish that every application feature works. If resolution fails, preserve the error and investigate the selected Python version and dependency requirements instead of arbitrarily downgrading packages.

4. Start only in the controlled evaluation environment

python run.py

Run from the repository root. In the supplied startup-script extract, configuration lookup uses a relative config.yaml path. Starting elsewhere can therefore change what configuration is found. Recheck this behavior in your recorded revision.

The visible source chooses the port from PORT, then server.port in config.yaml, then a fallback of 8000. It also calls scripts/vendor_assets.py --check and attempts an asset download if necessary. A failed download produces a warning but is not fatal at that stage. These observations apply to the supplied main-branch extract, not automatically to v0.33.0 or every future checkout.

Where your reviewed revision retains that port behavior, these examples select port 8001:

# Linux and macOS
PORT=8001 python run.py
# Windows PowerShell
$env:PORT = "8001"
python run.py

Changing a port does not change a listener's bind address or add authentication. Inspect the running listener with your operating system's socket tools before assuming the application is loopback-only.

Verify the local application and persistence

Illustration of the NoteDiscovery note list and editor in a browser at localhost port 8000
A rendered interface is one checkpoint. Authentication, file persistence, and recovery require separate tests.

Use an HTTP GET, then inspect the browser

With the process running, request its root page using the port actually selected:

curl --max-time 10 -i http://127.0.0.1:8000/

This makes a GET request without supplying application credentials. On Windows, use curl.exe if your shell maps curl to another command. No dedicated health route is established by the supplied evidence, so none is assumed here.

A response proves that an HTTP server answered, not that authentication or the entire application works. A login page or redirect may be expected when protection is configured. An unauthorized response may be appropriate for a protected resource. A successful status can also represent a public application shell whose private data requests are checked separately. Read the response and inspect the application behavior rather than treating a particular status as universal success.

Use a browser to inspect the page, its console, and failed network requests. Do not use curl -I as the primary application test: it sends HEAD, which a server may reject even when GET works correctly.

Establish the storage location before importing notes

The Python storage directory is not established by the supplied evidence. A container's internal data path does not establish the native Python path. Do not guess a directory and treat it as a complete backup target.

Once the reviewed configuration and storage implementation identify the expected paths, validate them with disposable data:

  1. Create a note with a unique marker and save it.
  2. Locate the corresponding Markdown file under the configured storage root and compare its contents.
  3. Add a harmless attachment and locate its stored file as well.
  4. Reload the browser, stop the application, and restart it from the same working directory and configuration.
  5. Confirm that the note and attachment still open and record their absolute storage paths.

If you cannot locate the written files or explain which configuration selected those paths, stop before importing valuable notes. This test establishes persistence for the exercised features; it does not prove that unrelated metadata or plugin state is covered.

Security is a prerequisite, not a post-deployment task

An HTTP tunnel provides reachability. HTTPS protects the browser-facing transport; it does not decide who is allowed to read or edit your notes. A difficult-to-guess public address is not an authorization policy.

Keep the public tunnel stopped

We cannot supply verified authentication settings from the incomplete project extracts. Public deployment remains blocked. A login screenshot, an advertised password feature, or a successful local page load is not sufficient evidence to remove this gate.

What a verified authentication setup must establish

A release-specific configuration must identify how protection is enabled, how credentials or credential hashes are supplied, what session configuration is required, and which routes are intentionally public. Any configuration precedence between files and environment variables must also be understood. Secrets belong outside public repositories, screenshots, and shared diagnostic output.

Keep MCP disabled unless its access controls have been independently verified. The previous article described an enablement variable, but the complete MCP configuration and authentication implementation are not present in the supplied evidence. Do not infer that omitting a variable proves the feature is disabled. Confirm the effective configuration and route behavior in the reviewed revision.

Local unauthenticated-access checks

After applying verified authentication configuration, test with a fresh private browser window, not a tab carrying an existing session:

  • Confirm that private note contents and the note list are unavailable before login.
  • Attempt a direct private note URL and attachment URL captured during an authenticated disposable-data test.
  • Inspect the actual private API requests used by the browser and repeat representative requests without cookies or authorization headers.
  • Confirm that unauthenticated users cannot create, modify, upload, or delete content.
  • Log in, verify expected access, log out, and retest the private resources.

Use disposable notes for write-denial testing. Do not invent API route names or rely only on the interface hiding buttons. Record actual responses, keeping credentials and note bodies out of shared logs.

Public-share exceptions

NoteDiscovery's website states that public note sharing works with authentication enabled. Such links are intentional exceptions: a person holding the link may be able to view that shared content without your normal login.

For any release you intend to publish, test an explicitly shared disposable note separately from private notes. Check whether embedded attachments are included, whether navigation exposes unrelated content, and whether revoking the share removes access as intended. Do not assume expiry dates, download limits, or password protection for NoteDiscovery shares unless the project's own documentation establishes them.

How Localtonet fits after the security gate is satisfied

Conceptual application request path from a remote browser through a Localtonet public endpoint to a local notes service
Application requests travel from the browser through the relay to the local service. Separately, the Localtonet client establishes the outbound relay connection; the diagram should not be read as inbound router port forwarding.

Our client must be able to reach the application's local address and port. For the simplest architecture, run both processes on the same host and use a verified loopback listener. In that case, 127.0.0.1 in the tunnel target means the Localtonet client device. There is no reason to expose NoteDiscovery to the LAN just to support this same-host arrangement.

If the client runs on another device, its loopback address points to that other device, not to the notes server. That arrangement requires a reachable application address, a listener that accepts connections at that address, and network policy allowing the connection. Test from the client device itself. Containers also have their own network namespaces, so their loopback addresses need separate consideration.

The exact current HTTP documentation sequence was not included in the supplied evidence. The following is our supported general connection workflow, not a claim that the current HTTP setup page has been independently rechecked. The public-start action remains conditional and blocked for the unresolved NoteDiscovery configuration described above. Consult the official HTTP tunnel instructions for current screens and configuration order once the application prerequisites are established.

1

Install and run the client on the appropriate device

Use a device that can reach the verified application listener. A same-host client is the simplest arrangement for a loopback-only service.

2

Authenticate or select that device

Use its device-specific AuthToken. Keep the token private and ensure the selected device is the one that can reach the intended application.

3

Select an available relay

Choose a server from the current dashboard. Availability can vary, so do not copy a hardcoded region or server code from an old tutorial.

4

Prepare the HTTP configuration

The target must match the reachable local IP and actual application port. HTTP Process Types include Random Sub Domain, Custom Sub Domain, and Custom Domain where supported. Check current DNS instructions before using a custom domain.

5

Start only after every security prerequisite passes

Creating a tunnel does not start it. The Start action makes the configured service publicly reachable. Do not perform this action for the unresolved deployment in this guide.

Conditional public verification

After an independently verified configuration permits deployment, immediately repeat the unauthenticated tests at the public HTTPS address in a fresh private window. Private content must remain private; intended public shares should expose only their intended scope. If a test fails, stop the tunnel before investigating.

Then authenticate and test reading, saving, attachments, reloads, and logout. Inspect redirects, browser asset requests, and authentication cookies when behavior differs from localhost. Exact NoteDiscovery proxy settings remain unverified here, so do not add guessed trusted-host or forwarded-header options.

A request from the same machine to the public URL still tests the public endpoint under normal routing. It does not normally take a special local shortcut. Testing additionally from a phone with Wi-Fi disabled provides independent external-network verification and helps reveal local DNS or network-specific differences.

Docker and Compose alternatives

The repository includes a Dockerfile, docker-compose.yml, and docker-compose.ghcr.yml. A container workflow can package the runtime differently, but it does not resolve unknown authentication, persistence, or proxy behavior by itself. Complete container deployment is outside this Python-focused scope.

When using containers, verify the exact image version, persistent mounts, published host address, and published port. A Localtonet client on the host targets a reachable host-published port, not automatically the container's internal loopback address. Avoid a moving latest image when you need controlled updates and a reproducible rollback.

Daily operation, backups, and controlled updates

Startup and shutdown

For a manually launched evaluation, stop the application with Ctrl+C. To restart, return to the same project directory, activate the same environment, restore any required environment configuration, and run python run.py. Do not assume a new terminal retains your earlier activation or environment variables.

For a future approved public deployment, start the application and verify its local behavior before starting the tunnel. During maintenance, stop the tunnel first. Stop or delete tunnels that are no longer needed. A public endpoint is available only while the selected client is connected and the tunnel is running; the underlying application must also remain available.

A process manager can provide unattended operation, but no verified NoteDiscovery service definition is available here. Any service configuration must preserve the interpreter, working directory, environment, file permissions, and storage locations that passed manual testing.

Define the backup scope

A backup must include all data needed to recover the workspace, not only files ending in .md. Once paths are verified, inventory notes, uploaded images and other attachments, drawings, relevant application configuration, and any additional state required by enabled features. Record the code commit, Python version, and dependency environment as recovery metadata.

Protect configuration backups because they may contain secrets. Store backup copies separately from the live data, with appropriate access restrictions and retention. Stop writes while creating a consistent backup unless the selected backup method and application behavior support a reliable live snapshot.

Synchronization is not automatically a recoverable backup. A sync tool can quickly replicate accidental deletion, corruption, or unwanted edits. Recoverability requires retained historical versions or snapshots and a demonstrated restore process. An editor conflict prompt helps with competing edits; it is not a backup system.

Perform a restore test

  1. Create a backup of a disposable workspace containing multiple notes and at least one attachment.
  2. Restore it to a separate directory or isolated machine, never over the only live copy.
  3. Recreate the recorded runtime and code revision, and apply the verified configuration for the restored paths.
  4. Start without a public tunnel and confirm notes, attachments, links, and authentication behavior.
  5. Record the result, missing files, and recovery steps before trusting the backup for real data.

A successful file-copy command does not prove restoration works. Check the actual application and compare restored content with the expected test data. Keep the production workspace untouched until the test is complete.

Update deliberately and preserve a rollback

No release-specific upgrade or migration procedure is established by the supplied evidence. Avoid treating git pull followed by dependency installation as a complete maintenance strategy. That changes code in place and may make it difficult to reproduce the previous environment.

Instead, record the current commit and configuration, take a tested backup, and review the intended release's compatibility and migration guidance. Prepare a separate checkout and virtual environment for the candidate version. Test it with a copy of the data and repeat persistence, authentication, sharing, and proxy checks before switching.

Retain the previous code, environment, and pre-update data snapshot. If the new version changes stored data, reverting code alone may not be safe. A rollback may require restoring the matching data and configuration snapshot, with explicit consideration of edits made after the update. Keep the tunnel stopped throughout an uncertain migration or rollback.

Browser and PWA access

The project advertises Progressive Web App installation on desktop and mobile. A home-screen icon is a convenience, not an availability guarantee or access-control mechanism. It still depends on the host and tunnel, and it does not change the privacy implications of delivering note contents to a browser. Do not assume particular offline caching behavior without checking the selected revision.

Troubleshoot by layer, not by assumption

SymptomPossible explanationsUseful next check
pip reports an externally managed environmentThe system interpreter is being used instead of an isolated environment.Check the interpreter and pip paths, then use the virtual environment. Do not force a global install.
Dependency installation failsUnsupported Python, incompatible requirements, package availability, or network failure.Read the exact resolver or build error and compare it with the selected revision's declarations.
Blank or unstyled pageMissing vendor assets, failed asset requests, browser errors, cache issues, or proxy-related paths.Inspect the console and network panel, compare local and public requests, and check startup warnings.
No response at port 8000The process exited, another port was selected, the target is wrong, or the listener is unavailable.Read startup output and inspect listening sockets before changing configuration.
Public URL fails while localhost worksTunnel state, client connectivity, wrong target, application rejection, redirects, authentication, or proxy behavior.Test the target from the client device and inspect the failing public response.
Login page appears but notes leak without loginPrivate routes are not covered by the effective access-control configuration.Stop exposure immediately and verify server-side protection of the actual data routes.
Notes disappear after restartDifferent working directory, storage configuration, permissions, or nonpersistent location.Compare effective configuration and absolute file paths before creating more data.
Editor asks to reload or overwriteA supported conflict-detection feature has noticed an on-disk change.Compare the disk and editor versions before choosing. v0.33.0 release notes describe this behavior.

When startup explicitly reports missing frontend libraries, the supplied script suggests python scripts/vendor_assets.py. Use that remedy only after confirming the corresponding script exists and applies to your checkout. Missing assets are one possible cause of a broken interface, not a universal diagnosis.

For the same-host architecture, do not insert a mandatory LAN reachability test. Test the exact target from the Localtonet client device. If the local request succeeds but the public request fails, compare status, redirect location, requested asset URL, and application logs. A working local homepage does not prove every authenticated API or upload request will behave correctly through a public hostname.

Sanitize diagnostic evidence

Remove Localtonet AuthTokens, application passwords, session cookies, authorization headers, public-share secrets, note contents, and sensitive paths before posting logs or browser captures. A network export can contain credentials even when its screenshot looks harmless.

Frequently asked questions

How do I install NoteDiscovery without Docker?

The Python workflow is to clone the repository, create a virtual environment using a compatible interpreter, install requirements, and run python run.py. This guide records a moving-branch checkout rather than claiming a tested release. The supplied evidence does not establish a release-specific Python minimum or complete deployment configuration, so evaluation must remain controlled and public deployment is blocked.

Which port does NoteDiscovery use?

The supplied main-branch startup extract checks PORT, then server.port in config.yaml, then falls back to 8000. Confirm this in your selected revision. Port selection does not establish the listener address or authentication policy.

Do I need router port forwarding or LAN exposure?

Localtonet does not require inbound router port forwarding. With the client and application on the same host, the target can use a verified loopback listener without LAN exposure. A client on another device requires a reachable application address and listener.

Is this guide sufficient to publish my notes safely?

No. Exact authentication configuration and other release-specific prerequisites are not established by the available evidence. Keep the tunnel stopped until those details are verified and local unauthenticated-access tests pass. HTTPS reachability alone is not authorization.

Why might the web interface fail to load?

Missing frontend vendor files are one possibility, especially if startup logs show a download warning. Also inspect failed asset requests, JavaScript errors, authentication responses, cache behavior, and proxy-related URLs. Compare the local and public requests before assigning a cause.

Where are notes stored, and is synchronization enough for backup?

The project describes Markdown storage, but the Python path is not established here. Verify the configured directory and locate test notes and attachments on disk. Back up all required content and configuration with retained recovery points. Synchronization alone can propagate deletion or corruption; prove recovery with a separate restore test.

Can Localtonet also reach a container installation?

Yes, when the client can reach the appropriate HTTP address and port. For a host-based client, that commonly means a container's published host port. Verify the actual mapping and network namespace, and apply the same authentication and persistence prerequisites before exposure.

Prepare remote access with Localtonet

Our HTTP tunnels can connect a verified local web service to a public HTTPS address. For NoteDiscovery, first resolve the release-specific configuration gaps and prove authentication, persistence, and recovery. Keep the tunnel stopped until that work is complete.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support