harness-sdk (strands-agents/harness-sdk)

Searching Database…

What is this?Strands Agents - an open-source SDK for building and running AI agents in Python and TypeScript, with a model-driven approach where a working agent takes just a few lines of code.
Is this a library I install in my own code, or a hosted service?Libraries you install and run in your own code. The monorepo holds the Python and TypeScript SDKs, prebuilt harness packages for each, and the documentation site.
How do I get my first agent running?Install a harness package from PyPI or npm, then call createharness() (Python) or createHarness() (TypeScript). One call gives you an assembled agent with benchmarked defaults for model, tools, memory, sessions, and context management.
Which AI models can it drive?It is model agnostic: first-class support for Amazon Bedrock, Anthropic, OpenAI, and Gemini, plus many more providers and custom ones. The quickstart guide also covers configuring Ollama.
Will it run on my current Python or Node setup?Check the runtime floors first: the Python side requires Python 3.10+, and the TypeScript SDK requires Node.js 22+. Pick the SDK matching your stack.
Does my agent run on hosted servers, or in my own process?In your own process - there is no hosted control plane. What leaves your machine is only what your chosen model provider receives.
Is it free to use, even commercially?Yes - Apache License 2.0, a permissive license that allows commercial use.
What is the difference between the harness and the SDKs?The harness is a batteries-included agent - start there for an optimized setup with benchmarked defaults. The Python and TypeScript SDKs are for when you want to own the agent loop yourself and wire up tools, model providers, and memory.
How do I control what the agent does at each step?Hooks let you intercept any step of the loop to log, validate, or redirect it, and steering handlers let agents correct themselves instead of failing silently. Guardrails catch mistakes before they run, and every decision is traced by default.
Can I try an agent from the terminal without writing an app?Yes - the monorepo ships a strands CLI, installed via npm, for prototyping and chatting with a harness agent straight from the terminal.
Why pick this over writing my own agent loop?A hand-rolled loop grows jobs you would otherwise build yourself: turn limits, token budgets, cancellation, stop reasons, MCP, memory and sessions, streaming, and evals all come in one SDK, and your code stays the same when you swap model backends.
What are similar projects?rrsi, hive, ruflo, qwen-code, Raven, cayu, PocketFlow, adk-python
Size
454.6 MB
Stars
9.3K
Age
1y
Commits · 90 Days