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
13 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
With tracing on, every agent run, LLM call, and tool execution shows up as a structured trace tree in the Opper dashboard. Tracing is off by default: Opper records usage metadata (model, cost, and latency) but stores no traces until you turn tracing on in Opper retention, a Control Plane feature.