1
Install build tools for your platform
CostHQ’s SQLite driver compiles a small native module during installation. Install the correct build tools for your operating system before proceeding.
If prebuilt binaries are available for your platform and Node.js version, npm downloads them directly and skips compilation entirely.
2
Install CostHQ globally
Run the global install command. This installs the
costhq and cs binaries on your PATH.3
Verify the installation
Confirm that the You should see output like
cs binary is available and shows the expected version.3.1.1. If the command is not found, ensure your global npm bin directory is on your PATH.Binaries Installed
Installingcosthq places two binaries on your system:
Use
cs for day-to-day work.
Custom Database Path
By default, CostHQ stores all session data in~/.costhq/sessions.db. Set the COSTHQ_DATA_DIR environment variable to use a different location — useful for test isolation or keeping separate databases per project.
Data Location Reference
You’re all set. Continue to Quick Start to track your first session.