Skip to main content

chatviz

Real-time visualization of AI agent conversations. chatviz sits between your agent and its LLM, capturing every message and rendering it live in a browser.

Install

uvx chatviz          # run directly, no install needed
pip install chatviz  # or install persistently

Two modes of operation

Standalone proxy

You run chatviz separately, then point your agent at it.

┌─────────┐   Anthropic API    ┌─────────┐   Anthropic API    ┌──────────────┐
│  Agent  │ ─────────────────► │ chatviz │ ─────────────────► │  LLM (upstream)│
└─────────┘                    └────┬────┘                    └──────────────┘
                                    │ SSE
                                    ▼
                              ┌───────────┐
                              │  Browser  │
                              │ :7890     │
                              └───────────┘

Start chatviz:

uvx chatviz [--port 7890] [--upstream URL] [--profile AWS_PROFILE]

Then configure your agent to use http://localhost:7890 as its base URL. For Claude Code:

export ANTHROPIC_BASE_URL=http://localhost:7890
export ANTHROPIC_API_KEY=any-value   # chatviz ignores it
claude

Open http://localhost:7890 in a browser to watch the conversation.


Inline — chatviz launches your agent

chatviz starts the proxy, then launches your agent as a subprocess with the right environment already set.

                              ┌─────────────────────────────────┐
                              │           chatviz               │
                              │                                 │
┌─────────┐  spawns + env    │  ┌────────────┐                 │
│ terminal│ ───────────────► │  │   Agent    │                 │
└─────────┘                  │  └─────┬──────┘                 │
                              │        │ Anthropic API          │
                              │        ▼                        │
                              │  ┌─────────────┐   upstream    │
                              │  │ proxy :7890 │ ────────────► │ LLM
                              │  └──────┬──────┘               │
                              │         │ SSE                   │
                              └─────────┼───────────────────────┘
                                        ▼
                                  ┌───────────┐
                                  │  Browser  │
                                  │ :7890     │
                                  └───────────┘

Start chatviz and Claude Code together:

uvx chatviz claude

With options:

uvx chatviz --port 7890 --upstream https://bedrock-mantle.eu-west-1.api.aws/anthropic --profile MyProfile claude
  • The proxy server logs go to chatviz.log in the current directory.
  • Claude's own output appears in the terminal as normal.
  • chatviz checks that the upstream speaks the Anthropic Messages API before starting. Pass --force to skip this check.

Options

Flag Default Description
--port PORT 7890 Port to listen on
--upstream URL env CHATVIZ_UPSTREAM Override upstream LLM endpoint
--profile NAME env CHATVIZ_AWS_PROFILE AWS profile for Bedrock Mantle signing
--force off Skip upstream compatibility check

Environment variables

Variable Description
CHATVIZ_UPSTREAM Upstream LLM base URL (default: pass requests through to Anthropic/OpenAI/Ollama)
CHATVIZ_AWS_PROFILE AWS named profile for SigV4 signing when upstream is *.api.aws

AWS Bedrock Mantle

See docs/bedrock.md for full setup instructions.

uvx chatviz --upstream https://bedrock-mantle.eu-west-1.api.aws/anthropic --profile MyProfile claude

Visualization

Open http://localhost:7890 while a conversation is running.

  • Color-coded messages by role: system prompt, user, assistant, tool calls, and tool results each have distinct colors. Each message is tagged with the API family and model used.
  • Token counter — the header shows cumulative input/output token totals across all captured messages (e.g. ↑12.3k ↓4.1k tokens).
  • Sequence view — when tool calls are present the UI automatically switches to a timeline/sequence layout showing the full call-and-result chain. Pure chat sessions use the standard chat bubble view.
  • Detail panel — click any message to open a side panel with full content, metadata, and the raw request body. Tool call panels show the tool name, input arguments, and the matching result in a structured layout.
  • JSON modal — double-click any message bubble to open a full-screen folding JSON viewer with collapsible nodes and path highlighting. Press Escape or click outside to close.

Metadata

Release files for chatviz 1.7.0

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

Built distribution (wheel)

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

Release files / chatviz-1.7.0-py3-none-any.whl

Download URL chatviz-1.7.0-py3-none-any.whl
Size 92.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cda616d23beb0505c4ea228e4f78b3ab557b3ef0c66c990b73438f33dbb510f2
BLAKE2b-256 checksum
How to use checksums
027267f16f90ec0f65f24c00ccf9ba95bf1d9b68bafd22a06796c10e22598b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.7.0 This release

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.9

1 release file

1.0.8

2 release files

1.0.7

2 release files

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