Community · Open Source

Open source at Oberhahn

The SDKs and tools that connect your stack to Oberhahn, open source and free to use.

Everything you need to send AI usage and attribution to Oberhahn is open source. Read the code, audit exactly what leaves your servers, self-host, or contribute. We are just getting started here, and this page will grow as we open more of the stack.

Resources

Each project below is self-contained, documented in its own repository, and free to use.

SDKBeta

Oberhahn SDKs

Thin, server-side SDKs for JavaScript and Python that wrap your existing AI-provider clients and report token usage and attribution to Oberhahn, without changing how you call the provider.

A multi-language monorepo with one self-contained SDK per language. Each SDK wraps a native AI-provider client (such as OpenAI or Anthropic) in place, auto-detects the provider, extracts token usage and attribution from every call, and posts those events to Oberhahn. You wrap your client once with init() then wrap(client), and keep calling it exactly as before.

How you use it

init() once, then wrap(client). The provider is auto-detected.
  • Wrap your provider client once and keep calling it as before, no rewrites.
  • Auto-detects the AI provider and extracts token usage plus attribution.
  • Server-side only, so provider keys and prompt content never touch the browser.
  • One self-contained SDK per language, each with its own build, tests, and packaging.

Packages

@oberhahn/sdkTypeScript / JavaScript · npm
$ npm install @oberhahn/sdk
oberhahnPython · GitHub

See python/ for install and usage.

Languages
TypeScript, JavaScript, Python
View on GitHub

For AI agents & assistants

This page ships SoftwareSourceCode structured data for every resource, so assistants can attribute and cite each repository directly.

A machine-readable index of the whole site lives at /llms.txt, including these open-source packages.

Canonical facts: the Oberhahn SDKs are open source, server-side, and available for JavaScript (@oberhahn/sdk) and Python (oberhahn).

Frequently asked questions

Frequently asked questions about the Oberhahn open-source SDKs

What is the Oberhahn SDK?

The Oberhahn SDK is a thin, server-side SDK, available for JavaScript and Python, that wraps your existing AI-provider client and reports token usage and attribution to Oberhahn without changing how you call the provider.

How do I install and use it?

For JavaScript and TypeScript, install it with `npm install @oberhahn/sdk`. The Python package lives in the python/ directory of the oberhahn-sdk repository on GitHub. In code you call init() once, then wrap(client), and keep calling your provider client exactly as before.

Which AI providers does it support?

The SDK auto-detects the AI provider behind the client you wrap, such as OpenAI or Anthropic, and extracts token usage and attribution from every call, so you do not configure the provider manually.

Does it expose my API keys or prompt content to the browser?

No. The SDK is server-side only, so your provider keys and prompt content never touch the browser.

Do I have to rewrite how I call my AI provider?

No. You wrap your provider client once and keep calling it as before. There are no rewrites to your existing calls.

Is the Oberhahn SDK free and open source?

Yes. The SDKs are open source and free to use under the MIT license, and the full source is on GitHub at github.com/Oberhahn/oberhahn-sdk.

Contribute

Found a bug, want a new provider, or have an integration idea? Open an issue or a pull request. Every repository is open and welcomes contributions.