Favicon of Strands Harness SDK

Strands Harness SDK

An AI agent SDK runs in your Python or TypeScript application, with support for Ollama, cloud model providers and MCP tools.

Screenshot of Strands Harness SDK website

Strands Harness SDK is an open source toolkit for developers building AI agents who need control over their behavior. It handles the agent loop while letting you choose its components.

  • Model providers: Use Ollama, Amazon Bedrock, Anthropic, OpenAI or Google Gemini, and switch providers without rewriting the rest of your agent code.
  • Tools and responses: Connect your own functions or MCP servers, return structured data and stream responses as the agent generates them.
  • Execution controls: Set turn limits and token budgets, cancel work, and use hooks to inspect, validate or redirect individual steps.
  • Memory and coordination: Build agents with memory, sessions and context management, including workflows that involve multiple agents.
  • Tracing and evaluation: Record agent decisions, evaluate behavior and apply guardrails to check actions before they run.

The SDK runs inside your application process without a hosted control plane. Cloud model providers handle model requests outside that process. It supports Python and TypeScript under the Apache 2.0 license; the Python SDK requires Python 3.10 or later, and the TypeScript SDK requires Node.js 22 or later.

The separate Strands harness supplies assembled defaults for prompts, tools, memory, sessions and context management. Developers using the SDK choose those components themselves.

Similar to Strands Harness SDK