Quickstart (Local Python)
Get a forked Strands Base Agent running locally in under five minutes. This path is best for active development — just run restarts in seconds after a code change (stop it with Ctrl+C and run it again) and you have direct access to the venv for debugging.
If you'd rather not install Python 3.14+ and uv locally, see the Docker Compose quickstart.
Prerequisites
- Python 3.14 or newer (currently 3.15)
- uv >= 0.9 (matches the version pinned in
Dockerfile) - just command runner
- AWS credentials with Bedrock access (default model provider)
- Access to install
foundry-agent-*packages from the package locations configured inpyproject.toml
Install
-
Clone (or fork) the repository:
git clone <repo-url>cd strands-base-agent -
Install dependencies and pre-commit hooks:
just setupThe
pyproject.tomlconfigures the package locationsuvfetchesfoundry-agent-*packages from. Ifuv syncoruv lockfails to resolvefoundry-agent-*, verify network access to those locations. -
Configure the environment:
cp env.template .envAt minimum, set
STRANDS_API_KEYand your AWS credentials:python -c "import secrets; print(secrets.token_urlsafe(32))"Paste the result into
.envasSTRANDS_API_KEY=<value>. Also setAWS_PROFILEor export AWS credentials for Bedrock access. -
Edit
config.yamlwith your model and agent settings:model:provider: bedrockmodel_id: us.anthropic.claude-haiku-5-5agent_name: my-agentsystem_prompt: >You are an AI assistant specialized in your domain.
Run
Start the HTTP server:
just run
Or run a one-shot CLI query:
just demo "Tell me about Python"
Verify
With the server running, hit the health endpoint:
curl http://localhost:8000/api/v1/health
You should receive a JSON response with "status": "healthy". Then test a query:
curl -X POST http://localhost:8000/api/v1/query \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-key>" \
-d '{"query": "What is machine learning?"}' | jq .
What's Next
- Configuration — full reference for
config.yamland env var overrides - Adding tools — give your agent domain-specific capabilities
- Customizing the server — wire in custom session managers or model providers