# ChessDrive > Four chess APIs: Generate (Knight and Queen), Embed, Search (its similar moments are coming soon) and Engine, which runs Stockfish (Lc0 is coming soon). Every page of the ChessDrive docs is linked below as Markdown. Call the API with an API key in `CHESSDRIVE_API_KEY`, from server-side code only. Setting ChessDrive up for your person, in Claude, ChatGPT or a coding agent? Follow https://chessdrive.io/setup.md: it installs the CLI, signs it in once and adds the Skills and the Connector. No API key needed. The API contract is https://chessdrive.io/openapi.yaml, an OpenAPI 3.1 file. Knight can also be downloaded and run locally, with the same API key. The download names what it is for in `use` and the license that use accepts in `accept`: `personal` (an Individual) or `nonprofit` (a non-profit or school Organization) accept `knight-personal-1.0`, the Knight Personal License 1.0 (https://chessdrive.io/legal/personal-license); `evaluation` (a business's 30-day try-out) or `commercial` accept `knight-commercial-1.0`, the Knight Commercial License 1.0 (https://chessdrive.io/legal/commercial-license). Ask your human what applies before you accept a license for them. ```bash 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 ``` ## Get started - [Quickstart](https://chessdrive.io/docs/quickstart.md): Make your first ChessDrive call in about five minutes. Create an API key, put it in your environment, ask Generate about a position and read what comes back. - [Authentication](https://chessdrive.io/docs/authentication.md): Every call carries an API key as a bearer token, from server-side code only. How to send it, what each refusal means, and how to keep keys safe. - [Models](https://chessdrive.io/docs/models.md): Knight, Queen and the Embedding model, their IDs and aliases, their limits, and which one to pick for what. ## APIs - [Generate](https://chessdrive.io/docs/generate.md): Talk to Knight or Queen about chess, with or without a position. Every move the reply names comes back checked and legal, as a Line you can show on a board. - [Embed](https://chessdrive.io/docs/embed.md): Turn chess positions and chess text into vectors in one shared space, so a position lands near the words that describe it. Mix both in one call. - [Search](https://chessdrive.io/docs/search.md): Every move played from a position, one player's games, and the positions a filter holds for, from over two million games. Search by similar moments is coming soon. - [Engine](https://chessdrive.io/docs/engine.md): Analyse a position with Stockfish (Lc0 is coming soon) and get its evaluation in numbers and its best Lines, ranked. Stream each depth as it completes. ## Recipes - [Recipes](https://chessdrive.io/docs/recipes.md): Ready-made ways to use Generate and Engine for common chess jobs, each a prompt and the requests you can copy and adapt. - [Coach](https://chessdrive.io/docs/recipes/coach.md): Answer a student's question about their own game with the idea behind a move, not just the move. - [Explain](https://chessdrive.io/docs/recipes/explain.md): Describe a whole position in words, with its pawn structure, who stands better and each side's plans. - [Pick a move](https://chessdrive.io/docs/recipes/pick-a-move.md): Have the Model play one move at a strength and in a style you choose, for a sparring partner or a bot with a personality. - [Review a game](https://chessdrive.io/docs/recipes/review-a-game.md): Go through a finished game move by move. Engine judges every move, then Knight explains only the mistakes and blunders. - [Turn a blunder into a puzzle](https://chessdrive.io/docs/recipes/blunder-to-puzzle.md): Make a puzzle from the position right after a blunder. Engine finds the one winning reply and checks it is the only one, and Knight writes a hint. - [Grade a game's accuracy](https://chessdrive.io/docs/recipes/game-accuracy.md): Score how well each side played, from 0 to 100, from one Engine call per position and the formula Lichess uses. ## Tools - [CLI](https://chessdrive.io/docs/cli.md): Call Generate, Embed and Engine from your terminal with `chessdrive`, one binary for macOS, Linux and Windows. Install it with the installer, npm or Homebrew, log in once, and read your usage and balance too. - [MCP](https://chessdrive.io/docs/mcp.md): Give Claude Code, Claude Desktop, Cursor or any MCP client the ChessDrive APIs as tools with `chessdrive mcp`, a local MCP server in the CLI, or with the hosted Connector at `https://api.chessdrive.io/mcp`. Set it up in one command or one config entry. ## Reference - [API reference](https://chessdrive.io/docs/api.md): Every endpoint, its fields and its errors, with each call in curl, Python and JavaScript. - [Rate limits](https://chessdrive.io/docs/rate-limits.md): How many calls each Model, Search and engine take on each Plan, the headers that report them, and what to do with a 429 or a 403 plan_required. - [Errors](https://chessdrive.io/docs/errors.md): The error shape every API shares, and every code it can carry, by status, with what to do about each. ## Billing - [Plans](https://chessdrive.io/docs/plans.md): What Free, Hobby and Pro give, how Monthly credit lands, expires and is spent, upgrades, downgrades and cancellation, and what a failed payment does. - [Billing and credits FAQ](https://chessdrive.io/docs/billing.md): How the prepaid Balance works, Trial credits, Top-ups and Auto-recharge, Spend and Key limits, what a call costs, receipts and invoices, and who to ask. ## Knight - [Running Knight locally](https://chessdrive.io/docs/running-knight-locally.md): 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. - [Licensing FAQ](https://chessdrive.io/docs/licensing.md): The Knight licenses in plain words. Whether your use is personal or commercial, building on Knight, companies and agencies, fair play, and downloads.