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:
- Go —
import llmkit "github.com/aktagon/llmkit-go/v2" - TypeScript —
import { anthropic } from "@aktagon/llmkit-ts/builders". The package ships compiled ESM indist/(Node, Workers, Deno) plus the TypeScript source insrc/for bundlers withmoduleResolution: "bundler"(Bun, Vite, Next.js). No build step at the consumer. - Python —
from llmkit.builders import anthropic(Python 3.10+). - Rust —
use llmkit::builders::anthropic;(the crates.io package isllmkit-rust; the library imports asllmkit) - Swift —
import LLMKit(SwiftPM:.package(url: "https://github.com/aktagon/llmkit-swift", from: "1.0.0")) - Java —
import 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.
What to read next
- Send your first prompt — the minimal working call in each SDK.
- Each SDK’s
README.mddocuments the full call surface — streaming, tool-calling, caching, batches, and image/video/music generation.