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.login 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
--forceto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatviz-1.5.0-py3-none-any.whl.
File metadata
- Download URL: chatviz-1.5.0-py3-none-any.whl
- Upload date:
- Size: 87.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63b2a3574a1456061ece717a67e9268c90dbef57dc65fc7c0c0269148ce21822
|
|
| MD5 |
ec217f00850743e1cb289f8a76b71d8d
|
|
| BLAKE2b-256 |
0776a0acd83d911b4be61b08353f9cf23722f712564bc486a2bafde46af2a6a3
|
Provenance
The following attestation bundles were made for chatviz-1.5.0-py3-none-any.whl:
Publisher:
release.yml on easytocloud/chatviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatviz-1.5.0-py3-none-any.whl -
Subject digest:
63b2a3574a1456061ece717a67e9268c90dbef57dc65fc7c0c0269148ce21822 - Sigstore transparency entry: 1361785725
- Sigstore integration time:
-
Permalink:
easytocloud/chatviz@be9b7a798392e7a8843fd9d74dab2df0388b8955 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/easytocloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be9b7a798392e7a8843fd9d74dab2df0388b8955 -
Trigger Event:
push
-
Statement type: