Skip to main content
Source: opper-ai/opper-sdks. The agent layer ships inside the opperai package, so there’s nothing extra to install.

Build your first agent

1

Install

Requirements: Python 3.10+ or Node.js 18+. TypeScript users need Zod v4.
2

Set your API key

Get a key at platform.opper.ai. You can also pass it explicitly via client={"api_key": "..."} (Python) or client: { apiKey: "..." } (TypeScript) on the Agent constructor.
3

Run an agent

The agent picks add(5, 3) = 8, then multiply(8, 2) = 16, then returns. Every tool call is captured in result.meta.tool_calls (Python) / result.meta.toolCalls (TS).
4

Run an end-to-end example

The repo has numbered examples, each showing one pattern. Run them directly:

What’s next

Tools

Define tools the agent can call.

Structured output

Return validated, typed data instead of free text.

Streaming

Watch the agent work as it happens.

Multi-agent

Compose specialists into a coordinator.