Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyProgramming

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 issue
  • loki edit: make one small change with no loop
  • loki quick: do one small task with a verify loop
  • loki verify: check a receipt's hash, signature and event log
  • loki status: see the status of a run
  • loki 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

You need Node.js to install it with npm, plus a model: Claude Code logged in is the default, or an ANTHROPIC_API_KEY. Opencode is the other supported provider. Git is needed for runs in a repository.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.