0. Check the prerequisites
Use a supported macOS release with Homebrew, or a supported Debian or Ubuntu release. Run the installer as your normal user. Debian and Ubuntu requiresudo access to install host packages. Git and curl must be on PATH.
1. Install the CLI
sediment-cli from PyPI in an isolated tool environment
with Python 3.12. It installs uv if needed, plus the maintained host libraries
that the local PostgreSQL server needs.
If the installer prints an export PATH=... instruction, run it in this
terminal before continuing. Repeat the same instruction in each terminal where
you run sediment.
Verify:
2. Start a local server
In the terminal that you used for installation, run:~/.sediment/server.
Keep this terminal open. When the server reports Application startup complete.,
open a second terminal. If installation printed a PATH instruction, repeat it
in this terminal. Then verify the server:
~/.sediment/server/postgres.log.
When you finish the tutorial, press Ctrl+C in the server terminal to stop both
the API and its database. Running sediment server again reuses the stored data
and credentials.
Continue in the second terminal.
3. Log in
install
puts only the ingest credential in agent configuration. For remote deployments
and named ingest identities, follow Configure local capture.
error: is the server running? means step 2’s verification never passed.
4. Install capture in a scratch repository
Use an unused directory for the scratch repository:install adds repository git hooks, user-level hooks for detected agents, and
an environment file. For pi, first meet the requirements in
Capture pi work.
Verify:
FAIL result before continuing.
5. Verify the Git hooks
Create a synthetic Session marker and commit it to verify the Git hooks:session_id to be quickstart; your timestamp differs. This local note
doesn’t add a server Fact.
6. Verify server capture
demo posts one synthetic inference call and one Developer decision through
the same ingest routes that clients use. It then prints the Fact counts:
inference_calls and developer_decisions to each have at least one
row. A successful run ends with:
Clean up the demo
Next steps
- Configure your agent to capture real work. Follow its install, environment, restart, and Session verification steps.
- Deploy Sediment on EC2 to run it for a team. If you already run PostgreSQL and HTTPS, deploy on your own host instead. Then enroll your team.