Requirements
Other platforms, including Intel Macs and Linux on Arm, are not supported yet.
You also need:
- A model key from OpenAI, Azure OpenAI, or Anthropic. Indexing makes model calls on that key, and you pay your provider for them.
- A local repository. A Git repository works best. A plain folder of source files also works.
Step 1: Install the CLI
One-line install
corestory to ~/.local/bin on macOS and Linux or %LOCALAPPDATA%\CoreStory\bin on Windows. To install somewhere else, set CORESTORY_INSTALL_DIR before running the script.
On Windows, the installer adds its folder to your user PATH. On macOS and Linux, it tells you if the folder is not on your PATH and which startup file to add it to. Either way, open a new terminal afterward.
Manual install
1
Download the archive for your platform
Open the latest release and download the command-line archive and its
.sha256 file:You do not need the
.app.tar.gz, .sig, desktop.json, or cli.json files. Those are for the desktop app and the updater.2
Verify the checksum
Compare the archive’s SHA-256 hash with the first field of the
.sha256 file:shasum -c can fail on this file because it records a build path rather than the file name. Compare the two hashes by eye instead. Each archive also has a Sigstore signature (.sigstore.json) if you want to verify provenance.3
Put the binary on your PATH
Extract the archive and move
bin/corestory to a folder on your PATH, such as ~/.local/bin.Check the install
Step 2: Run setup
- Accept the Terms of Use and Privacy Policy.
- Choose whether to share anonymous usage data. This is optional, and you can change your answer later with
corestory setup --telemetry. - Add a model provider and key. Choose OpenAI, Azure OpenAI, or Anthropic, then paste your key.
~/.config/corestory/config.toml. To change providers or models later, run corestory setup --models.
Step 3: Index a repository
From the root of your repository:init creates the corpus and prints its ID:
ingest reads the repository, calls your model provider, and prints the ID of the ingest when it finishes:
Keep the index out of Git
The index lives in a.corestory/ folder at the repository root. It is a local database, and it can get large. Add it to .gitignore:
Keeping the CLI up to date
corestory update verifies the new release’s signature before it installs anything. See update for all options.
Next steps
Connect Your Agent
Point Claude Code, Copilot, Cursor, or Codex at your index
Command Reference
Search, inspect rules, and manage snapshots from the terminal