Skip to main content

bedrock-probe

PyPI Python License: MIT

Test and search Amazon Bedrock foundation models across regions, endpoints, APIs, and cross-Region inference scopes — from one CLI.

bedrock-probe works against the two Bedrock inference surfaces:

  • runtime — the AWS-native bedrock-runtime endpoint, invoked via the Converse API. Broadest coverage; automatically resolves cross-Region inference profiles (e.g. us.openai.gpt-5.6-terra) for models that require them.
  • mantle — the OpenAI/Anthropic-native bedrock-mantle endpoint. Each model speaks exactly one of three API surfaces, and the tool auto-routes:
    • chat → /v1/chat/completions (deepseek, qwen, gemma-3, gpt-oss, mistral, nvidia, minimax, zai, …)
    • responses → /openai/v1/responses (OpenAI GPT-5.x)
    • messages → /anthropic/v1/messages (Anthropic Claude)

Install

pip install bedrock-probe

# Optional: enable the mantle "--sdk openai" path (OpenAI SDK + Bedrock token)
pip install "bedrock-probe[openai]"

Requires Python 3.9+ and AWS credentials via the standard AWS CLI chain (env vars, shared config, SSO cache, IAM role / IMDS). boto3/botocore and rich-click are installed automatically.

Usage

After install, the bedrock-probe command is available. test is the default command, so you can omit it.

# Test every runtime model in one Region (Converse, default endpoint)
bedrock-probe --regions us-east-1

# Test the mantle endpoint (auto-routes chat / responses / messages)
bedrock-probe --regions us-east-1 --endpoint mantle

# Restrict by provider prefix (--labs) or id substring (--models)
bedrock-probe --regions us-east-1 --labs openai,anthropic
bedrock-probe --regions us-east-1 --models gpt-oss,deepseek

# Multiple Regions, more concurrency
bedrock-probe --regions us-east-1,us-west-2 --workers 8

# Also runnable as a module
python -m bedrock_probe --regions us-east-1

search — availability discovery (no invocation)

Find where and how a model can be reached — region, endpoint, API, and inference scope (in-region / geo / global) — plus the exact id to invoke with.

# Where is gpt-5.6-terra available, and how?
bedrock-probe search --models gpt-5.6-terra

# All Anthropic models, specific Regions, runtime only
bedrock-probe search --labs anthropic --regions us-east-1,us-west-2 --endpoint runtime

Example output:

 Model ID               Endpoint   Region      Scope       API         Invoke As
 ───────────────────────────────────────────────────────────────────────────────────────────
 openai.gpt-5.6-terra   mantle     us-east-1   in-region   responses   (bare)
 openai.gpt-5.6-terra   runtime    us-east-1   geo         converse    us.openai.gpt-5.6-terra
 openai.gpt-5.6-terra   runtime    eu-west-1   global      converse    global.openai.gpt-5.6-terra

search scans a built-in set of major commercial Regions when --regions is not given, and scans both endpoints unless --endpoint restricts it.

Options

Option Description
--regions AWS Region id(s), comma- or space-separated (also accepted positionally).
--endpoint {runtime,mantle} Endpoint. test defaults to runtime; search scans both if unset.
--labs Comma-separated provider prefixes (id before the first .), e.g. openai,anthropic.
--models Comma-separated model-id substrings. Combines with --labs.
--api test only. runtime: converse (default) / converse_stream; mantle: auto (default) / chat / responses / messages.
--sdk (mantle only) sigv4 (default, no extra deps) or openai (uses the OpenAI SDK; needs the [openai] extra + a Bedrock API key; covers chat + responses).
--prompt The single prompt sent to every model.
--max-tokens Max output tokens per request (default: 512).
--workers Concurrent model calls per Region (default: 6).
--timeout Per-model inference timeout in seconds (default: 45).
--all-modalities / --text-only (runtime) also test non-text models. Default: text only.
--stream / --no-stream Live per-model output (default on) vs a table at the end.
--summary-table Also print the full per-Region table at the end.
--profile AWS CLI profile (defaults to the standard credential chain).
--output-dir Directory for the CSV output (default: current dir).

Output

  • Live, colorized, streamed results (one line per model as it completes).
  • A timestamped CSV report:
    • test → <datetime>.bedrock.<endpoint>.test.csv
    • search → <datetime>.bedrock.search.csv

Result statuses: PASS (answered), EMPTY (200 but no text), FAIL (model/API error, e.g. wrong route or legacy model), ERROR (timeout / transport).

Press Ctrl-C at any time to stop; the tool exits promptly and writes partial results.

Notes

  • Some models are only reachable via a specific API/scope. On runtime, models marked INFERENCE_PROFILE-only are auto-invoked through their cross-Region profile id (us./eu./apac./global.). On mantle, --api auto tries chat → responses → messages until one accepts the model.
  • The mantle endpoint is only officially available in a subset of Regions; a Region that answers GET /v1/models but is not officially supported may advertise models yet time out on inference. Such Regions are flagged.

Development

git clone https://github.com/jazst21/bedrock-probe
cd bedrock-probe
pip install -e ".[dev,openai]"

python -m build          # build sdist + wheel into dist/
twine check dist/*       # validate metadata

License

MIT — see LICENSE.

"Amazon Bedrock" and "AWS" are trademarks of Amazon.com, Inc. or its affiliates. This is an independent community project and is not affiliated with or endorsed by AWS.

Metadata

Release files for bedrock-probe 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bedrock-probe 0.1.2
File Size Uploaded Provenance Actions
bedrock_probe-0.1.2.tar.gz 20.3 kB With provenance Details for bedrock_probe-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bedrock-probe 0.1.2
File Interpreter ABI Platform Actions
bedrock_probe-0.1.2-py3-none-any.whl Python 3 none any Details for bedrock_probe-0.1.2-py3-none-any.whl

Total release size: 41.8 kB

Release files / bedrock_probe-0.1.2.tar.gz

Download URL bedrock_probe-0.1.2.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00391929c2b468f8a2ba9ea8f50affc694f5b650fe99cb7180517d330654fa01
BLAKE2b-256 checksum
How to use checksums
bb66996f527236181b2023748038ca253d32105871a0e301f6771e0b628c78c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bedrock_probe-0.1.2-py3-none-any.whl

Download URL bedrock_probe-0.1.2-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
517a3fef8651363e465fca18bc7492aaeb669901e21c33df9df03c3de9ba5d40
BLAKE2b-256 checksum
How to use checksums
e661fbd973962004175b278dd6201e9a612608ded90f85907fd84a0fb1d7ce00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Security for bedrock-probe 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bedrock_probe-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page