Install llmkit

This guide adds llmkit to a project in each of the six SDKs, using the package manager that language already uses. Pick your language below, then follow Send your first prompt to make a call.

The Swift and Java SDKs are complete; their packages ship with the next release, and their install commands land here the day they do.

Before you start

You need the toolchain for your language installed: Go 1.23+, a TypeScript/JavaScript runtime (Bun, Node, or Deno), Python 3.10+, or a Rust toolchain with Cargo. No other system dependencies — the Go and Python SDKs pull nothing beyond the standard library.

Install

After installing, import it:

  • Goimport llmkit "github.com/aktagon/llmkit-go/v2"
  • TypeScriptimport { anthropic } from "@aktagon/llmkit-ts/builders". The package ships compiled ESM in dist/ (Node, Workers, Deno) plus the TypeScript source in src/ for bundlers with moduleResolution: "bundler" (Bun, Vite, Next.js). No build step at the consumer.
  • Pythonfrom llmkit.builders import anthropic (Python 3.10+).
  • Rustuse llmkit::builders::anthropic; (the crates.io package is llmkit-rust; the library imports as llmkit)
  • Swiftimport LLMKit (SwiftPM: .package(url: "https://github.com/aktagon/llmkit-swift", from: "1.0.0"))
  • Javaimport com.aktagon.llmkit.Client; (Maven Central: com.aktagon:llmkit:1.0.0)

You can also install the TypeScript SDK straight from GitHub, pinned to a release tag, to skip the registry: bun add github:aktagon/llmkit-ts#ts-v1.0.1.

Verify it worked

Set the API key for a provider you have access to and make one call:

export ANTHROPIC_API_KEY="sk-ant-..."

The quickstart has a complete first-call example for every SDK. If the call returns a reply and a token count, the install is good.

  • Send your first prompt — the minimal working call in each SDK.
  • Each SDK’s README.md documents the full call surface — streaming, tool-calling, caching, batches, and image/video/music generation.