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. Messages are color-coded by role (system prompt, user, assistant, tool calls/results) and tagged with the model and API family used.

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.4.0-py3-none-any.whl (87.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatviz-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 87.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec93c730141a91a2a7d54018f897b61932fe9046056905d91736668eb47e8d87
MD5 b6123ffc82a8a28eb1cd56979bb1d648
BLAKE2b-256 9cb2ae83117ac160cdc563b2ffc0a94b8b1f1d5b4c016f7d61eea5ea5a00d28c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatviz-1.4.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