# Install the skopos tool

`skopos` is the command line tool for OpenSkopos documents. It checks, formats and converts documents. It adds IDs to new items, compares versions, and exports documents to other tools. Each release has binaries for macOS, Linux and Windows.

The commands on this page install the latest release. The [changelog](https://openskopos.org/changelog/) lists what each release added, changed and removed.

## Homebrew

With [Homebrew](https://brew.sh) on macOS or Linux, run:

``` bash
brew install openskopos/tap/skopos
```

To update to a new release later, run `brew upgrade skopos`.

## Install script

On macOS or Linux, run this command. The script downloads the binary for your system and puts it in `~/.cargo/bin`:

``` bash
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/openskopos/openskopos/releases/latest/download/skopos-installer.sh | sh
```

On Windows, run this in PowerShell:

``` powershell
powershell -ExecutionPolicy Bypass -c "irm https://github.com/openskopos/openskopos/releases/latest/download/skopos-installer.ps1 | iex"
```

## Cargo

If you have a Rust toolchain, install the tool from crates.io:

``` bash
cargo install --locked skopos
```

## npm

The npm package `@openskopos/cli` has the same commands and runs on any platform with Node 20 or later. To try it without installing anything:

``` bash
npx @openskopos/cli check intent.skopos.json
```

To install it, run `npm install --global @openskopos/cli`.

## Download a binary

The [releases page](https://github.com/openskopos/openskopos/releases) has an archive for each platform:

| Platform                     | Archive                                   |
|------------------------------|-------------------------------------------|
| macOS, Apple silicon         | `skopos-aarch64-apple-darwin.tar.xz`      |
| macOS, Intel                 | `skopos-x86_64-apple-darwin.tar.xz`       |
| Linux, x86-64                | `skopos-x86_64-unknown-linux-gnu.tar.xz`  |
| Linux, x86-64, static (musl) | `skopos-x86_64-unknown-linux-musl.tar.xz` |
| Linux, ARM64                 | `skopos-aarch64-unknown-linux-gnu.tar.xz` |
| Windows, x86-64              | `skopos-x86_64-pc-windows-msvc.zip`       |

Each archive has a `.sha256` file with its checksum. The file `sha256.sum` contains the checksums of all archives. Extract the archive, and put `skopos` in a folder that is on your `PATH`.

## Make sure that the tool works

Run:

``` bash
skopos --version
```

It prints the version number. For all commands, see [the skopos command line tool](https://openskopos.org/docs/cli/).

## Use it from an agent

An agent that can run commands can use `skopos` directly. For an agent that cannot, connect it to the [OpenSkopos MCP server](https://openskopos.org/docs/mcp/). It has the same checks and needs no install.
