Explore easy-to-use examples to get started with Strands Agents.
The examples in this repository are for demonstration and educational purposes only. They demonstrate concepts and techniques but are not intended for direct use in production. Always apply proper security and testing procedures before using in production environments.
Quick Start
Python
Prerequisites:
Python 3.10 or higher
pip package manager
Verify with: pip --version or pip3 --version
Usually comes bundled with Python 3.4+ installers from python.org
If pip is missing, install using one of these methods:
hljs language-bash
# Method 1 - Use Python's built-in module
python -m ensurepip --upgrade
# Method 2 - Download and run the official installer
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Step 1: Create Virtual Environment
hljs language-bash
# Create virtual environment
python -m venv venv
# Activate virtual environment# On macOS/Linux:source venv/bin/activate
# On Windows:
venv\Scripts\activate
Step 2: Install
hljs language-bash
pip install strands-agents strands-agents-tools
Your First Agent:
hljs language-python
from strands import Agent
agent = Agent()
response = agent("Hello! Tell me a joke.")
print(response)