Sextant

Every LLM session should start with the context of every previous session -- without manual priming.
py -3.12 -m venv .venv # Windows: any 3.11+ that `py --list` shows (py -3.13, py -3.11); macOS/Linux: python3 -m venv .venv (3.11+)
.venv\Scripts\Activate.ps1 # PowerShell; Git Bash: . .venv/Scripts/activate; macOS/Linux: . .venv/bin/activate. Every NEW window needs this line again before `sextant` is found
pip --version # STOP unless this names .venv: the venv or its activation failed (delete .venv, fix the line above). PowerShell said "running scripts is disabled"? Run Set-ExecutionPolicy -Scope Process RemoteSigned (this window only), then the Activate line again
pip install sextant-ai # the released package; NOT `pip install sextant` (an unrelated project that takes over the `sextant` command; from 0.1.1 on, `sextant-doctor` names the way back)
sextant init # a corpus (plain Markdown) and a state dir
sextant setup # prints the registration line for your client (Claude Code, Codex, opencode): run it, then restart the client
sextant verify # proves the round-trip; your client is connected once the setup line has run
One command per line (no &&: PowerShell 5.1 has none), about ten minutes, Python 3.11 or newer. Have your client installed
first (Claude Code: claude --version prints a version); nothing here installs it. The full walk-through is in
Quickstart below. The package on PyPI is sextant-ai (first release: 0.1.0). For the newest build between
releases, replace that line with pip install git+https://github.com/protechtus/sextant.
In WSL, make the folder and its .venv in the Linux home (for example ~/sextant), not under /mnt/c: on a Windows
drive the install takes about ten times as long and every command starts slowly.
New to GitHub, or stuck on an error? New to GitHub? Start here
explains what Git, Python, pip and PATH are, checks each one with you, and lists the common error messages with their fix.
pip install sextant-ai needs no Git. The pip install git+... form does (git --version; "Cannot find command 'git'"
means it is missing or the window is older than the install). The newest build without Git:
pip install https://github.com/protechtus/sextant/archive/refs/heads/main.zip
Sextant is a self-hosted AI memory and orchestration platform (engine codename: Keel).
MCP -- the Model Context Protocol -- is the plug-in standard AI clients like Claude Code,
Claude Desktop, and Cursor use to reach external tools; Sextant speaks it natively.
It captures session transcripts, curates a structured markdown knowledge corpus, and
coordinates a local multi-agent task queue -- all on your own machine, no cloud
dependencies required.
Who this is for: people who use a terminal- or desktop-based MCP client --
Claude Code, Claude Desktop, Cursor, Codex CLI, opencode, or any other MCP
client -- and are comfortable cloning a repo
and running a few commands. If you only use claude.ai in the browser, Sextant
cannot connect to it yet; the closest partial path is
Sextant Clip, and it still needs the
install below first. Being honest about that now saves you ten minutes.
Already using Claude Code's built-in memory? Keep it if it is working:
it is free, it is editable local markdown with an index, and for one person
in one client on one machine it is often enough. Sextant is for when that
stops being true -- one corpus shared across every MCP client, across
machines (sync), and across repos; full-text plus local semantic search
over all of it; confirmations and anti-memories; a scheduled
re-verification pass that flags what needs rechecking; and importers for
the notes you already have (Obsidian, ChatGPT/Claude exports). Claude
Code's memory is per-project and, per its docs, not shared across
machines; if that has never bothered you, the built-in is the right call.
Quick facts:
- 30 MCP tools -- memory read/write, hybrid search (keyword full-text search fused with local semantic embeddings), temporal knowledge graph, tickets, project state
- Local Brain -- a background task agent running on Ollama (a free local-model runtime; any OpenAI-compatible server works too) with a durable task queue, worker leases, and retries
- Telegram bot for full mobile control; scheduled nightly memory-hygiene jobs
- Session hooks for Claude Code (other clients get the same priming text from
sextant-session-start to paste into their instructions file, and the MCP server tells every client's agent to search memory first): automatic priming at session start (deploy/session_start_hook.json in the repository; a pip install gets the same entry from section 3 of sextant setup -- your identity notes, house rules, the clock and the current project's note injected before your first message, read-only, safe to enable immediately; facts saved with sextant remember come back through search, not through the hook) and summarization at session end (deploy/stop_hook.json, likewise -- activates once ATLAS_AUTONOMOUS=on (or ATLAS_SESSION_AUTONOMOUS=on) reaches the hook process, which does not inherit your shell's variables: put --env ATLAS_SESSION_AUTONOMOUS=on on the hook command, as GETTING-STARTED explains; inert until then, and the summary itself needs a reachable model: Ollama, or a provider key with ATLAS_LOCAL_ONLY=off)
- Thousands of automated tests, run in CI on Linux, macOS, and Windows on every push
What it does
| Problem |
Sextant's answer |
| Each LLM session starts from scratch |
MCP memory server exposes curated facts to any MCP-aware client |
| Transcripts accumulate but are never mined |
A stop hook summarizes each session (once ATLAS_AUTONOMOUS=on); suggest-facts proposes durable memory updates |
| Facts silently go stale |
Temporal knowledge graph + decay tracking; a scheduled re-verification pass re-checks overdue facts and reports what no longer holds |
| Manual tasks pile up across agents |
Brain task queue dispatches work to local model workers, with an optional post-run test check that reopens a ticket on failure |
| System health is invisible |
sextant-doctor self-health CLI, HTMX web dashboard, notification digests |
| Good web-chat threads are trapped in the browser |
Sextant Clip (extensions/sextant-clip): one click sends the claude.ai / ChatGPT / Gemini chat you are reading into your memory -- no more begging the model for a markdown export |
Quickstart
First time installing from GitHub, or something is not working? Read
New to GitHub? Start here first.
It explains what each piece is, checks your computer with you, and lists the common errors with their fix.
Installing with an AI agent? Tell it: "Read https://usesextant.com/agent-install.md and
follow it." The same runbook ships here as docs/AGENT-INSTALL.md: numbered
steps, a verify command after each, and explicit points where the agent must ask you first.
Supported platforms: Windows, Linux, macOS; Python 3.11+. Git is needed only for the clone path below;
pip install sextant-ai needs none.
You also need an MCP client to connect to -- the walkthrough below uses the
Claude Code CLI. If claude --version prints nothing, install Claude Code
first (anthropic.com/claude-code has
the installer for each OS); nothing in this quickstart installs it for you.
Using Codex CLI or opencode instead? sextant setup --client codex and
sextant setup --client opencode print their registration forms, and
GETTING-STARTED section 4 explains what they do and do not get.
Prefer containers? Generate a .env with your keys first (at minimum
ATLAS_MCP_TOKEN; ATLAS_WEB_API_KEY for the dashboard), then
docker compose up -d mcp web -- both steps in docs/HOWTO-docker.md.
Installed with pip install sextant-ai (the block at the top)? You are done installing: skip the clone
blocks below. What is left: sextant init, then sextant setup and run the line it prints for your client,
restart the client, then sextant verify. Use the line sextant setup prints, not the hand-typed
claude mcp add lines further down: those are written for a clone, and setup's line carries the real paths
of your install. Files this README names under deploy/, and constraints.txt, live in the repository, not
in the package: the hook entries come from section 3 of sextant setup, and the docs/ links open on GitHub.
To update later: pip install -U sextant-ai.
The rest of this section installs from a clone (the clone also gives you the docs and the test
suite; sextant verify and sextant setup work in every kind of install). Two other
ways once you know what you want:
pip install git+https://github.com/protechtus/sextant.git installs the current
main without a clone (with the optional layers:
pip install "sextant-ai[telegram,summarizer] @ git+https://github.com/protechtus/sextant.git";
sextant setup and sextant verify then replace every clone-only step), and
pip install sextant-ai installs the released
package from PyPI (0.1.0 is the first release). Do NOT pip install sextant -- that is an unrelated third-party package (a helm-charts CLI), not
this project.
Git Bash / MSYS on Windows? Follow the PowerShell block's LAYOUT, not the
Linux one: a Windows venv has .venv/Scripts/python.exe and no .venv/bin/
(the Linux paths fail, or worse, register an MCP command that only breaks
later inside Claude Code). py -3 -m venv .venv works in Git Bash, forward
slashes are fine, and in claude mcp add use
"$(pwd -W)/.venv/Scripts/python.exe" (the real C:/... path).
Windows (PowerShell):
Before the block: py --list must show a 3.11 or newer, and the venv line
should name it by number (py -3.12 -m venv .venv). A plain python -m venv
on an older interpreter fails before Sextant is involved (an ensurepip ... exit status 101 or similar, plus a half-made .venv to delete before
retrying), and pip install on an older Python stops with
requires a different Python: 3.10.x not in '>=3.11' and installs nothing.
Installing with --no-build-isolation needs setuptools 77 or newer in that
environment first (pip install -U setuptools). A NON-editable install from a
clone (pip install ., uv pip install ./sextant) builds inside the clone and
leaves build/ and src/sextant_ai.egg-info/ there (both gitignored); delete
build/ before reinstalling after a git pull, because setuptools reuses it and
a module removed upstream would still be installed. The editable install below
(-e) leaves only the egg-info.
git clone https://github.com/protechtus/sextant.git; cd sextant
py -3 -m venv .venv # needs Python 3.11+ (check: py --list; install: winget install Python.Python.3.12 or python.org)
.\.venv\Scripts\python.exe -m pip install -U pip setuptools
.\.venv\Scripts\python.exe -m pip install -e ".[dev,telegram,summarizer]"
# Smoke it (venv-qualified so nothing depends on PATH or activation):
.\.venv\Scripts\sextant.exe --version
.\.venv\Scripts\sextant.exe commands
# Scaffold your memory corpus (safe to re-run; lands in ~\.memory and ~\.atlas):
.\.venv\Scripts\sextant-init.exe
The block above is safe to copy and paste whole. PowerShell runs each line as it
arrives and waits at the last one: press Enter once more to run it.
Optional, and NOT part of the paste: to keep your memory somewhere other than your
user folder, run these BEFORE sextant-init. A $env: line lasts only until the
window closes, so save the same four values with setx too (for example
setx ATLAS_WORKSPACE_ROOT C:\sextant-data), or the next window, the hooks and your
client will look in the default place and find nothing.
$env:ATLAS_WORKSPACE_ROOT = "C:\sextant-data" # re-roots the three below
$env:ATLAS_MEMORY_ROOT = "$env:ATLAS_WORKSPACE_ROOT\.memory"
$env:ATLAS_STATE_DIR = "$env:ATLAS_WORKSPACE_ROOT\.atlas"
$env:ATLAS_PROJECTS_ROOT = "$env:ATLAS_WORKSPACE_ROOT\projects"
Optional, for contributors: the full test suite (thousands of tests, about 7 to 10
minutes; long rows of dots are progress, not a hang; the telegram and summarizer tests
skip unless those extras are installed). You do not need it to use Sextant.
.\.venv\Scripts\python.exe -m pytest tests -q
Linux / macOS:
Before the block: you need a Python 3.11+ as python3, plus git. Fedora and
other RPM distributions: sudo dnf install git python3 is the whole
prerequisite (the venv module and pip come with it). Stock macOS does not
have one -- the first git or python3 run pops the Xcode Command Line Tools
dialog (let it finish; its Python is too old anyway), then install from
python.org or brew install python@3.12.
Ubuntu 24.04 ships Python 3.12, but creating a venv needs
sudo apt install python3.12-venv first -- if you skip it, the venv error
message names the exact package; delete the half-made .venv it leaves behind
before retrying with the package installed (the no-sudo fallback in
GETTING-STARTED, venv --without-pip, works on top of it as is).