Your hardware runs first. Cloud is the exception, not the rule.
Project description
LocalFirst
Your hardware runs first. Cloud is the exception, not the rule.
LocalFirst sits between you and Claude Code. It shows exactly what gets uploaded to Anthropic, blocks secrets before they leave your machine, and runs file operations locally — zero cloud tokens.
Install
pip install localfirst
localfirst claude
The problem
Claude Code uploads your code to Anthropic on every request. You cannot see what goes up. Your .env files get included even with .claudeignore. A simple session burns $0.07+ before you type anything.
What LocalFirst does
1. Inspector — see every request live, tokens, files, costs
2. Secret Gate — block .env and API keys before they reach Anthropic
3. Local MCP Tools — grep, find, read, tree, git run locally — 0 cloud tokens
Typical savings: 30-60% of all tokens.
Setup
pip install localfirst
localfirst mcp config
Usage
localfirst claude # Claude with LocalFirst active
localfirst claude --mode block_secrets # block secrets automatically
localfirst inspect # inspector only
localfirst stats # token savings
localfirst check # check tools
Built on LAO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file localfirst-0.3.0.tar.gz.
File metadata
- Download URL: localfirst-0.3.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ce5c80798ec5f58015da89a35cb54bc29d3bef7234fb940f5b429b0b4f3d7f
|
|
| MD5 |
d8f1bc5819d7011435db9690a6af486e
|
|
| BLAKE2b-256 |
09ae239497c9ad384c02060868dcfea45b7ae75c755c25c94ec864f156cad9f4
|
File details
Details for the file localfirst-0.3.0-py3-none-any.whl.
File metadata
- Download URL: localfirst-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78368407185b7a1861e904adadde31bb67fc60c3b866233079b1f9f95c6fe479
|
|
| MD5 |
65912abfef0c285e8d893d6652e890dd
|
|
| BLAKE2b-256 |
c71df28300621b1df45563683857c67415e2a7ce1b28f070214a8dc3a2e15816
|