Install
Self-contained releases support Linux (glibc and musl), macOS, and Windows on x64 and ARM64. The installer selects the asset for your machine. On macOS, the installer selects ARM64 even when launched from a Rosetta-translated shell.
Choose an installer
Section titled “Choose an installer”Both installers install or update Crystal Code and the Crystal Code Web browser client. The extended installer also installs or updates the web search and page fetch plugin and seeds the default provider and theme catalogs when their respective directories are missing or empty.
Standard installer
Section titled “Standard installer”Linux and macOS:
curl --fail --location --show-error https://crystalcode.ink/install.sh | shWindows PowerShell:
Invoke-RestMethod -Uri https://crystalcode.ink/install.ps1 | Invoke-ExpressionExtended installer
Section titled “Extended installer”Linux and macOS:
curl --fail --location --show-error https://crystalcode.ink/scripts/install-extended.sh | shWindows PowerShell:
Invoke-RestMethod -Uri https://crystalcode.ink/scripts/install-extended.ps1 | Invoke-ExpressionOn Linux and macOS, the installer adds a # Crystal Code CLI (Installer) block to the selected zsh or Bash profile. The block adds the binary directory to PATH and aliases crystal to CrystalCode. On Windows, the installer adds the directory to the user PATH. Open a new terminal to pick up these changes. Installers leave credentials untouched.
Update or reinstall
Section titled “Update or reinstall”Rerun the standard installer to update Crystal Code and the browser client. Rerun the extended installer to update the web search and page fetch plugin as well. The client install replaces the contents of the web/ directory under Crystal Home. If you use a custom front end there, pass --skip-web on Linux or macOS, or -SkipWeb in PowerShell.
curl --fail --location --show-error https://crystalcode.ink/install.sh | sh -s -- --skip-webInvoke-WebRequest -Uri https://crystalcode.ink/install.ps1 -OutFile install.ps1.\install.ps1 -SkipWebThe extended installer also accepts --skip-plugin, --skip-providers, and --skip-themes or, in PowerShell, -SkipPlugin, -SkipProviders, and -SkipThemes.
To inspect an installer before running it, download it to a file. The installer source has all four scripts.
Requirements
Section titled “Requirements”Linux and macOS are the recommended platforms. On Windows, install Git for Windows so Git Bash provides bash on the PATH.
- A supported provider account or an API key. See Credentials.
- A TTY for the interactive alternate-screen UI.
crystal rundoes not need a TTY bashon thePATH(Git Bash is used on Windows when present)
Building from source also requires:
- .NET 11 SDK
- A sibling checkout of Crystal at
../Crystal(relative to this repository root)
Clone both repositories into one parent directory:
git clone https://github.com/YELANDAOKONG/CrystalCode.gitgit clone https://github.com/YELANDAOKONG/Crystal.gitThe required layout, build, test, and local install steps are in Build from source.
Choose a provider from the model catalog, then follow Your first session or serve the installed client with crystal web.
Version
Section titled “Version”crystal version and crystal --version print the build identity and exit.
They do not open the terminal and do not read configuration.
crystal plugins and crystal tools list, show, enable, or disable one
directory. They print a Spectre.Console table unless --format text is
set. They do not open a session and do not write config.json.
crystal mcp list|show|enable|disable does the same for one MCP server. It
changes only that server’s enabled field and never prints its command,
arguments, headers, or URL.
crystal skills list|show lists the skills found for the workspace or shows
one by name. Skills have no enable or disable command, because they are
discovered from several trees rather than one manifest.
crystal login [provider] and crystal logout [provider] sign in to or out of an account provider. Without a provider, they list the account providers and whether each is signed in. crystal login --no-browser prints the link instead of opening it. See Sign in with an account.
crystal promptsets and crystal prompt-attachments do the same for
prompt.json. Prompt sets are Home-only: list, show, enable, and
disable accept --home and --format text. Enabling one set turns the
others off. Prompt attachments also accept --workspace and
--source home|project. Neither command creates a missing directory or
writes config.json.
Crystal Code 3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4aCrystal 1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4dSDK 11.0.100Configuration Debug
Runtime .NET 11.0.0OS Ubuntu 24.04.2 LTS x64| Line | Meaning |
|---|---|
Crystal Code |
Commit of this repository |
Crystal |
Commit of the Crystal library |
SDK |
.NET SDK that compiled the executable |
Configuration |
MSBuild configuration on the executable, usually Debug or Release |
Runtime |
Shared framework hosting this process |
OS |
Operating-system description plus architecture |
A blank line separates the build from the process host. A line is omitted when that value was not recorded. An empty section is omitted with the blank line. The values above are examples.