# @haikit/anthropic

> Claude model adapter for haikit. Imports only @haikit/core, never the server runtime.

Latest version **0.2.0** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @haikit/anthropic
pnpm add @haikit/anthropic
yarn add @haikit/anthropic
bun add @haikit/anthropic
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2026-09-24 |
| First published | 2026-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Maintainers | wfoxd |
| Keywords | haikit, claude, anthropic, llm, agent, agentic-ui, tool-use, ai |

## Links

- npm: https://www.npmjs.com/package/@haikit/anthropic
- Repository: https://github.com/wfoxd/haikit
- Homepage: https://github.com/wfoxd/haikit/tree/main/packages/anthropic#readme
- Issues: https://github.com/wfoxd/haikit/issues
- npm.io page: https://npm.io/package/@haikit/anthropic

## Dependencies (2)

- [@haikit/core](https://npm.io/package/@haikit/core.md) 0.2.0
- [@anthropic-ai/sdk](https://npm.io/package/@anthropic-ai/sdk.md) ^0.70.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2026-09-24
- 0.1.0 — 2026-09-23

## README

# @haikit/anthropic

Model adapter for Claude.

```ts
import { anthropic } from "@haikit/anthropic";
createHai({ model: anthropic({ model: "claude-opus-5", effort: "medium" }), … });
```

Note it imports only `@haikit/core`, never `@haikit/server`. Adapters implement an
interface the contract layer declares — that is what keeps the runtime
swappable, and what lets an app ship its own adapter without forking anything
(see `examples/*/src/server/scripted.ts`).

The agent loop is hand-written rather than using the SDK's tool runner: an
`elicit` turn must stop mid-turn, return an HTTP response, and resume from a
*different request*. An in-process iterator cannot cross that boundary.

---
_Source: https://npm.io/package/@haikit/anthropic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
