Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.07 KB

File metadata and controls

43 lines (29 loc) · 1.07 KB

CLI Reference

CausalOS comes with a built-in CLI for inspecting, auditing, and serving your agent's memory.

Installation

Ensure the CLI is in your path (installed via pip):

causal-os --help

Commands

recall

Search for similar incidents directly from the terminal.

causal-os recall "delete users" --db causal.db

view

Visualize the causal graph of your agent's interactions as a tree structure.

causal-os view --agent my-agent
  • --db: Path to the database file (default: causal.db).
  • --agent: Filter records by a specific agent ID.

serve

Start a local FastAPI REST server to allow multiple agents or processes to communicate with a single causal database over HTTP.

causal-os serve --port 7433 --host localhost --db causal.db
  • --port: The port to run the server on (default: 7433).
  • --host: The host address (default: localhost).
  • --db: Path to the database (default: causal.db).

Once running, you can interact with the server via its REST API (e.g., at http://localhost:7433/records).