Skip to content
Integrations · Agent SDK

Observability for the AI agents you build

Claude Code and Cursor cover the coding agents on developer laptops. The CloudByte AI SDK covers the agents your team builds and runs: add it to a Python or Node agent and every run, step, model call, token and error lands in the same security, knowledge base and AI spend views.

01Setup

How do you add CloudByte AI to an agent?

Install one package, give the agent its own key and wrap each run in a span. Calls through OpenAI, Anthropic and LangChain or LangGraph can be recorded automatically, and anything else takes a few lines of code.

  • pip install cloudbyte-tracer on Python 3.10+, npm install cloudbyte-tracer on Node.js 20+
  • One key per agent, read from CLOUDBYTE_AGENT_KEY and never pasted into source files
  • Auto-capture for OpenAI, Anthropic and LangChain or LangGraph calls
  • No runtime dependencies in the core package
agent.py

$pip install cloudbyte-tracer

from cloudbyte_tracer import init tracer = init()  # reads CLOUDBYTE_AGENT_KEY with tracer.span("triage-ticket", kind="agent", input=ticket) as run:    with tracer.span("lookup-customer", kind="tool") as step:        step.set_output(customer)    run.set_output(reply) tracer.shutdown()
Python 3.10+ · Node.js 20+cloudbyte-tracer · Apache-2.0
02Runs and steps

What does CloudByte AI see in each agent run?

One run of your agent becomes one trace, and every model call, tool call and retrieval inside it becomes a step. Open a run to follow it from the first input to the final output, with the model, tokens, timing and any error at each step.

  • Steps typed as agent, LLM, tool, retrieval or custom, nested the way your code runs them
  • The model, token counts and timing of every model call
  • Errors kept on the step that failed, so a broken run is easy to find
  • Inputs and outputs, unless you turn content capture off
One platform

Security, governance and knowledge, for every agent

Runs from your own agents are not a separate product. They land in the same views as your team's Claude Code and Cursor work, so one dashboard covers both.

The SDK reports each step after it runs, so a sensitive value is flagged, not blocked. To keep a value from ever leaving your application, redact it in code or turn content capture off.

Privacy controls

You decide what leaves your application

Inputs and outputs make runs worth reading, and they are also where sensitive data lives. The SDK lets you keep it in, from code or with an environment variable.

  • Turn content capture off

    Inputs and outputs are captured by default. Set capture_content=False in Python, captureContent: false in Node or CLOUDBYTE_CAPTURE_CONTENT=false, and they stay in your application.

  • Redact before anything is sent

    A redact hook runs on every input, output and text attribute before it is queued. If the hook fails, the field is dropped, never sent unredacted.

  • Only to your endpoint

    Traces go only to the CloudByte AI endpoint you configure, with no update checks and no extra telemetry. Redirects are refused, so the agent key never follows one.

  • Off for tests and CI

    CLOUDBYTE_DISABLED=true turns tracing off completely, so test suites, CI and offline runs send nothing.

The SDK is open source under the Apache-2.0 license, so your security team can read every line before it ships.

Coding tools and agents

Two kinds of AI work, one dashboard

Your developers use AI coding tools, and your product runs AI agents of its own. CloudByte AI captures each the way it runs, then puts both side by side.

  • Where the AI runs

    Claude Code, Cursor and Copilot

    On developer laptops, in Claude Code, Cursor and Copilot

    Agents you build

    In your own services, jobs and serverless functions
  • How it is captured

    Claude Code, Cursor and Copilot

    The CloudByte AI sync agent reads each tool's local session data, without changing it

    Agents you build

    The SDK in your code sends each run as it happens
  • What you install

    Claude Code, Cursor and Copilot

    One line per laptop on macOS, Linux or Windows

    Agents you build

    One package from PyPI or npm, and one key per agent
  • What you see

    Claude Code, Cursor and Copilot

    Sessions, prompts, tokens and commits per developer and project

    Agents you build

    Runs, steps, models, tokens and errors per agent
  • Where it lands

    Claude Code, Cursor and Copilot

    AI Security, the Knowledge Base and AI spend

    Agents you build

    The same three views, next to your coding tools
FAQ

Agent SDK questions, answered

What the SDK records, which languages it supports, what it costs your agent and how to keep sensitive data in.

Seeing what an AI agent actually did on each run: the steps it took, the models and tools it called, the tokens it used and where it failed. CloudByte AI records that for the agents you build with its Python and Node SDK, next to your team's Claude Code and Cursor work.

Python 3.10 and later and Node.js 20 and later, on the server; browser JavaScript is not supported. Calls through the OpenAI and Anthropic clients and through LangChain or LangGraph can be recorded automatically, and any other framework or your own code works with a few manual spans.

Yes. Runs from the SDK land in the same AI Security, Knowledge Base and AI spend views as your team's Claude Code and Cursor sessions. The one difference is timing: the SDK reports a step after it runs, so a sensitive value is flagged rather than blocked. Redact it in code to keep it inside your application.

It sends traces in the background, in small batches from a bounded in-memory queue, so your agent does not wait on CloudByte AI at each step. Delivery is best effort: if the queue fills, the oldest steps are dropped first and a finished run still shows as finished. Short-lived jobs and serverless handlers should call flush before they exit.

Yes. Turn content capture off with capture_content=False in Python, captureContent: false in Node or CLOUDBYTE_CAPTURE_CONTENT=false, or pass a redact hook that rewrites any input, output or text attribute before it is queued. Step names, models, numbers and error messages are sent as they are, so keep secrets out of them.

Create the agent in CloudByte AI and copy its key from the agent page, which also lists the setup commands. Store the key in your secret manager as CLOUDBYTE_AGENT_KEY, where init() picks it up. Each agent gets its own key, so its runs, spend and errors stay apart from every other agent.

Yes. cloudbyte-tracer is released under the Apache-2.0 license, with its source and docs on GitHub and its packages on PyPI and npm, so your security team can read every line before it ships.

See what your agents really do.

Install the SDK, add one key per agent and every run shows up next to your coding tools.

  • Free for up to 5 developers
  • 10-minute setup
  • Your Anthropic key, your spend (Enterprise)