
footprint
Your Claude, learned locally SLM fine tuned on your Claude Code sessions, served for OpenCode/Cursor/Codex
Install with your AI
Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.
Install and set up footprint (claude-plugin project) into my current project. Found on https://claudeers.com/footprint Repo: https://github.com/Amanlabh/footprint Homepage/docs: https://www.tracefootprint.space/ Detected install method: claude-plugin → /plugin install footprint@Amanlabh/footprint Category: devtools. Platforms: cli, api. Read the repo's README for exact setup and env vars, then install it and wire it into my project. Claudeers Health Verdict: active; community-verified: false. Confirm the source before running anything.
/plugin marketplace add Amanlabh/footprint /plugin install footprint@Amanlabh/footprint
git clone https://github.com/Amanlabh/footprint
// compatibility
| Platforms | cli, api |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | MIT |
| Pricing | open-source |
| Language | TypeScript |
footprint
Your Claude, learned locally.
Footprint watches your Claude Code sessions, fine-tunes a small local model (LoRA) on how you and Claude work in your projects, and serves it as an OpenAI-compatible API. When your Claude quota runs out, OpenCode (or Cursor, or Codex CLI) keeps working in the same style — fully offline, on your machine.
trace → chat with claude → collect → train → install → /footprint in OpenCode
How it works
- Claude Code already logs every session (prompts, replies, tool calls) to
~/.claude/projects. footprint tracearms a marker so only sessions from that point on become training data.footprint collectparses those transcripts into chat-format training examples.footprint trainLoRA fine-tunes a small model (default: Qwen2.5-Coder-1.5B, 4-bit MLX) on them.footprint installregisters a launchd agent — the server runs itself athttp://127.0.0.1:8399/v1, starts at login, restarts on crash. You never run it by hand.- Any OpenAI-compatible tool points at that URL and behaves like your Claude.
Requirements
| trace / collect | train / serve | |
|---|---|---|
| macOS (Apple Silicon) | ✅ | ✅ MLX backend |
| Linux | ✅ | ✅ torch backend (CUDA or CPU) |
| Windows | ✅ | ✅ torch backend (CUDA or CPU) |
| macOS (Intel) | ✅ | ✅ torch backend (CPU) |
- Claude Code installed and used at least once
- Python 3.9+
- Node.js 18+ (only if installing via npm)
footprint picks the backend automatically: MLX
on Apple Silicon, PyTorch + PEFT everywhere else (uses CUDA when available;
CPU works but trains slowly — prefer a GPU or drop FOOTPRINT_ITERS).
Install
macOS
npm install -g footprint-trace
or from source:
git clone https://github.com/Amanlabh/footprint.git
cd footprint
python3 footprint.py setup
Linux
npm install -g footprint-trace # or the git clone above
First run installs the torch backend (one-time, ~2 GB). CUDA GPU picked up automatically.
Windows
Use PowerShell (Python 3 from python.org or the Microsoft Store):
npm install -g footprint-trace
Same as Linux: full trace/collect/train/serve via the torch backend. WSL2 also works.
Getting started
1. Arm tracing — before you start Claude.
footprint trace
Claude Code already logs every session; the trace marker makes footprint train
only on sessions from this point on. (Skip this step — or delete
~/.claude/footprint-trace — to train on your entire history instead.)
2. Use Claude Code normally.
claude
Every session (your prompts, Claude's replies, tool calls) is captured automatically.
3. Collect and train.
footprint collect # transcripts -> data/train.jsonl + data/valid.jsonl
footprint train # LoRA fine-tune (~10 min, downloads ~1 GB base model first time)
4. Install the always-on server.
footprint install
This registers the server with your OS — launchd (macOS), systemd (Linux) or Task Scheduler (Windows) — so it starts at login, restarts if it crashes, and you never run it by hand. It also wires up OpenCode:
- provider
footprintathttp://127.0.0.1:8399/v1 - a
/footprint <task>command inside OpenCode
5. Claude quota over? Keep going.
Open OpenCode and type:
/footprint fix the failing test in auth.py
Or point any OpenAI-compatible tool at the server:
| Tool | Setting |
|---|---|
| Cursor | Settings → Models → OpenAI base URL http://127.0.0.1:8399/v1, any API key, add model footprint |
| Codex CLI | custom provider with that base URL in ~/.codex/config.toml |
| anything else | base URL http://127.0.0.1:8399/v1, API key: none |
Commands
| Command | What it does |
|---|---|
footprint | banner + status |
footprint trace | arm tracing (run before starting Claude) |
footprint collect [dir] | parse transcripts of a project (default: current dir; unknown dir = all projects) |
footprint train | LoRA fine-tune on collected data |
footprint install | auto-start server (launchd / systemd / Task Scheduler) + OpenCode integration |
footprint serve | run the server manually (fallback; install makes this unnecessary) |
footprint status | model, example count, adapter, tracing, server state |
Configuration
| Env var | Default | |
|---|---|---|
FOOTPRINT_MODEL | mlx-community/Qwen2.5-Coder-1.5B-Instruct-4bit (mac) / Qwen/Qwen2.5-Coder-1.5B-Instruct | any chat model of the backend |
FOOTPRINT_ITERS | 300 | training iterations |
FOOTPRINT_PORT | 8399 | server port |
Troubleshooting
no transcripts found— either you haven't used Claude Code in this project, or the trace marker is newer than all sessions. Chat first, orrm ~/.claude/footprint-trace.- server not responding — macOS:
/tmp/footprint-serve.log,launchctl kickstart -k gui/$UID/com.footprint.serve; Linux:journalctl --user -u footprint,systemctl --user restart footprint; Windows:schtasks /Run /TN footprint-serve. - backend import fails (
mlx_lm/torch) — re-runfootprint setup. - quality is rough — more data beats more iterations: keep tracing, re-collect, re-train. 1.5B is small; try
FOOTPRINT_MODEL=mlx-community/Qwen2.5-Coder-7B-Instruct-4bitif you have ≥16 GB RAM.
Privacy
Everything stays on your machine. data/ (your transcripts) and adapters/
(weights trained on them) are gitignored — never commit or publish them.
License
MIT — see LICENSE.
// faq
What is footprint?
Your Claude, learned locally SLM fine tuned on your Claude Code sessions, served for OpenCode/Cursor/Codex. It is open-source on GitHub.
Is footprint free to use?
footprint is open-source under the MIT license, so it is free to use.
What category does footprint belong to?
footprint is listed under devtools in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/footprint)
// retro hit counter
[](https://claudeers.com/footprint)
// reviews
// guestbook
// related in Developer Tools
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…
Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.