Skip to content
FossShelf
Home / Categories / For Engineers

Agentsview

Session archive and cost tracker for 60+ AI coding agents

Replaces Sessionwatcher

6.46K starsMITlast commit 16 Nov 2026
Screenshot of Agentsview

Who it's for

Developers managing AI spend across multiple agents

Agentsview gives a unified view of what Claude Code, Codex, Cursor, and other agents charged, broken down by model, project, and day. The `agentsview usage daily` command prints a cost summary; `agentsview usage statusline` outputs today's spend in a shell prompt. Recall extracts decisions from past sessions so you can check what a previous conversation tried before starting a new one.

You use a single agent with its own built-in cost reporting and do not need cross-agent comparisons. Claude Code shows per-session token counts; Agentsview's primary value is the unified cross-agent view and searchable history.

Engineering teams auditing agent activity and cost

PostgreSQL push mode mirrors every team member's local archive into a shared database. The fleet read-only server presents a merged Activity dashboard showing concurrency, cost, and tool usage across all machines and agents. SSH sync pulls sessions from remote dev machines without requiring a daemon install on each host.

Your team uses a single agent at low volume and each engineer's per-session cost reports are enough. The PostgreSQL sync adds setup complexity without proportional benefit when total monthly AI spend is under a few hundred dollars.

CI pipelines capturing exact agent cost per automated run

`agentsview capture run` wraps a single non-interactive `claude -p` or `codex exec --json` call, preserves child streams and exit status, and writes a versioned usage result with exact token counts. It starts no daemon, web server, or watcher, making it suitable for CI jobs where per-run cost attribution matters.

Your CI agent runs are infrequent and your model provider's billing dashboard already gives per-run cost visibility. The capture command is most useful when you run many agent jobs in parallel and need per-job attribution in your own tooling.

The problem

Using multiple AI coding agents creates a fragmentation problem. Each agent writes its own session files in its own format, and there is no central place to see what they cost, what they tried, or what worked. Developers running Claude Code alongside Codex, Cursor, or Forge end up with token costs spread across tools they check individually, and no way to search across past sessions when a similar problem comes up again. The deeper pain is cost visibility. AI coding agents can each burn hundreds of dollars a month in model charges, and without a unified view of token consumption per agent, model, and project, it is hard to know where spend is concentrating or whether a cheaper agent handles certain tasks just as well. Teams with several engineers running agents in parallel face the same problem multiplied, with no shared view of activity or cost.

How it works

60+ agent format support

Discovers and parses sessions from Claude Code, Codex, Cursor, Windsurf, Forge, Aider, Warp, and more than 60 other formats. A background daemon watches the session directories each agent already writes; no agent configuration is needed. Supports both file-based formats and cloud imports, including Claude.ai chats via Chrome and Codex Cloud sessions.

Token and cost tracking across all agents

Tracks token consumption and model charges across every agent in the archive. Pricing pulls from LiteLLM and OpenRouter with an offline fallback; cache-aware accounting separates prompt-cache creation and read tokens. Reports run from the pre-indexed archive, not raw file parsing, so daily cost summaries and per-model breakdowns are fast. The `agentsview usage statusline` command outputs a one-line summary for shell prompts.

Full-text and semantic session search

Full-text search (SQLite FTS5) matches words across all message content, with project and date filters accessible from the command palette. Opt-in semantic search indexes session content with any OpenAI-compatible embeddings endpoint; hybrid search combines both modes. Every match cites the conversation unit it came from so you can jump to the exact message.

Activity and analytics dashboards

The Activity dashboard shows peak agent concurrency, active versus idle time, agent-minutes across parallel sessions, and cost for any date range. The Analytics dashboard adds message-role comparisons, tool usage rates, and Git outcome totals. Tool sequences follow errors, retries, and recovery through recorded calls without running a model.

MCP server for agents to read their own history

Eight read-only MCP tools expose file edits, tool calls, child sessions, Activity reports, tool usage, cost comparisons, and offline guide search to connected agents. Native conversation-memory plugins for Claude Code and Codex bundle recall instructions and session-start refresh, letting agents check what a previous session already tried before starting.

Team sync via PostgreSQL and ClickHouse

An auto-push service mirrors each machine's SQLite archive into a shared PostgreSQL database; a read-only server presents the merged fleet view. Sessions can also be mirrored into DuckDB or pushed to ClickHouse for the analytics dashboard. SSH sync fetches sessions from remote Linux and macOS hosts without installing a daemon on the remote machine.

Features

  • 60+ agent format support
  • Token and cost tracking across all agents
  • Full-text and semantic session search
  • Activity and analytics dashboards
  • MCP server for agents to read their own history
  • Team sync via PostgreSQL and ClickHouse

How to install

Install on macOS and Linux with a single curl command, or use the Docker image for server deployment.

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

Windows PowerShell install:

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

Docker deployment:

docker run --rm -p 127.0.0.1:8080:8080 -v agentsview-data:/data ghcr.io/kenn-io/agentsview:latest

Recommended for this setup

Strengths

  • Local-first data model, no required accounts: The archive lives in SQLite on your machine by default. Session content only leaves the device through features you explicitly enable, such as PostgreSQL sync or hosted raw sync. A fresh install has no cloud dependency; the web UI, search, and cost reports all run locally. This matters for developers whose agent sessions contain source code, credentials, or private conversation history.
  • Single Go binary with fast install: Agentsview ships as one binary with no runtime dependencies. The macOS and Linux install is a one-line curl command; Homebrew, a Windows desktop app, and a Docker image cover other environments. The binary embeds the web UI, so there is no separate frontend to deploy or update.
  • MIT license, free for commercial self-hosting: MIT license means you can run Agentsview on your team's infrastructure for commercial use with no licensing fees and no restrictions on modification or redistribution. Unlike session-tracking tools that charge per seat or per storage unit, the self-hosted path scales with your server, not your team size.
  • Active development with 6,200+ GitHub stars: The repository had 6,271 stars and 661 forks as of late October 2026. The last commit was 2026-10-25, and the changelog shows near-weekly releases. Version 0.46.1 was current at publication, with new agent format support added regularly as the coding-agent ecosystem expands.

Trade-offs

  • Semantic search requires an external embeddings endpoint: Full-text search works out of the box, but semantic and hybrid search require configuring an OpenAI-compatible embeddings endpoint. There is no built-in embedding model; you need an API key from a provider that supports the embeddings format. Teams without access to an embeddings endpoint are limited to keyword-based search.
  • Team sync requires self-managed PostgreSQL or ClickHouse: The single-machine SQLite archive needs no backend beyond the binary. Sharing session data across a team requires setting up and maintaining a PostgreSQL or ClickHouse instance, configuring the auto-push service, and managing credentials. This is not a zero-effort setup for teams without existing database infrastructure.
  • 125 open issues including agent format edge cases: The GitHub repository had 125 open issues as of October 2026. New agent formats are added frequently as the ecosystem grows, and some formats have parsing edge cases or incomplete support. Recent release notes show ongoing fixes for specific agents like Antigravity; less-common agents may have incomplete transcript parsing.

Tech stack

Languages
Go, TypeScript, Svelte, Rust, Shell, Python, Makefile, CSS, JavaScript, PowerShell, HTML, Go Template, C, Dockerfile, HCL
Frameworks
Svelte
Databases
—
Tooling
—

FAQ

What AI coding agents does Agentsview support?

Agentsview parses sessions from more than 60 agents, including Claude Code, Codex, Cursor, Windsurf, Forge, Aider, and Warp. Aider requires manual configuration because it stores sessions per repository rather than in a central directory; all others are discovered automatically from their default directories. The supported formats list grows with each release as new agents gain adoption.

Is Agentsview free to use?

Yes. Agentsview is MIT-licensed and free to run on your own machine or server. There is no paid tier, no account required, and no usage limits on the self-hosted binary. The only cost is the machine or server you run it on, which for a personal install is zero.

Does Agentsview send my session data to a cloud service?

No data leaves your machine unless you explicitly configure a sharing feature. The default install uses a local SQLite archive and a loopback-only server. PostgreSQL sync, ClickHouse sync, hosted raw sync, and Generated Insights are all opt-in features that document what data they send and where.

Can Agentsview be used across multiple machines or by a team?

Yes. PostgreSQL push mode mirrors each machine's archive to a shared database; a read-only fleet server presents merged dashboards. SSH sync fetches sessions from remote Linux and macOS hosts without a remote daemon install. These features are opt-in and require setting up PostgreSQL or SSH access.

How does Agentsview differ from cost tracking built into Claude Code?

Claude Code shows per-session token counts for its own sessions. Agentsview adds cross-agent aggregation: it combines cost data from Claude Code, Codex, Cursor, Forge, and all other supported agents into one report with daily and per-model breakdowns. It also adds full-text and semantic search across all sessions, and a shared fleet view for teams.

Similar tools

More in Engineers