Directories
¶
| Path | Synopsis |
|---|---|
|
Package streamjson reads the machine-readable output modes agent CLIs offer.
|
Package streamjson reads the machine-readable output modes agent CLIs offer. |
|
cmd
|
|
|
toktop
command
toktop: btop-style dashboard for LLM inference engines and the agents hammering them.
|
toktop: btop-style dashboard for LLM inference engines and the agents hammering them. |
|
internal
|
|
|
agentwatch
Package agentwatch reports token throughput for AI coding agents running on this machine.
|
Package agentwatch reports token throughput for AI coding agents running on this machine. |
|
bearer
Package bearer carries one process-wide optional Bearer token applied to engine HTTP requests (routers like OmniRoute require API keys even for model listing).
|
Package bearer carries one process-wide optional Bearer token applied to engine HTTP requests (routers like OmniRoute require API keys even for model listing). |
|
collector
Package collector polls providers on an interval, derives token rates from monotonic counters, and fans snapshots out to the UI.
|
Package collector polls providers on an interval, derives token rates from monotonic counters, and fans snapshots out to the UI. |
|
core
Package core defines the shared data model flowing from collectors to the UI.
|
Package core defines the shared data model flowing from collectors to the UI. |
|
demo
Package demo simulates a small inference fleet so toktop has something to show without any real backends.
|
Package demo simulates a small inference fleet so toktop has something to show without any real backends. |
|
gpu
Package gpu samples accelerator telemetry across vendors.
|
Package gpu samples accelerator telemetry across vendors. |
|
httperr
Package httperr renders non-200 engine responses as single-line errors.
|
Package httperr renders non-200 engine responses as single-line errors. |
|
ingest
Package ingest runs a tiny localhost HTTP endpoint so agents, harnesses and scripts can push token-usage events that toktop renders live.
|
Package ingest runs a tiny localhost HTTP endpoint so agents, harnesses and scripts can push token-usage events that toktop renders live. |
|
probe
Package probe fires small streaming generations at backends to measure time-to-first-token and decode throughput the way clients experience it.
|
Package probe fires small streaming generations at backends to measure time-to-first-token and decode throughput the way clients experience it. |
|
procs
Package procs discovers local inference engines by inspecting running processes rather than guessing ports.
|
Package procs discovers local inference engines by inspecting running processes rather than guessing ports. |
|
provider
Package provider implements discovery and metric scraping for local inference backends: Ollama, vLLM, SGLang, TRT-LLM/Triton, llama.cpp, LM Studio, MLX, KoboldCpp and further engines fingerprinted by their HTTP surface, plus a generic OpenAI-compatible fallback.
|
Package provider implements discovery and metric scraping for local inference backends: Ollama, vLLM, SGLang, TRT-LLM/Triton, llama.cpp, LM Studio, MLX, KoboldCpp and further engines fingerprinted by their HTTP surface, plus a generic OpenAI-compatible fallback. |
|
remote
Package remote attaches toktop to engines on other hosts over one long-lived ssh connection: target parsing, host key handling, discovery of listening inference ports and periodic vitals sampling.
|
Package remote attaches toktop to engines on other hosts over one long-lived ssh connection: target parsing, host key handling, discovery of listening inference ports and periodic vitals sampling. |
|
selfreload
Package selfreload watches the running executable and signals when it has been rebuilt, so `go build` + save gives an instantly fresh dashboard without losing your session.
|
Package selfreload watches the running executable and signals when it has been rebuilt, so `go build` + save gives an instantly fresh dashboard without losing your session. |
|
selfupdate
Package selfupdate replaces the running binary with a newer release.
|
Package selfupdate replaces the running binary with a newer release. |
|
sysmon
Package sysmon samples host vitals (RAM, swap, load, temperatures, CPU model) using each platform's native interfaces.
|
Package sysmon samples host vitals (RAM, swap, load, temperatures, CPU model) using each platform's native interfaces. |
|
ui
Shared formatting and small layout helpers used by the renderers in ui.go: number/duration/byte formatting plus visible-width text cutting.
|
Shared formatting and small layout helpers used by the renderers in ui.go: number/duration/byte formatting plus visible-width text cutting. |
Click to show internal directories.
Click to hide internal directories.