Skip to main content
The Opper Agent SDK is part of the unified opperai SDK and is available for Python and TypeScript with a matching API.

opperai on PyPI

pip install opperai

opperai on npm

npm install opperai
On the standalone opper-agents (Python) or @opperai/agents (TypeScript) package? See Migration & legacy SDKs for the upgrade path and links to the legacy repos.

Source

opper-ai/opper-sdks has the full source for both languages.

Working examples

11 numbered examples per language. Each one runs against the live API.

What an agent is

An agent runs a think → act → observe loop:
  1. Think: the LLM is given the goal, instructions, and available tools, and decides what to do next.
  2. Act: if the model called a tool, the SDK executes it and feeds the result back.
  3. Loop: repeat until the model produces a final answer (and validates it against output_schema if set).
You define instructions, tools, and an optional output schema. The SDK handles the rest.

Minimal agent

Patterns

Tracing is on by default. Every agent run, LLM call, and tool execution shows up as a structured trace tree in the Opper dashboard.

When to use it

Reach for the Agent SDK when the work involves choosing between tools, chaining steps based on intermediate results, or coordinating multiple specialists. For a single deterministic LLM call, use opper.call() directly.