Loki Mode
Lets your AI agent turn a task or GitHub issue into a tested pull request with a signed receipt you can check.
1.1k stars on GitHubby asklokeshLicense NOASSERTIONUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add loki-mode -- npx -y loki-mode mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Add rate limiting to /api/login and open a pull request.
Fix issue 123 in this repository and give me the receipt.
What it is
Loki Mode is an autonomous coding agent that runs on your machine with your own keys. You give it a task, spec or issue, and it builds, verifies, opens a pull request and seals a signed receipt of what it checked. The project also exposes an MCP server over stdio.
What it can do
loki start: build, verify, seal a receipt and open a pull request from a task, PRD or issueloki edit: make one small change with no looploki quick: do one small task with a verify looploki verify: check a receipt's hash, signature and event logloki status: see the status of a runloki doctor: check prerequisites, providers and login
When to use
- βΊWhen you want a GitHub issue turned into a pull request with proof of what was tested
- βΊWhen you want a spend cap on an autonomous coding run
- βΊWhen you want to re-check offline that a run's receipt was not changed
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
loki-modeLets your agent run a team of specialized AI agents that plans and builds a product from a requirements document with minimal input.loki-modeEnables your agent to operate autonomously using AI for research and production. It integrates with various AI and production tools.gh-fix-ciHelps your agent find why GitHub Actions checks failed on your pull request, read the logs, and propose a fix plan before changing code.Frequently asked questions
Is it free?
The package is installed from npm and is open source under a LICENSE file. You pay for the model you use, and the readme says the spend cap defaults to $100 when an API key is set.
Which models can it use?
Claude Code is the default provider, and opencode can reach other models including OpenRouter. The readme says other CLIs such as codex and aider were removed.
What does the receipt prove?
It is signed with a local Ed25519 key and lists what the checks ran and what was NOT PROVEN. The readme says signing proves who produced it, not that the code has no bugs.
Can I try it without spending anything?
Yes. npx loki-mode start shows a real receipt with no key and no spend when you are not in a git repo.
Does it open pull requests by itself?
A verified run opens a ready pull request. Add --no-pr to build and verify without opening one.
Where does the control plane listen?
The local Control Plane UI listens on 127.0.0.1 only, and LOKI_CONTROL=0 turns it off.
If it does not work
- βΊRun loki doctor --fix to check prerequisites, providers and login.
- βΊMake sure Claude Code is installed and logged in, or that ANTHROPIC_API_KEY is set.
- βΊIf loki verify reads UNCHECKED, check out the run's branch first, since your checkout must match the sealed code.
5 new skills a week. 1 minute to read.