Skip to main content

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.
CoreStory also ships a desktop app for macOS and Linux that walks you through the same setup. The download page is get.corestory.ai. This page covers the command-line tool.

Step 1: Install the CLI

One-line install

The installer finds the latest release, checks the download’s SHA-256 checksum, and installs 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

Setup is interactive. It asks you to:
  1. Accept the Terms of Use and Privacy Policy.
  2. Choose whether to share anonymous usage data. This is optional, and you can change your answer later with corestory setup --telemetry.
  3. Add a model provider and key. Choose OpenAI, Azure OpenAI, or Anthropic, then paste your key.
Other commands do not run until setup is complete. Your settings are saved to ~/.config/corestory/config.toml. To change providers or models later, run corestory setup --models.
Run setup yourself, not through an agent. Setup is where you accept the terms and decide where your code is sent. If you ask a coding agent to install CoreStory, it should stop and ask you to run corestory setup in your own terminal.

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:
Ingest time and model cost grow with the size of the repository. A single small file takes well under a minute. A large codebase can take much longer and make many model calls, so try a small repository first to get a feel for the cost on your key. Confirm the snapshot exists:

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