Start With Installation
CortexFS is a Linux filesystem ABI. Install it first, confirm /ctx is usable,
then move on to agents, tools, and extension points.
Install
The one-command installer supports current Arch-, Debian/Ubuntu-, Fedora/RHEL-, and openSUSE/SLES-family Linux distributions booted with systemd when their enabled repositories supply the required packages:
curl -fsSL https://raw.githubusercontent.com/LIghtJUNction/cortexfs/main/scripts/install.sh | sh
It checks the distribution, systemd, FUSE, bubblewrap 0.10+, and Rust MSRV
before building the downloaded source snapshot locally with Cargo.lock.
Every persistent mutation has an exact typed confirmation. Re-running is
idempotent: program and unit files are updated while storage, secrets, provider
configuration, existing environment files, and /ctx user state are
preserved. A genuine first install chooses a language from the system locale
and offers optional OpenAI, Codex, Anthropic, or Google onboarding through the
existing provider commands.
Arch users may alternatively install cortexfs-git from the AUR, enable
cortexfs.service, and run ctx doctor.
ctx doctor should report whether the mount, base directories, default model
alias, and agent runtime state are available. ctx --help lists the
subcommands supported by the current build, including ctx agent, ctx file,
ctx send, ctx exec, and socket conveniences. The default live test does not
depend on an external cloud API.
Meet /ctx
After installation, inspect the root:
ctx status
ctx ls
You should see a small stable set of entries:
status
bin/
model/
agent/
tool/
home/
shared/
That is the core CortexFS tradeoff: the root keeps only stable object classes. Provider, workflow, database, MCP registry, and skill registry details do not become new top-level ABI entries.
Set Shell Environment
Most commands infer these defaults automatically. Configure them explicitly when needed:
eval "$(ctx env)"
This sets CTX_ROOT, CTX_HOME, CTX_PATH, and adds /ctx/bin to the normal
shell PATH. CTX_PATH is only for CortexFS tool lookup; it is not used to
find models or agents.
First Object Checks
ctx ls model
ctx ls agent
ctx ls tool
ctx which model debug/echo
ctx which tool fs.read
ctx file type tool/fs.read
ctx file tool/fs.read
model/debug/echo is the smallest debug model. It echoes input and is useful
for confirming that local installation and ABI paths work.
Start An Agent Terminal
ctx agent start uses systemd-run --user to start ctxterm -> tsh inside a
bwrap sandbox. By default, it mounts the caller's current directory read-write
at /workspace. If the current directory contains .git, it is additionally
over-mounted read-only at /workspace/.git. The agent starts with pwd set to
/workspace, while HOME is the sandbox's own /home/agent:
ctx agent start coder --session default
ctx agent watch coder --session default
ctx agent attach coder --session default
watch only observes terminal output; attach joins the terminal and writes
stdin. Declare additional mounts explicitly:
ctx agent start coder --session docs \
--mount "$PWD" /workspace rw \
--mount "$PWD/docs" /docs ro \
--cwd /workspace
tsh is not a host shell. It only looks up CortexFS tools through CTX_PATH,
such as /ctx/tool and /ctx/home/<uid>/tool. bash, tmux, and zellij
must also be visible as tools before they can run.
Next Step
Continue with Daily Usage: ctx, agent.sh, shared
directories, and session history.