Skip to content

Instantly share code, notes, and snippets.

View KrasimirKralev's full-sized avatar
🦀
Claw-boxing

Krasimir Kralev KrasimirKralev

🦀
Claw-boxing
View GitHub Profile
@KrasimirKralev
KrasimirKralev / claude-meter.md
Created August 26, 2026 09:36
Claude Meter — free open-source desktop widget for Claude usage + a planner (macOS/Windows/Linux)

Claude Meter — a free desktop widget for your Claude usage (+ a planner)

I kept opening the Claude usage page to check "how much have I burned this week?" — so I built a tiny always-on-top widget that just shows it. Then it grew a planner. It's free, open-source (MIT), and works on macOS / Windows / Linux.

→ https://github.com/KrasimirKralev/claude-meter (a ⭐ helps others find it)

What it does

  • Live usage meters — current session, weekly (all models), Fable-only, each as a segmented bar with a reset countdown.
  • Extra-usage spend — how much pay-as-you-go credit you've used this month vs your cap, color-coded.
  • Calendar — local events + optional read-only Google Calendar sync. Meetings with a Meet/Zoom/Teams link are click-to-join.
@KrasimirKralev
KrasimirKralev / README.md
Created July 8, 2026 07:35
Local AI Agent Memory Persistence: file-based context across cron sessions using SOUL.md, STATE.md, LOG.md — zero dependencies, works on ARM64/Jetson

Local AI Agent Memory Persistence: Keeping Context Across Sessions

When you run a local AI agent in cron jobs or stateless sessions (like Hermes Agent), it wakes up fresh every time with no recollection of past conversations. No memory, no context, no learning.

This gist shows a practical, zero-dependency strategy for giving your agent persistent memory using plain markdown files — no vector database required.

The Problem

Most local AI agents (Hermes Agent, Claude Code, Codex, etc.) operate in stateless sessions. When running as:

@KrasimirKralev
KrasimirKralev / README.md
Created July 7, 2026 07:36
Automated Browser Data Collection with Playwright MCP + Hermes Agent Cron Jobs — headless browser automation pipeline for self-hosted, cron-driven web data collection on Jetson Orin Nano

Automated Browser Data Collection with Playwright MCP + Hermes Agent Cron Jobs

Collect data from web sources on a schedule using a self-hosted headless browser, MCP tools, and cron-driven Hermes Agent — no cloud dependencies, no monthly SaaS fees, no API keys needed.

Why This Exists

Most web data collection either depends on third-party APIs (expensive, rate-limited, unreliable) or brittle scraping scripts that break on the next site redesign. Playwright MCP gives you a persistent browser controlled via Model Context Protocol — a stable abstraction that survives frontend changes because you're interacting at the browser level, not parsing HTML.

Combine this with Hermes Agent's cron scheduler, and you have a fully self-hosted data pipeline:

@KrasimirKralev
KrasimirKralev / README.md
Created July 6, 2026 07:36
Local AI Agent on Jetson Orin Nano: Hermes Agent + MCP Setup Guide — step-by-step config, MCP server smoke test script, and hardware notes for running private AI agents on ClawBox/OpenClaw hardware

Running Hermes Agent with MCP on a Jetson Orin Nano

A practical, step-by-step guide to setting up Hermes Agent — an open-source local AI agent framework — with Model Context Protocol (MCP) servers on an NVIDIA Jetson Orin Nano. This gets you a self-hosted, private AI agent that can browse the web, run code, read files, and manage your system — all without phoning home to the cloud.

Why Jetson + Hermes Agent?

The Jetson Orin Nano is uniquely suited for local AI agents:

  • 20-40 TOPS of GPU compute — enough to run 7B-14B LLMs at usable speeds
  • Low power (~7-25W) — runs 24/7 as a dedicated agent appliance
@KrasimirKralev
KrasimirKralev / README.md
Created July 5, 2026 07:32
HTML Injection Gateway Proxy: Embed third-party SPAs in your dashboard with auth injection, nav bar, and WebSocket URL rewriting — no iframes, no CORS issues. Production pattern from ClawBox/OpenClaw OS.

The HTML Injection Proxy Pattern

Embed a third-party SPA seamlessly into your own dashboard — with auth, navigation, and zero CORS headaches.

The Problem

You've built a dashboard OS (a captive portal, a device manager, a kiosk mode). You want to embed a separate SPA — like an AI chat interface, a monitoring panel, or a code editor — without iframes, without CORS preflight nonsense, and without the user ever realizing they left your app.

Most solutions are either:

  • iframe-based — breaks keyboard shortcuts, scroll behavior, responsive layouts, and auth cookies
@KrasimirKralev
KrasimirKralev / README.md
Created July 4, 2026 07:31
Run Hermes Agent with MCP tools on Jetson Orin Nano — local AI agent with file system, GitHub, and shell tool integrations

Running Hermes Agent with MCP Tools on Jetson Orin Nano

A practical guide to combining Hermes Agent (Nous Research's self-hosted AI agent framework) with the Model Context Protocol (MCP) on a Jetson Orin Nano edge device. This setup lets you run a capable local AI agent with real tools — file system access, web browsing, code execution — entirely on-device, no cloud dependency.

Why This Matters

Most "AI agents" today require cloud APIs and powerful GPU clusters. With Hermes Agent on a Jetson Orin Nano + OpenClaw carrier board, you get:

  • True local inference — no API keys, no latency, no data leaving your machine
  • MCP tool integration — give your agent real capabilities (files, shell, GitHub, browser)
@KrasimirKralev
KrasimirKralev / README.md
Created July 3, 2026 07:32
Local AI Agent Memory & State Persistence — SQLite, semantic search, and MCP memory tools for self-hosted agents on ClawBox/Jetson Orin Nano

Local AI Agent Memory & State Persistence

Practical patterns for giving your self-hosted AI agent long-term memory, session continuity, and structured state — all running locally on edge hardware like the NVIDIA Jetson Orin Nano / ClawBox.

Why This Matters

Most local AI agents are stateless — each conversation or task starts from scratch. For real-world automation (daily reports, code review,

@KrasimirKralev
KrasimirKralev / README.md
Created July 2, 2026 07:37
Run Hermes Agent as a systemd service on a headless Jetson Orin Nano (or any Linux box) — auto-start, restart-on-failure, journald logging, and lingering setup

Running Hermes Agent Autonomously on a Headless Jetson Orin Nano (or Any Linux Box)

Hermes Agent is a powerful local AI agent framework that lets you run scheduled, autonomous tasks — but how do you make it always available, restart after a crash or reboot, and log properly on a headless device like the Jetson Orin Nano?

This guide covers setting up Hermes Agent as a systemd user service so it runs reliably in the background, auto-starts on boot, and never silently dies.

Why This Matters

@KrasimirKralev
KrasimirKralev / README.md
Created July 1, 2026 07:35
Run Playwright browser automation as an MCP server on ARM64 (Jetson Orin Nano / ClawBox). Fixes the Chromium ARM64 dependency hell with system browser + full Hermes Agent config.

Playwright Browser Automation as an MCP Server on ARM64

Run a full browser automation stack (Playwright + Chromium) as an MCP server on ARM64 Linux — specifically validated on the NVIDIA Jetson Orin Nano (the brains inside ClawBox).

If you've tried npx playwright install chromium on an ARM64 board and hit missing dependency hell, this guide is for you.


Why This Matters

@KrasimirKralev
KrasimirKralev / README.md
Created June 30, 2026 07:31
Jetson Orin Nano MCP Server — expose hardware sensors & fan control as tools for local AI agents (Hermes Agent, Claude Desktop). Drop-in for any MCP-compatible agent.

Connect Local AI Agents to Your Jetson Orin Nano via MCP

Bridge the gap between local LLMs, Hermes Agent, and your Jetson hardware using the Model Context Protocol (MCP).

This guide shows you how to build a lightweight MCP server that exposes Jetson Orin Nano hardware sensors (temperature, power, GPU utilization) and system controls as tools that any MCP-compatible agent (Claude Desktop, Hermes Agent, custom clients) can call in real time.


Why?