Skip to main content

Niitaka SDK

AI agent observability and control plane — one import away.

Niitaka instruments your AI agents to capture every LLM call, tool invocation, and decision trace. Connect to the Niitaka dashboard to run experiments, enforce guardrails, and version your agents — without changing your agent code.

Install

pip install niitaka-sdk                    # core
pip install "niitaka-sdk[openai]"          # + OpenAI
pip install "niitaka-sdk[anthropic]"       # + Anthropic
pip install "niitaka-sdk[all]"             # all providers

Quick start

import niitaka
import os

niitaka.configure(
    api_key=os.getenv("NIITAKA_API_KEY"),
    api_url="https://api.niitaka.ai",      # or your self-hosted URL
)

# Instrument your LLM provider (pick one or more)
niitaka.instrument_openai()
niitaka.instrument_anthropic()
niitaka.instrument_gemini()
niitaka.instrument_groq()

# Wrap your agent run in a session
with niitaka.start_session(goal="Summarise this document", agent_id="my-agent"):
    response = client.chat.completions.create(...)  # auto-logged

Every call inside start_session is automatically traced — latency, token usage, cost, errors, and tool calls.

Providers

Provider Extra Import
OpenAI niitaka-sdk[openai] niitaka.instrument_openai()
Anthropic niitaka-sdk[anthropic] niitaka.instrument_anthropic()
Google Gemini niitaka-sdk[gemini] niitaka.instrument_gemini()
Groq niitaka-sdk[groq] niitaka.instrument_groq()
LangChain niitaka-sdk[langchain] from niitaka import NiitakaCallbackHandler

LangChain

from niitaka import NiitakaCallbackHandler
import niitaka

with niitaka.start_session(goal="...", agent_id="lc-agent"):
    chain.invoke({"input": "..."}, config={"callbacks": [NiitakaCallbackHandler()]})

Runtime config

Niitaka can push model, temperature, and guardrail config to your agent at runtime — no redeploy needed:

config = niitaka.get_runtime_config(agent_id="my-agent")
# config["llm"]["model"], config["guardrails"]["cost_limit_usd"], ...

Metadata

Release files for niitaka-sdk 0.1.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for niitaka-sdk 0.1.32
File Size Uploaded Provenance Actions
niitaka_sdk-0.1.32.tar.gz 61.7 kB Without provenance Details for niitaka_sdk-0.1.32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for niitaka-sdk 0.1.32
File Interpreter ABI Platform Actions
niitaka_sdk-0.1.32-py3-none-any.whl Python 3 none any Details for niitaka_sdk-0.1.32-py3-none-any.whl

Total release size: 129.5 kB

Release files / niitaka_sdk-0.1.32.tar.gz

Download URL niitaka_sdk-0.1.32.tar.gz
Size 61.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b9f4929f5e7234acf36e6aab64600b137760d08988e6d20f515bbdfb96180ac5
BLAKE2b-256 checksum
How to use checksums
1cb46885729c8999cd573debb8c2e78e0ad3261880abf1c2c1168dcc809dff09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / niitaka_sdk-0.1.32-py3-none-any.whl

Download URL niitaka_sdk-0.1.32-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed861c3f8727e06173a412ced71a2bade5f3eb23a0df12668b7652b8f9798b71
BLAKE2b-256 checksum
How to use checksums
bceacad5a7b43ef32c1e0c8ecad8237daef71f2526fd5e4bedbc6825e347e09b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for niitaka-sdk 0.1.32

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.32 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page