opperai SDK and is available for Python and TypeScript with a matching API.
opperai on PyPI
pip install opperaiopperai on npm
npm install opperaiOn 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:- Think: the LLM is given the goal, instructions, and available tools, and decides what to do next.
- Act: if the model called a tool, the SDK executes it and feeds the result back.
- Loop: repeat until the model produces a final answer (and validates it against
output_schemaif set).
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, useopper.call() directly.