Skip to main content

Topos Node

Topos Logo

Topos Node is your personal AI node that runs on your own device. It helps you process and organize your data locally, then connect to Topos and 3rd-party services with explicit user-controlled access.

Why Topos Node

  • Runs locally on your machine
  • Keeps your node data under your control
  • Supports source ingestion, local processing, and controlled sharing flows
  • Installs as a single command-line tool via uv

How Topos Works (in product terms)

Topos Node has two core parts that work together to give you control:

Your Apps/Data -> Topos Database -> Topos Engine -> Safe Responses
Part What it is What it does for you
🗂️ Topos Database Your private memory layer on your device Stores your records, keeps your history, and makes your personal context searchable
🧠 Topos Engine Your decision and processing layer Understands requests, runs AI workflows, and returns the right answer based on your permissions

🛡️ Cognitive Firewall (user control first)

The Topos Engine acts as a Cognitive Firewall: it helps ensure only the right information is used and shared.

Cognitive Firewall principle What that means in practice
🔒 Permission-aware Requests are evaluated against your access rules before data is returned
🎯 Precision over data dumps The engine is designed to return only what is needed, not your entire history
👁️ Transparent behavior Boundaries and limits are explicit so sharing stays understandable and controllable

🤖 Core ML tools in the Engine

Topos Engine uses both local and model-hub paths so users can choose flexibility and control:

ML tool Role in the workflow User-facing benefit
🦙 Ollama Local model execution path Keep more processing on-device and reduce external dependency
🤗 Hugging Face Model and backend integration path Access broad model capabilities for enrichment and analysis tasks

Why this split matters

  • 🏠 Your data lives in one durable place (Database)
  • ⚙️ Intelligence and policy decisions happen in a separate runtime (Engine)
  • 🛡️ The Cognitive Firewall model helps protect context while still enabling useful AI actions
  • 🔄 You can evolve processing/model strategy without changing your core stored memory

Shared runtime contracts

The shared/ package in this repo is part of the node runtime contract. It contains common schema and filtering definitions used by both API and engine paths.

Quick Start

1) Install

uv tool install topos-node

2) Configure

Topos Node requires a TOPOS_KEY.

topos-node --set-topos-key "<YOUR_TOPOS_KEY>"

This stores your key in:

  • ~/.topos/.env

Optional:

  • TOPOS_CONTROL_PLANE_URL if you need a non-default endpoint

3) Run

topos-node --host 0.0.0.0 --port 8676

4) Verify

curl http://localhost:8676/health

Common Commands

# Start node
topos-node

# Save your TOPOS_KEY for future runs
topos-node --set-topos-key "<YOUR_TOPOS_KEY>"

# Discover available local databases and exit
topos-node --discover

# Use custom database path
topos-node --db-path /path/to/topos.sqlite

# Bind custom host and port
topos-node --host 127.0.0.1 --port 9100

Upgrade or Uninstall

# Upgrade to latest
uv tool upgrade topos-node

# Remove
uv tool uninstall topos-node

Security and Privacy Notes

  • Do not commit topos/.env or any real credentials.
  • Keep your TOPOS_KEY private.
  • Review env.example for available configuration options.

Developing Locally

uv sync --extra engine
just run

Engine memory (local dev)

ML models are cached inside the Engine with LRU eviction. For lighter local runs (especially inside Cursor's integrated terminal), see Engine memory management.

# Default: ENGINE_MAX_RESIDENT_MODELS=3; pipeline flush is automatic
# Override only if needed, e.g. lower RAM: export ENGINE_MAX_RESIDENT_MODELS=2
export PRIVACY_FILTER_DEVICE=cpu

Run tests:

pip install -e ".[dev,engine]"
pytest tests -q

The default lane is hermetic — temp databases only. Tests that read your own ~/.topos database or drive a running node are deselected unless you ask for them by marker; see docs/testing/TEST_LANES.md.

Plugins

Topos Node supports optional plugins: separate Python packages installed alongside topos-node that register handlers, connectors, or other runtime hooks. The core node does not hardcode plugin names — discovery is entirely via setuptools entry points.

Contract: topos.extensions

Rule Detail
Entry-point group topos.extensions
Entry-point target A callable, e.g. my_plugin:register
When it runs At process startup, before the server accepts traffic (topos/extensions.py)
Failure mode A broken plugin is logged and skipped; the node keeps running
Dependencies Your plugin declares topos-node (or topos-node[local]) in its own pyproject.toml

Minimal plugin

pyproject.toml:

[project]
name = "my-topos-plugin"
dependencies = ["topos-node[local]"]

[project.entry-points."topos.extensions"]
my_plugin = "my_topos_plugin:register"

my_topos_plugin/__init__.py:

def register() -> None:
    from my_topos_plugin.handlers import example  # noqa: F401 — registers @handles

my_topos_plugin/handlers/example.py:

from typing import Any, Dict, Optional
from topos.core.handlers.registry import handles

@handles("my_message_type")
async def handle_my_message(message: Dict[str, Any]) -> Optional[Dict[str, Any]]:
    return {"status": "ok", "payload": {"received": message.get("type")}}

Install and run

pip install topos-node my-topos-plugin
topos-node

Handlers registered in register() are available to the control-plane WebSocket and local API paths that dispatch through topos.core.handlers.

Starter template

Fork dialoguesai/topos-plugin-template for a working package with tests and CI. It registers a sample plugin_template_ping handler you can copy and rename.

Guidelines

  • Use unique message type names (prefix with your project) to avoid colliding with core handlers.
  • Keep plugins in separate repositories — do not add proprietary logic to this repo.
  • Message types your plugin handles do not need to appear in the public engine protocol snapshot unless the hosted control plane will send them to all nodes.

Contributing

See CONTRIBUTING.md for:

  • public vs private test lanes
  • where deployment scripts now live
  • contribution scope and security expectations

License

Apache License 2.0. See LICENSE.

Release files for topos-node 1.3.53

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

Source distribution (sdist)

Source distribution for topos-node 1.3.53
File Size Uploaded
topos_node-1.3.53.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for topos-node 1.3.53
File Interpreter ABI Platform
topos_node-1.3.53-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 MB

Release files / topos_node-1.3.53.tar.gz

Download URL topos_node-1.3.53.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
07ac5deb03b761b552da0d2cc02d4c5fb4a3880d477393bc17f52fc897c99e27
BLAKE2b-256 checksum
How to use checksums
1e0cb2ac93479f2134b1e8e684f05bb747db435cd5a8b80453393d768265192f
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 7, 2026.

Transparency log

Release files / topos_node-1.3.53-py3-none-any.whl

Download URL topos_node-1.3.53-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1dfb09a06c440a31777aa70eddfcb137cca857ec49d3772735b0777c8d5f544d
BLAKE2b-256 checksum
How to use checksums
b6f83efdc1f18bd3ef7e79a9534620d37ac73e08d0e5fd13e3a9fd3eec2ed800
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

1.4.1

2 release files

1.4.0

2 release files

1.3.57

2 release files

1.3.56

2 release files

1.3.55

2 release files

This release

1.3.53 This release

2 release files

1.3.39

2 release files

1.3.38

2 release files

1.3.37

2 release files

1.3.36

2 release files

1.3.35

2 release files

1.3.34

2 release files

1.3.33

2 release files

1.3.32

2 release files

1.3.24

2 release files

1.3.23

2 release files

1.3.22

2 release files

1.3.21

2 release files

1.3.20

2 release files

1.3.19

2 release files

1.3.18

2 release files

1.3.17

2 release files

1.3.16

2 release files

1.3.15

2 release files

1.3.14

2 release files

1.3.13

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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