Checking your session…
Get Hotpath
Run your agent a few times. Hotpath learns the task and replays it, fast and cheap, using AI only where it's needed.
How it works, in three steps
- Record. Your agent does the task, normally. Hotpath watches which tools it calls.
- Compile. Hotpath turns that into a workflow: a plain file of steps, with AI kept only for the parts that need judgment.
- Replay. Next time, the workflow runs instead of the agent: seconds instead of minutes, cents instead of dollars. If the data changes shape, it notices and calls the agent again.
1. Install and sign in
Hotpath is open source (Apache-2.0): the code is on GitHub. You need Node 22 or newer. The CLI is free and needs your free hotpath.run account, so sign in once with hotpath login.
npx @hotpathrun/cli --help
npx @hotpathrun/cli login # optional: links this dashboard. Check the code, press ApproveLogin opens this site, shows the code from your terminal and asks you to approve it. After that, your local workflows and runs show up on your dashboard: hit rate, savings and each workflow's graph. Only summaries are synced (names, counts, times and cost), never your tool arguments, prompts, results or files. Manage or revoke computers in Settings. For CI, set HOTPATH_TOKEN.
The CLI uses your own model key: add it to .env. Any OpenAI-compatible provider works (Groq, NVIDIA, OpenAI, Gemini, a local Ollama…), and so does Anthropic's:
LLM_API_KEY=your-key
LLM_BASE_URL=https://api.groq.com/openai/v1
HOTPATH_AGENT_MODEL=openai/gpt-oss-120b # the agent, used once to learn the task
HOTPATH_CHEAP_MODEL=openai/gpt-oss-20b # used at the steps that need judgment2. Make your first real workflow
Pick a task you repeat, one that calls the same tools in the same order each time, like triaging an inbox or building a daily report. Then:
hotpath init
hotpath wrap claude-code <server-name> --task inbox-triage
# now do the task in Claude Code, as you normally would, 3 times
hotpath learn inbox-triage
hotpath learn inbox-triage --promote
hotpath run inbox-triage --dry-run # nothing is sent
hotpath run inbox-triage
hotpath schedule add inbox-triage --cron "0 9 * * 1-5"- init sets up Hotpath in your project. wrap puts Hotpath between Claude Code and one of its tools, so it can watch the calls. Name the task with
--task. - Do the task 3 times in Claude Code, so Hotpath can tell what stays the same from what changes between runs.
- learn compiles what it saw. learn --promote makes the result the workflow that runs.
- run --dry-run checks it without sending or changing anything. run does it for real, and schedule add repeats it on a timer.
3. Try the Claude Code demo
Want to see it work before touching your own tools? The demo is a small task whose tools never touch the real world (its "send a message" writes to a file). Run it dry first, then for real:
npx @hotpathrun/cli demo --dry-run # nothing is sent anywhere
npx @hotpathrun/cli demo4. Agents that don't use MCP
Hotpath wraps MCP tools, which is how Claude Code and most agent apps reach their tools. If your agent calls an API directly instead, the Hotpath proxy sits between the agent and that API and records the same way. TheREADME on GitHub shows how to point your agent at it; hotpath --helplists every command. Before your first recording, read the recording guide: six habits that make a workflow replay right.
5. See it on your dashboard
Run hotpath login once on each computer. From then on every workflow you compile and every run shows up on your dashboard: its steps, which ones use a model, what each run cost and when your agent had to take over.
npx @hotpathrun/cli login- Only run summaries are sent: workflow names, steps, time, cost and fallbacks. Never your prompts, inputs or tool results.
HOTPATH_NO_SYNC=1turns it off. Withouthotpath login, nothing is sent.
Running workflows in the cloud, from the website or on a schedule, comes later with Hotpath Cloud.
6. Customize (for developers)
Pick your models
.env sets the provider and two models: the agent (used to learn a task and when data changes) and the cheaper model for replay steps. Point it at any OpenAI-compatible API, including a model on your own machine.
Edit a workflow
Workflows are plain JSON in workflows/. You can change a step's prompt, its checks, or which values are inputs. hotpath show <task> prints the steps; view draws them.
Safe test runs
--dry-run skips every step that sends or changes something, so you can check a workflow before it acts. --no-fallback stops on drift instead of calling the agent.
Stay private
Set HOTPATH_NO_SYNC=1 to stop sending run summaries to your dashboard. You still sign in; nothing else changes.
Questions or ideas: open an issue. Contributions are welcome.