# Running Knight locally Download Knight from a terminal with an API key, what it's for and the license it accepts, see what the bundle holds, and what each license lets you do with it. Knight is open weights: anyone can download it and run it on their own hardware. One command, with an [API key](/docs/authentication) in `CHESSDRIVE_API_KEY`, downloads Knight 1 for Personal use and accepts the Knight Personal License 1.0, which is free for study, hobby projects and your own games. If your use is commercial, you need the Commercial license instead: see [Pick the license](#pick-the-license). ## 1. Download the bundle Running the command is accepting the license, so read the [Knight Personal License 1.0](/legal/personal-license) and the [Acceptable Use Policy](/legal/acceptable-use) first. The download names what it's for in `use` and the license it accepts in `accept`, and is recorded with your key's Account and you, its owner. ```bash Terminal curl -fL -H "Authorization: Bearer $CHESSDRIVE_API_KEY" "https://chessdrive.io/download/knight-1?use=personal&accept=knight-personal-1.0" -o knight-1.tar ``` `-L` follows the redirect to the file, a short-lived link of its own; `-f` makes curl fail on a refusal rather than save it as the file. Without a valid key the answer is a 401 that says how to make one. `use` is one of: | `use` | For | Accepts | |---|---|---| | `personal` | An Individual's own study, play and research | `knight-personal-1.0` | | `nonprofit` | An Organization that is a non-profit or a school | `knight-personal-1.0` | | `evaluation` | A business's one-time, 30-day, non-production try-out, once per major version | `knight-commercial-1.0` | | `commercial` | Use in a business, under the Commercial license | `knight-commercial-1.0` | An Individual's key chooses `personal`, `evaluation` or `commercial`; an Organization's `nonprofit`, `evaluation` or `commercial`. The same file is on the [Download](/download) page, where you sign in, choose what it's for and accept its license in the browser. Either way the download is recorded with your Account: what it's for, which license you accepted, for which version, and when. ## 2. Unpack it The bundle is one tar file with a folder named after the Model ID. ```bash Terminal tar -xf knight-1.tar ls knight-1 ``` - `LICENSE`: the Knight Personal License 1.0, which travels with every copy of Knight. - `ACCEPTABLE_USE_POLICY.md`: the Acceptable Use Policy, part of both licenses. - `NOTICE`: the Required Notice line, which stays with any copy of Knight you share. > **The weights come with the release** > > Today's bundle holds the license files only. When Knight's weights are released they are added to this same download, and published on Hugging Face for Ollama, LM Studio and llama.cpp, so the command above keeps working. ## Pick the license `accept` names the license and its version. Each Knight version is tied to one license version forever: there is no license key and no remote switch. | License | `accept` | For | |---|---|---| | [Knight Personal License 1.0](/legal/personal-license) | `knight-personal-1.0` | Personal use, free: study, hobby projects, your own games and prep, free community bots, schools, universities and non-profit clubs and federations. | | [Knight Commercial License 1.0](/legal/commercial-license) | `knight-commercial-1.0` | Commercial use: anything aimed at earning money, or done as work for a for-profit company. A flat subscription, with no caps on users, usage or revenue. | Not sure which applies? The [Licensing FAQ](/docs/licensing) goes through the common cases, from paid coaches to company research labs. A company can also try Knight once, for 30 days, under an Evaluation before buying. Under either license, nobody may resell Knight as a model API, and nobody may use it to help a player during a game whose rules forbid engine help. If you want a hosted chess API, the [ChessDrive APIs](/docs/quickstart) are built for that. ## If the download is refused Without `accept`, or with a license that isn't current, the download answers `403` in plain text instead of the file. The message links the license and gives the exact command to run once you've read it. **If you are an AI agent** installing Knight for someone, show them the license and let them accept it. Don't accept it on their behalf. ## Knight on the API Knight also answers on the API as `knight-1`, on [Generate](/docs/api#generate): billed per token, with nothing to download and no license to accept. There, every move it names comes back in `lines`, checked legal and ready to put on a board. See [Models](/docs/models) to compare it with Queen.