Skip to main content

Local web viewer for AI agent sessions

Project description

agentsview

Browse, search, and track costs across all your AI coding agents. One binary, no accounts, everything local.

Analytics dashboard

Install

# macOS / Linux
curl -fsSL https://agentsview.io/install.sh | bash

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://agentsview.io/install.ps1 | iex"

Or download the desktop app (macOS / Windows) from GitHub Releases.

Quick Start

agentsview serve           # start server, open web UI
agentsview usage daily     # print daily cost summary

On first run, agentsview discovers sessions from every supported agent on your machine, syncs them into a local SQLite database, and opens a web UI at http://127.0.0.1:8080.

Token Usage and Cost Tracking

agentsview usage is a fast, local replacement for ccusage and similar tools. It tracks token consumption and compute costs across all your coding agents -- not just Claude Code. Because session data is already indexed in SQLite, queries are over 100x faster than tools that re-parse raw session files on every run.

# Daily cost summary (default: last 30 days)
agentsview usage daily

# Per-model breakdown
agentsview usage daily --breakdown

# Filter by agent and date range
agentsview usage daily --agent claude --since 2026-04-01

# One-line summary for shell prompts / status bars
agentsview usage daily --all --json
agentsview usage statusline

Features:

  • Automatic pricing via LiteLLM rates (with offline fallback)
  • Prompt-caching-aware cost calculation (cache creation / read tokens)
  • Per-model breakdown with --breakdown
  • Date filtering (--since, --until, --all), agent filtering (--agent)
  • JSON output (--json) for scripting
  • Timezone-aware date bucketing (--timezone)
  • Works standalone -- no server required, just run the command

Session Stats

agentsview session stats emits window-scoped analytics over recorded sessions: totals, archetypes (automation vs. quick/standard/deep/marathon), distributions for session duration, user-message count, peak context, and tools-per-turn, plus cache economics, tool/model/agent mix, and a temporal hourly breakdown. The --format json output follows a versioned v1 schema (schema_version: 1) suitable for downstream consumers.

# Human-readable summary over the last 28 days
agentsview session stats

# Machine-readable JSON over a fixed date range
agentsview session stats --format json --since 2026-04-01 --until 2026-04-15

# Restrict to one agent and inspect the schema
agentsview session stats --format json --agent claude | jq '.schema_version'

Session Browser

Dashboard Session viewer
Dashboard Session viewer
Search Activity heatmap
Search Heatmap
  • Full-text search across all message content (FTS5)
  • Token usage and cost dashboard -- per-session and per-model cost breakdowns, daily spend charts, all in the web UI
  • Analytics dashboard -- activity heatmaps, tool usage, velocity metrics, project breakdowns
  • Live updates via SSE as active sessions receive new messages
  • Keyboard-first navigation (j/k/[/], Cmd+K search, ? for all shortcuts)
  • Export sessions as HTML or publish to GitHub Gist

Supported Agents

agentsview auto-discovers sessions from all of these:

Agent Session Directory
Claude Code ~/.claude/projects/
Codex ~/.codex/sessions/
Copilot CLI ~/.copilot/
Gemini CLI ~/.gemini/
OpenCode ~/.local/share/opencode/
OpenHands CLI ~/.openhands/conversations/
Cursor ~/.cursor/projects/
Amp ~/.local/share/amp/threads/
iFlow ~/.iflow/projects/
VSCode Copilot ~/Library/Application Support/Code/User/ (macOS)
Pi ~/.pi/agent/sessions/
OpenClaw ~/.openclaw/agents/
Kimi ~/.kimi/sessions/
Kiro CLI ~/.kiro/sessions/cli/
Kiro IDE ~/Library/Application Support/Kiro/ (macOS)
Cortex Code ~/.snowflake/cortex/conversations/

Each directory can be overridden with an environment variable. See the configuration docs for details.

PostgreSQL Sync

Push session data to a shared PostgreSQL instance for team dashboards:

agentsview pg push       # push local data to PG
agentsview pg serve      # serve web UI from PG (read-only)

See PostgreSQL docs for setup and configuration.

Privacy

No telemetry, no analytics, no accounts. All data stays on your machine. The server binds to 127.0.0.1 by default. The only outbound request is an optional update check on startup (disable with --no-update-check).

Documentation

Full docs at agentsview.io: Quick Start -- Usage Guide -- CLI Reference -- Configuration -- Architecture


Development

Requires Go 1.25+ (CGO), Node.js 22+.

make dev            # Go server (dev mode)
make frontend-dev   # Vite dev server (run alongside make dev)
make build          # build binary with embedded frontend
make install        # install to ~/.local/bin
make test           # Go tests (CGO_ENABLED=1 -tags fts5)
make lint           # golangci-lint
make e2e            # Playwright E2E tests

Pre-commit hooks via prek: make install-hooks after cloning (requires prek and uv).

Project Layout

cmd/agentsview/     CLI entrypoint
internal/           Go packages (config, db, parser, server, sync, postgres)
frontend/           Svelte 5 SPA (Vite, TypeScript)
desktop/            Tauri desktop wrapper

Acknowledgements

Inspired by claude-history-tool by Andy Fischer and claude-code-transcripts by Simon Willison.

License

MIT

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 Distributions

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

agentsview-0.24.0-py3-none-win_amd64.whl (7.8 MB view details)

Uploaded Python 3Windows x86-64

agentsview-0.24.0-py3-none-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

agentsview-0.24.0-py3-none-manylinux_2_28_aarch64.whl (7.0 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

agentsview-0.24.0-py3-none-macosx_11_0_x86_64.whl (7.8 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

agentsview-0.24.0-py3-none-macosx_11_0_arm64.whl (7.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file agentsview-0.24.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: agentsview-0.24.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agentsview-0.24.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 331a415127b9dde5b18ef4f9e4bfbf5cd8d02f88f9bcfaebc04f758037b2164a
MD5 e25f4a08e90f78a148e94519a8bfdeac
BLAKE2b-256 4e84946bfdf65c9a36017b688683d800350f54126f2eb125dfc13cb9e1b61845

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsview-0.24.0-py3-none-win_amd64.whl:

Publisher: release.yml on wesm/agentsview

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

File details

Details for the file agentsview-0.24.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for agentsview-0.24.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 47c8b9ff5ee94388b8939ffad38f8a3ce169359dfc5ae5a8693b8fdd9133c154
MD5 6beb458f39e48b7a9a262729467b1863
BLAKE2b-256 dcb41a57b7c5e81b28058d9b516bca191fe8b0bbf4b1e4e6b34d72b7c0e8afec

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsview-0.24.0-py3-none-manylinux_2_28_x86_64.whl:

Publisher: release.yml on wesm/agentsview

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

File details

Details for the file agentsview-0.24.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for agentsview-0.24.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7ac2def9e729cc470d1cb8f141ae763ecaf7e1cdc6b5873ea98096a7b60b6f8a
MD5 20da83cf98b9731b3dda00c71a7c8d5a
BLAKE2b-256 2f7a7eb68fa080d14a879e098b04137271b168ff1b31c6e95fe14728a7fa3b8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsview-0.24.0-py3-none-manylinux_2_28_aarch64.whl:

Publisher: release.yml on wesm/agentsview

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

File details

Details for the file agentsview-0.24.0-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for agentsview-0.24.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 cfe4dc75a8bcd15168770ff543472af6898623603a6ca46bef3bc729ed006bd7
MD5 c39db91ab49c515c0a0a3acf8a2c7f18
BLAKE2b-256 a5f65e427896887a4b2a0941a38fa46fceb9a54b048b646d974e52a6bbdad01a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsview-0.24.0-py3-none-macosx_11_0_x86_64.whl:

Publisher: release.yml on wesm/agentsview

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

File details

Details for the file agentsview-0.24.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agentsview-0.24.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0aea9b470b1239bce843f218a0dac5fb6871f3b24a51213b23fb6702e29675ca
MD5 0a155f39d98ab1fba29449754e680d16
BLAKE2b-256 4ee1c84fc4ba15aa1a8e294bf5ad12690df08d4646db743f0f7b28bd50e302cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentsview-0.24.0-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on wesm/agentsview

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