Runmark is a self-hosted telemetry service for AI coding workflows. It centralizes sessions from Cursor, OpenCode, Codex, Claude Code, and Antigravity into one dashboard, tracking tokens, costs, tool calls, deliverables, and cross-machine memory.
- Multi-client collection: Ingests sessions from Cursor, OpenCode, Codex, Claude Code, CodeBuddy, WorkBuddy, Grok Build, Antigravity, and OTLP tools like magpie.
- Token and cost tracking: Categorizes input, output, cache read/write, and reasoning tokens, aggregates identical models across providers, and tracks costs in USD and CNY over today, 24h, 7d, current month, or all-time windows.
- Trace inspection: Dense call-chain view for reviewing messages, LLM reasoning turns, and tool inputs/outputs within a single conversation.
- Summaries and matter archives: Distills deliverables from conversations into a matter board so you can track progress instead of digging through raw chat logs.
- Live project boards: Repository-level aggregation of token usage, costs, 42-day activity heatmaps, model breakdowns, and 4-stage matter workflow boards.
- Layered persistent memory: Cross-machine global and project-scoped storage for technical decisions, with optional named-Agent isolation, fast index lookup, and on-demand details (see docs/memory.md).
- Cursor billing reconciliation: Integrates with the Cursor Usage API to reconcile local traces against official billing records.
- Open API and background agents: Standard Ingest, Traces, and query endpoints with background agents for automated summaries and matter lifecycle tracking.
Overview |
Session list |
Session summary |
Matter archive |
[Cursor Hook] ─┐
[OpenCode Plugin] ─┤
[Codex Hook Plugin] ─┤
[Claude Code Plugin] ─┼─ POST /v1/ingest ─▶ [Runmark Server] ─▶ [Dashboard]
[CodeBuddy Plugin] ─┤
[WorkBuddy Plugin] ─┤
[Grok Build Hooks] ─┘
[magpie / OTLP tool] ── POST /v1/traces ─▶ [Runmark Server]
Deploy the server first, then install the client plugins on your development machines (or configure OTLP export). Per-client guides and troubleshooting are in the Dashboard help center at http://<server-address>:3456/#/help.
| Client Type | Getting Started |
|---|---|
| Cursor / OpenCode / Codex / Claude Code / CodeBuddy / WorkBuddy / Grok Build | Install clients |
Antigravity IDE / Desktop App / agy CLI |
Install from source |
| magpie and other OTLP tools | Configure magpie and OTLP tools (no plugin needed) |
Paste this prompt into your agent (Cursor, OpenCode, Codex, etc.), with your target environment details:
Please deploy Runmark server for me.
Target environment:
- Local machine / remote server (if remote, provide SSH command)
Follow skills/agent-tracker-setup/SKILL.md in this repository:
1. If remote, connect via SSH first
2. Run ./setup.sh --server
3. Verify the installation with curl on /health
4. Return the Dashboard URL, API Key, and help center link
Note: Deploy the server only. Do not install client plugins yet.
Skill reference: skills/agent-tracker-setup/SKILL.md. For Docker deployments, image builds, volume mounts, and upgrades, see the Docker deployment guide.
Option B: Manual deployment and local development (expand)
On your target server:
git clone https://github.com/yee94/runmark.git /opt/agent-tracker
cd /opt/agent-tracker
./setup.sh --serverThe script checks prerequisites, installs dependencies, initializes SQLite, writes .env, registers a systemd service, and starts it. The terminal outputs your Dashboard URL and API Key. Verify:
curl http://<server-address>:3456/healthA {"status":"ok",...} response confirms the service is up.
git clone https://github.com/yee94/runmark.git
cd runmark
bun install
cd packages/server && bun devDashboard runs at http://localhost:3456/. Rerunning ./setup.sh will not overwrite existing configuration.
Restart the service after pulling new code or updating the package. On startup, missing columns and indexes are created automatically with CREATE INDEX IF NOT EXISTS, including composite indexes for session lists and traces. Existing historical records, tokens, and costs remain untouched. On larger databases, initial index creation may take a moment before /health responds.
Monthly payload offloading relies on the updated external updater script to migrate automatically. Backups must include both the main database and monthly files. Inline all payloads back into the main database before downgrading to an older server version. See the monthly storage and rollback guide.
Once the server is running, install client plugins on your development machines using @runmarks/runmark.
Paste this prompt into your local agent:
Please install Runmark client plugins on this machine.
Server settings:
- Dashboard / Ingest endpoint: http://<server-address>:3456
- API Key: <server API key>
Follow skills/agent-tracker-clients/SKILL.md:
1. List available clients and let me choose; do not default to all
2. Verify or create ~/.config/runmark/env with RUNMARK_ENDPOINT and RUNMARK_API_KEY
3. Run: npx @runmarks/runmark --clients <chosen clients>
4. Tell me which applications to restart and how to verify in the Dashboard
Skill reference: skills/agent-tracker-clients/SKILL.md.
- Write the configuration file (if it already exists, verify values without overwriting):
mkdir -p ~/.config/runmark
cat > ~/.config/runmark/env << 'EOF'
export RUNMARK_ENDPOINT="http://<server-address>:3456"
export RUNMARK_API_KEY="<server API key>"
EOF- Run the installer:
# Interactive mode: detects tools; running again pre-selects installed plugins for updates
npx @runmarks/runmark
# Update installed Runmark plugins non-interactively
npx @runmarks/runmark --clients installed
# Update installed plugins; if none installed, install all detected host tools
npx @runmarks/runmark --yes
# Install all or specific clients
npx @runmarks/runmark --clients all
npx @runmarks/runmark --clients cursor,codex,workbuddy
# Uninstall a specific plugin
npx @runmarks/runmark --clients codebuddy --uninstallIf npx @runmarks/runmark is not found, specify the package or run with bunx:
npx -p @runmarks/runmark runmark
bunx @runmarks/runmark- Restart clients: run
/reload-pluginsinside Claude Code, CodeBuddy, or WorkBuddy; start a new session in Grok Build; approve plugin hooks in Codex or Claude family apps if prompted. - Verify reporting: open Dashboard sessions and filter by
agent=cursor|opencode|codex|claude|codebuddy|workbuddy|grok.
Supports macOS and Linux on Node.js 18+ with Runmark Server 0.2.55 or later (including 0.2.55). With ~/.config/runmark/env configured, build and install from source while the npm release is pending:
bun install --frozen-lockfile
bun --filter @runmarks/antigravity-plugin build
node packages/plugin-antigravity/bin/install.mjsRestart Antigravity and start a session, then check the Dashboard filtered by agent=antigravity. Use /hooks in the agy CLI to inspect active hooks. In the IDE and desktop app, assistant replies and per-turn token usage are populated only when recognized local transcript logs exist; tool arguments and outputs are off by default. See the Antigravity plugin guide for ACP profile isolation and setup details.
Open the built-in guide at http://<server-address>:3456/#/help/otlp, which fills in your server address and API key.
In magpie, go to Settings → Observability:
| Setting | Value |
|---|---|
| Collector | OTLP |
| OTLP endpoint | Runmark server root address, e.g. http://<server-address>:3456 |
| OTLP headers | X-API-Key=<your API key> |
| OTLP export | Enabled |
| Trace agent conversations | Recommended: Enabled |
| Request and response content | Enabled if you want to store prompts and completions |
| Export metrics | Disabled (metrics are not currently displayed) |
For tools requiring a full traces path, use http://<server-address>:3456/v1/traces with OTLP/HTTP JSON encoding and the X-API-Key header. Protobuf and Basic authentication are not supported.
Run a test prompt, then filter Dashboard sessions by the reported agent name. Detailed guides: OTLP user guide and OTLP protocol notes.
Available on Runmark Server 0.2.58 or later. In the Dashboard, open 项目实况 (Live project boards) to create a board for any repository that has reported sessions. The board tracks total tokens, costs, a 42-day activity heatmap, model distribution across providers, and a 4-stage matter workflow board.
With background agents enabled and a model assigned to the Matter Workflow agent, new conversations on enabled boards can create cards and update their status. The server checks for inactivity every five minutes. In-progress cards move to review after 90 minutes without activity, and cards in review move to Done after 30 minutes without activity. Locked cards remain under manual control.
- Generate 24-hour read-only share links, revocable via the Project Board API.
- Active boards allow anonymous preview showing project name, usage, and matter titles; the public directory lists repository identifiers.
- Custom public titles replace original card titles in all read-only views.
- Disabling a board closes both read-only and anonymous views, pausing automated tracking.
bun install
bun testCore packages:
packages/runmark: unified installer@runmarks/runmarkpackages/server: Bun + Hono + SQLite backend and Dashboardpackages/plugin-opencode: OpenCode pluginpackages/plugin-codex: Codex CLI hook pluginpackages/plugin-claude-compat: Marketplace bundle for Claude Code, CodeBuddy, and WorkBuddy (--runtime)packages/plugin-grok: Grok Build user hooks (~/.grok/hooks, parses session files on Stop)packages/plugin-antigravity: Hook plugin for Antigravity IDE, desktop app, and CLIpackages/hook-cursor: Cursor hook pluginpackages/shared: shared types, pricing logic, and utilitiesskills/agent-tracker-setup&skills/agent-tracker-clients: deployment and client setup skills





