Skip to main content

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 in pyproject.toml

Install​

  1. Clone (or fork) the repository:

    git clone <repo-url>
    cd strands-base-agent
  2. Install dependencies and pre-commit hooks:

    just setup

    The pyproject.toml configures the package locations uv fetches foundry-agent-* packages from. If uv sync or uv lock fails to resolve foundry-agent-*, verify network access to those locations.

  3. Configure the environment:

    cp env.template .env

    At minimum, set STRANDS_API_KEY and your AWS credentials:

    python -c "import secrets; print(secrets.token_urlsafe(32))"

    Paste the result into .env as STRANDS_API_KEY=<value>. Also set AWS_PROFILE or export AWS credentials for Bedrock access.

  4. Edit config.yaml with your model and agent settings:

    model:
    provider: bedrock
    model_id: us.anthropic.claude-haiku-5-5

    agent_name: my-agent
    system_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​