InstallationΒΆ
Topos is designed to be accessible as either a standalone binary or by building from source.
Hint
Prerequisites:
Python 3.11+ is required for core evaluation.
Rust toolchain (Cargo) is required if building from source.
If you use the Binary installation, the embedded Python/Rust environments are managed for you.
The quickest way to get up and running with the Topos CLI and MCP server.
curl -fsSL https://docs.krv.ai/topos/install.sh | sh
The latest release binary is downloaded to
~/.local/bin.An embedded Python environment is configured.
You will be prompted to optionally install GitNexus (requires Node.js 18+).
Note
Why GitNexus? GitNexus enables Coupling Analysis (the COMPOSABLE lattice target). Without it, Topos performs structural analysis (AST-based) but cannot evaluate inter-module dependencies.
Verify the Installation
topos --version
topos mcp # prints the FastMCP banner and waits on stdin; Ctrl-C to exit
If you want to contribute, use the latest development version, or integrate Topos into your Python pipelines:
git clone https://github.com/Krv-Labs/topos.git
cd topos
pip install -e .
Running Tests
To verify the Python and Rust components:
# Run Python tests
pytest
# Run Rust unit tests
cargo test
For coupling analysis of dependency graphs, use the built-in generator:
topos depgraph generate
Removing the binary installation is simple and clean:
topos uninstall
Next StepsΒΆ
Once installed, proceed to the Quickstart or learn about Concepts to understand the Diamond Lattice evaluation model.