Skip to main content

Capturly

Record, replay, and debug any HTTP API — with built-in AI traffic intelligence

Capturly is an HTTP proxy that captures, replays, and inspects API traffic. It works with any REST/GraphQL endpoint but goes deeper on AI protocols — automatically detecting OpenAI, AGUI (Agent GUI), and generic Bedrock Converse traffic, extracting prompts, combining supported streaming chunks, and surfacing tool calls.

Quick Start

# Install
pip install capturly

# Point at OpenAI and watch traffic
capturly --mode log --backend https://api.openai.com --combine-chunks

# Open dashboard at http://localhost:9090
# See your system prompts, tool definitions, and complete conversations

Use Cases

Debug AI Applications

See exactly what your app sends to OpenAI:

capturly --mode log --backend https://api.openai.com --combine-chunks
# Configure your app to use http://localhost:9999 instead of api.openai.com

The dashboard extracts:

  • System prompts (including multi-part array content)
  • Tool definitions and tool calls
  • Token usage
  • Complete conversation history (streaming chunks combined)
  • AGUI agent runs: messages, tool calls, reasoning, and state

Inspect Bedrock Converse Traffic

Capturly inspects generic Bedrock Converse JSON and ConverseStream binary Amazon EventStream traffic for Claude and other compatible models, including AWS /model/{id}/converse and /model/{id}/converse-stream endpoints and compatible gateways. This does not include the native Anthropic Messages API. The dashboard shows system and message history, new inputs, tools and results, generated text, usage, and stop reason. EventStream inspection is always enabled; --combine-chunks applies to SSE only.

Capturly forwards requests but does not provide credentials or re-sign requests with AWS SigV4. Use authentication that is already valid for the upstream endpoint, or a gateway that handles authentication; do not assume local SDK signing works automatically through the proxy.

Create Deterministic Test Fixtures

Record real API responses, replay them in tests:

# Record once
capturly --mode record --backend https://api.stripe.com
curl http://localhost:9999/v1/charges

# Replay forever (no network, instant, deterministic)
capturly --mode replay
pytest tests/

Performance Testing

Stress test your service with cached responses:

# Replay with zero delay (simulate fast API)
capturly --mode replay --delay 0

# Or simulate slow upstream
capturly --mode replay --delay 2000

Development Speedup

Cache common endpoints, record new ones automatically:

capturly --mode hybrid --backend https://api.example.com
# First request: hits backend, caches response
# Subsequent requests: instant replay from cache

Dashboard

The built-in web dashboard (default: http://localhost:9090) shows a newest-first traffic list with filters and tag chips (AI, AGUI, SSE, Tools, Tool Results), plus per-request detail views that surface system prompts, new inputs vs. conversation history, tool calls, token usage, and AGUI agent runs. See the Dashboard Guide.

Modes

Mode Behavior Use When
record Proxy to backend, save responses Capturing test fixtures
replay Return saved responses (no backend) Running tests, offline dev
hybrid Replay if cached, record if new Day-to-day development
log Proxy and persist full traffic Debugging, AI inspection

Configuration

CLI arguments:

capturly --mode log --backend https://api.openai.com --port 8080

Environment variables:

export CAPTURLY_RECORDINGS_DIR=./recordings
capturly --mode record --backend https://api.example.com

Installation

pip install capturly

Requirements: Python 3.9+

Documentation

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE file.

Metadata

Release files for capturly 0.10.0

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

Source distribution (sdist)

Source distribution for capturly 0.10.0
File Size Uploaded Provenance
capturly-0.10.0.tar.gz 227.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for capturly 0.10.0
File Interpreter ABI Platform
capturly-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 289.1 kB

Release files / capturly-0.10.0.tar.gz

Download URL capturly-0.10.0.tar.gz
Size 227.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11349287cd731c194fa0e0bdc214b78a83f44c4e4d0a05d7b1954a7259c3653b
BLAKE2b-256 checksum
How to use checksums
67084e02f9f4d135ab9b3ed848b1d2c5f8ec5dc5c71347b376369400e9a4cca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 23, 2026.

Transparency log

Release files / capturly-0.10.0-py3-none-any.whl

Download URL capturly-0.10.0-py3-none-any.whl
Size 61.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1e18f063fe4547bf205e72b6d0802f4a9c5b31c50c8d612ad4fa72026709f3e
BLAKE2b-256 checksum
How to use checksums
12dc38dbd64b6e9637ff78e2eb5088e9b396f5c4003819572cae35b05289684d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 23, 2026.

Transparency log

Security for capturly 0.10.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for capturly-0.10.0.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 Oct 23, 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