ccglass

ccglassLocal Traffic Monitor for AI Coding Agents

ccglass is a specialized local traffic monitoring tool designed for AI coding agents. It provides real-time insights into prompts, tool schemas, message history, token usage, cache hits, costs, and streaming responses from tools like Claude Code, Codex, and OpenCode. This helps developers optimize efficiency and manage costs by demystifying the AI's internal workings.

free
AI coding agentslocal traffic monitorClaude CodeCodexOpenCodeDeepSeek-TUIKimitoken monitoringopen-source toolsdeveloper efficiencydebugging AI
Indexed
Updated
4.1 (0 Number of reviews)

Log in to rate the project

If you're deep into using AI coding assistants like Claude Code, Codex, or OpenCode, you've probably hit a wall: it's incredibly hard to tell what the AI is actually doing behind the scenes. How many requests did it make? How many tokens did it consume? Which parts were served from cache? What exactly did that streaming response say? This is precisely the problem ccglass aims to solve.

Peeking Inside the AI Black Box

At its core, ccglass functions as a local traffic interceptor. It runs on your development machine, capturing all communication between your AI coding agent and its backend API. This gives you an unprecedented look into the AI's thought process, revealing crucial details:

  • The exact prompt the AI received, unedited.
  • The tool schemas, or function definitions, that the AI considered or used.
  • The complete message history, showing the full conversational context.
  • Detailed metrics like token usage, cache hits, the cost per invocation, and a word-by-word breakdown of streaming responses.

All this information is presented in a structured, easy-to-digest view. Imagine your AI suddenly starts hallucinating; a quick glance at the message history can pinpoint exactly where the context got polluted, saving you hours of head-scratching.

Broad Compatibility and Easy Setup

ccglass currently supports a wide array of popular AI coding tools, including Claude Code, Codex CLI, OpenCode, DeepSeek-TUI, and Kimi. Essentially, if your AI agent communicates with its API over standard HTTP/HTTPS, ccglass can intercept that traffic. Getting started is a breeze – a single npm command is all it takes to install.

Once running, it automatically generates tamper-proof test summaries, which are incredibly useful for sharing with teammates or archiving for future reference. This can significantly cut down on those frustrating moments where everyone on a team is wondering, 'What did the AI even do there?'

Real-World Scenarios and Practical Value

Consider a scenario where you're using Claude Code to refactor a module. It takes two minutes to respond, and the output isn't quite right. With ccglass, you might discover an unusually high token consumption because of a cache miss, meaning the AI is repeatedly sending the same context. Armed with this insight, you can adjust your prompting strategy to encourage better reuse of previous results.

Another common pain point is debugging tool calls. Sometimes, an AI might invoke the wrong tool or pass incorrect parameters. ccglass allows you to inspect each tool call's inputs and outputs sequentially, which is far more efficient than sifting through endless terminal logs.

For indie developers and small teams, ccglass offers an invaluable, low-cost way to demystify the 'black box' behavior of AI coding agents. Previously, you might have relied on rough estimates or third-party billing dashboards to gauge costs. Now, you can pinpoint the exact cost of each API call. This precision directly impacts two critical decisions:

  • Tool Selection: Compare the true token consumption and response speeds of different agents.
  • Optimization: Refine your prompt engineering strategies to eliminate redundant requests and save money.

It's worth noting that ccglass currently requires manual certificate trust for HTTPS decryption and has limited support for agents using non-standard ports. However, given that it's completely open-source and free, these minor hurdles are easily manageable.

Actionable Takeaways for Developers

If you're a heavy user of AI coding tools, I highly recommend installing ccglass and letting it run for a day or two to gather some baseline data. You'll likely uncover some surprising insights:

  • Many perceived 'slowdowns' are actually network latency, not model inference time.
  • A significant portion of your token budget might be spent on repetitive system prompts.
  • Differences in caching strategies can drastically impact your overall costs.

In essence, ccglass transforms the AI coding black box into a glass box, offering transparency that can lead to significant improvements in efficiency and cost management. It's a pragmatic tool that deserves a spot in any AI-assisted developer's toolkit.

Pros & Cons

Pros

  • Free and open-source, lightweight
  • Supports major AI coding agents
  • Precise display of prompts, token costs, cache hits
  • Word-by-word playback of streaming responses
  • Facilitates debugging of tool calls

Cons

  • HTTPS decryption requires manual certificate configuration
  • Basic interface with limited advanced filtering
  • Limited support for non-standard port agents
  • Documentation and examples are somewhat sparse, requiring some self-exploration

Frequently Asked Questions

What do I need to install ccglass?

You'll need a Node.js environment. Simply install it globally via npm. Once installed, it automatically intercepts local HTTP/HTTPS traffic.

Will ccglass affect the performance of my AI coding agents?

Performance impact is negligible. ccglass operates as a passive listener and recorder; it doesn't modify requests or introduce noticeable latency.

Which AI coding agents does ccglass support?

It supports major tools like Claude Code, Codex CLI, OpenCode, DeepSeek-TUI, and Kimi. Essentially, any agent that communicates with its API using standard HTTP protocols will work.

Can ccglass capture HTTPS traffic?

Yes, but you'll need to manually install and trust the root certificate generated by ccglass. Once that's done, it can decrypt and monitor HTTPS traffic.

Does ccglass send my data to the cloud?

No. All data is stored and processed exclusively on your local machine. There are no cloud synchronization features, ensuring your privacy and data security.

Explore More

Similar Tools

Airouter

Airouter

Airouter is India's first unified AI router, specifically designed for local developers. It offers a single API to access top-tier models like GPT-4, Claude, and Gemini, all under a pay-as-you-go model. Crucially, it supports UPI payments, eliminating the common hurdles of international credit card rejections and mandatory subscriptions that plague Indian developers.

Nextbit

Nextbit

Nextbit offers AI inference APIs powered by bare-metal GPU clusters located in Europe. It delivers cost-effective, low-latency model deployment with full GDPR compliance, thanks to optimizations like KV-cache management and prefill/decode separation. Ideal for applications with strict data sovereignty requirements.

Aladeen

Aladeen is a local, read-only AI coding agent log analysis tool designed to automatically identify recurring failure patterns within your AI agent sessions. It helps developers quickly pinpoint bottlenecks, supporting tools like Claude Code, Codex, Gemini, and opencode. All processing is 100% local, ensuring no telemetry or data leaves your machine.

Palace Memory

Palace Memory

Palace Memory equips AI coding agents with persistent, searchable memory, integrating with tools like Cursor, Claude Code, and Codex via the MCP protocol. It helps agents remember architectural decisions, coding conventions, and past fixes, eliminating the need for repeated explanations in every session. This free, local, and open-source solution (MIT core) also supports team collaboration.

Tychi AI

Tychi AI is a self-custodial wallet designed specifically for AI agents, offering a human-interactive REPL interface. It keeps private keys local, ensures signatures never leave your machine, and enforces policy limits before any on-chain operation. Tychi supports multiple wallets, gasless routing, and integrates with popular AI tools like Cursor and Claude.

Stride

Stride

Stride is an AI-native workspace designed to accelerate project development from planning to release. Unlike typical AI coding tools, it directly integrates with real project data and leverages the MCP protocol to collaborate with Claude Code and Codex, executing tasks rather than just generating text. Teams can move from idea to deployment without switching tools, significantly boosting efficiency.

Open-source Alternatives

guidellm: Optimize LLM Deployment Performance

guidellm is an open-source tool designed to evaluate and optimize Large Language Model (LLM) inference performance in production environments. It offers stress testing, latency analysis, and throughput assessment, helping developers pinpoint bottlenecks and fine-tune deployment configurations. Developed by the vLLM team, it's ideal for teams needing granular control over their LLM service tuning.

Kun: Embed AI Agent Workspaces in Your Apps

Kun is an open-source AI Agent workspace, built with TypeScript, designed for seamless integration into your applications. It offers dedicated Code and Write modes, providing developers with a customizable, intelligent interaction environment that supports multi-turn conversations, tool calling, and context management. It's a pragmatic solution for adding AI capabilities without building from scratch.

terax-ai: AI-Powered Terminal Workbench for Devs

terax-ai is a remarkably lightweight (just 7MB) open-source, terminal-first AI development workbench. Designed for command-line enthusiasts, it integrates AI assistance directly into your familiar terminal environment, offering lightning-fast startup and minimal resource usage. It's perfect for developers seeking efficiency and a streamlined workflow without the bloat of traditional IDEs.

ai-gateway: Unify Your Generative AI API Management

ai-gateway is an open-source project built on Envoy Gateway, offering a unified API gateway to manage access to diverse generative AI services. It simplifies AI application integration and operations by providing features like load balancing, caching, and rate limiting for various AI providers.

go-micro: Go Microservice Framework for AI Agents

go-micro is a Go microservices framework optimized for building AI agents. It provides service discovery, load balancing, message encoding, and event-driven capabilities out of the box, enabling developers to quickly build scalable distributed AI systems. With over 22,000 GitHub stars, it's a popular choice for Go developers diving into microservices and AI agent architectures.

Kiln: The All-in-One AI System Evaluation Toolkit

Kiln is an open-source Python framework designed to streamline the entire AI system development lifecycle, from initial build to continuous optimization. It integrates crucial components like evals, RAG, agents, fine-tuning, synthetic data generation, and dataset management, making AI workflows more efficient and controllable. Ideal for teams and individuals focused on deep AI performance tuning.