Skip to main content

Real-time AI chat proxy visualizer

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatviz-1.7.0-py3-none-any.whl (92.8 kB view details)

Uploaded Python 3

File details

Details for the file chatviz-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: chatviz-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 92.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chatviz-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cda616d23beb0505c4ea228e4f78b3ab557b3ef0c66c990b73438f33dbb510f2
MD5 5a608a21d9c68544646f590fa9a46fe6
BLAKE2b-256 027267f16f90ec0f65f24c00ccf9ba95bf1d9b68bafd22a06796c10e22598b15

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatviz-1.7.0-py3-none-any.whl:

Publisher: release.yml on easytocloud/chatviz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page