> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyformat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs and tools

> The official Python and TypeScript clients for API v3, the afx command line, the MCP server, and the Claude Code skill.

Both SDKs give you a fluent builder over the [typed workflow graph](https://docs.anyformat.ai/concepts/workflows.md), a `Workflow` handle to upload and run documents, a `Run` handle to wait on, and a typed `Result`. They target [API v3](https://docs.anyformat.ai/api-reference-v3/introduction.md): flat run reads, document packet handles, keyset pagination, and idempotent upload and run triggers.

> [!NOTE]
>
> The 2.x SDKs target v3. The break from 1.x is the rename of the `code_sandbox` node to `code`; see the [November 2026 changelog](https://docs.anyformat.ai/changelog/2026-11.md). The 0.x packages call API v2, which is retired, so they no longer work. Upgrading needs code changes; follow the [0.x to 1.0 migration guide](https://docs.anyformat.ai/api-reference-v3/sdk-migration.md).

## Install

```bash Python theme={null}
pip install anyformat
```

```bash TypeScript theme={null}
npm install @anyformat/sdk
```

Both clients take the API key explicitly: `Client(api_key="af_...")` and `new Anyformat({ apiKey: "af_..." })`. See [Authentication](https://docs.anyformat.ai/api-reference-v3/introduction.md#authentication).

## Pick your surface

> [card] [Python SDK](https://docs.anyformat.ai/api-reference-v3/sdks/python.md)
>
> Sync and async clients, the builder, results with drawn layout boxes, knowledge ask, evals.

> [card] [TypeScript SDK](https://docs.anyformat.ai/api-reference-v3/sdks/typescript.md)
>
> The same builder and handles for Node.js 18+, with generated wire types.

> [card] [Command line (afx)](https://docs.anyformat.ai/api-reference-v3/cli.md)
>
> Parse, extract, run and manage workflows from a shell. Installed with the Python package.

> [card] [MCP server](https://docs.anyformat.ai/api-reference-v3/mcp.md)
>
> Give Claude Code, Cursor or any MCP host anyformat as tools.

> [card] [Coding assistant](https://docs.anyformat.ai/guides/coding-assistant.md)
>
> The Claude Code skill with the design know-how; the verbs come from the MCP server or the API reference.

> [card] [Raw HTTP](https://docs.anyformat.ai/api-reference-v3/workflows/upload-and-run.md)
>
> Every endpoint page has copy-paste examples. Start with upload and run.

## The same graph everywhere

A workflow built with either SDK, the CLI, Studio or the MCP server is the same typed graph of nodes and edges. The [node schemas](https://docs.anyformat.ai/api-reference-v3/node-schemas.md) page lists every field each node accepts; each builder method maps onto one node.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.