secretless-ai
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 19 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in package.json
- fs.rmSync — Destructive file system operation in src/backends/cache.test.ts
- fs.rmSync — Destructive file system operation in src/backends/cache.ts
- process.env — Environment variable access in src/backends/cache.ts
- fs.rmSync — Destructive file system operation in src/backends/config.test.ts
- process.env — Environment variable access in src/backends/config.test.ts
- process.env — Environment variable access in src/backends/config.ts
- fs.rmSync — Destructive file system operation in src/backends/factory.test.ts
- process.env — Environment variable access in src/backends/factory.ts
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
One command to keep secrets out of AI (LLMs). Works with Claude Code, Cursor, Copilot, Windsurf, and any AI coding tool.
secretless-ai
OpenA2A: CLI · HackMyAgent · Secretless · AIM · Browser Guard · DVAA
Keep API keys and other secrets invisible to AI coding tools. Works with Claude Code, Cursor, GitHub Copilot, Windsurf, Cline, and Aider. Apache 2.0.
Quick start
npx secretless-ai init
Secretless v0.17.1
Keeping secrets out of AI
Configured: Claude Code (1 of 1 detected)
Created:
+ .claude/hooks/secretless-guard.sh
+ CLAUDE.md
Modified:
~ .claude/settings.json (added 69 deny patterns)
Next steps:
Verify: secretless-ai verify
Scan: secretless-ai scan
Status: secretless-ai status

Install
npm
npx secretless-ai init # run once, no install
npm install -g secretless-ai # install globally
Requires Node.js 18 or later.
Homebrew
brew install opena2a-org/tap/secretless-ai
From source
git clone https://github.com/opena2a-org/secretless-ai.git
cd secretless-ai
npm install
npm run build && npm test
node dist/cli.js verify
Verifying what was installed
Every release publishes via npm Trusted Publishing with SLSA v1 provenance. No long-lived NPM_TOKEN. GitHub Actions exchanges its OIDC token with npm at publish time.
npm view secretless-ai dist.attestations --json
# Expects non-empty result with predicateType "https://slsa.dev/provenance/v1"
Secretless never reads or transmits credential values it manages. Backends (OS keychain, 1Password, HashiCorp Vault, GCP Secret Manager, AES-256-GCM encrypted file) decrypt on demand at subprocess spawn time. secretless-ai verify runs an integrity check of your local install.
How it works
- Scans your project for hardcoded credentials in config files and source code. 56 credential patterns from
@opena2a/[email protected], lockstep-asserted, across.js,.ts,.py,.go,.java,.rb, and more. Suppresses fixture-path false positives via.secretlessignoredefaults (test/,__tests__/,examples/,e2e/,docs/vhs/,node_modules/, etc.). - Migrates them to secure storage: OS keychain, 1Password, HashiCorp Vault, GCP Secret Manager, or AES-256-GCM encrypted file.
- Blocks AI tools from reading credential files. 21 file patterns enforced at the AI-tool hook layer.
- Brokers access through environment variables. Secrets never enter AI context.
MCP server protection
Every MCP server config has plaintext API keys in JSON files on your machine. The LLM sees them. Secretless encrypts them.
npx secretless-ai protect-mcp
Scanned 1 client(s)
+ claude-desktop/browserbase
BROWSERBASE_API_KEY (encrypted)
+ claude-desktop/github
GITHUB_PERSONAL_ACCESS_TOKEN (encrypted)
+ claude-desktop/stripe
STRIPE_SECRET_KEY (encrypted)
3 secret(s) encrypted across 3 server(s).
MCP servers start normally. No workflow changes needed.
Scans configs across Claude Desktop, Cursor, Claude Code, VS Code, and Windsurf. Secrets move to your configured backend. Non-secret env vars (URLs, regions) stay untouched.
npx secretless-ai protect-mcp --backend 1password # store MCP secrets in 1Password
npx secretless-ai mcp-status # show which servers are protected
npx secretless-ai mcp-unprotect # restore original configs from backup
Triage helpers
npx secretless-ai scan --min-confidence 0.85 # high-confidence findings only
npx secretless-ai ignore docs/migration.md # append a path to .secretlessignore
npx secretless-ai ignore --pattern '*.golden.txt'
npx secretless-ai diff main # audit secretless-managed file changes vs a git ref
scan renders a Confidence: high (0.92) line under every finding. The score combines pattern specificity, value entropy, value length, and path tier. With --no-ignore, findings whose path matches the default-ignore list are tagged (looks like a test fixture) so they stay visible without being re-suppressed.
Architecture
Three layers. Use one, two, or all three. Each works against any supported backend.
Tier 1: In-process SDK. Credentials resolved in the call stack and zeroized after use. Available in the Python and TypeScript AIM SDKs. Sub-millisecond overhead.
Tier 2: Vault Exec. A subprocess primitive that injects a credential into a child process's environment without exposing it to the parent. The agent running under an AI assistant never sees the secret.
npx secretless-ai vault exec github -- curl https://api.github.com/user
The child process receives $GITHUB. The parent shell, the AI tool's context, and any process listing see nothing. Language-agnostic. Wraps any command.
Tier 3: Broker with identity policy. A local daemon that mediates credential access across multiple agents. Policy rules allow or deny access by agent ID, credential name, time window, and rate limit. Optional AIM integration adds trust-score and capability constraints.
npx secretless-ai broker start
See Run the Broker for when to use the daemon and how to configure it.
AIM is optional. Tier 1 and Tier 2 work against any of the five storage backends with no AIM involvement. Tier 3 adds identity-bound policy when an AIM server is reachable. Default-deny still enforces locally without one.
Supported tools
| Tool | Protection method |
|---|---|
| Claude Code | PreToolUse hook (blocks reads before they happen) + deny rules + CLAUDE.md |
| Cursor | .cursorrules instructions |
| GitHub Copilot | .github/copilot-instructions.md instructions |
| Windsurf | .windsurfrules instructions |
| Cline | .clinerules instructions |
| Aider | .aiderignore file patterns |
Claude Code gets the strongest protection because it supports hooks. A shell script runs before every file read and blocks access at the tool level.
Storage backends
| Backend | Storage | Best for |
|---|---|---|
local |
AES-256-GCM encrypted file | Quick start, single machine |
keychain |
macOS Keychain or Linux Secret Service | Native OS integration |
1password |
1Password vault | Teams, CI/CD, multi-device |
vault |
HashiCorp Vault KV v2 | Enterprise, self-hosted |
gcp-sm |
GCP Secret Manager | GCP-native workloads |
npx secretless-ai backend set 1password # switch backend
npx secretless-ai migrate --from local --to 1password # migrate existing secrets
NanoMind integration
Optional integration with NanoMind for enhanced security analysis:
npm install @nanomind/guard @nanomind/engine # optional
- MCP injection screening.
protect-mcpscreens env-var values for prompt-injection patterns and warns when suspicious content is detected. - Rich scan explanations.
scan --explaingenerates context-aware security explanations for each finding using NanoMind's local inference engine.
Both features gracefully degrade when NanoMind packages are not installed.
Using with opena2a-cli
opena2a-cli is the unified CLI for the OpenA2A security toolchain. Secretless powers opena2a secrets.
npm install -g opena2a-cli
opena2a review # full security dashboard
opena2a secrets init # initialize secretless protection
Telemetry
Secretless sends anonymous tier-1 usage data to the OpenA2A Registry: tool name (secretless-ai), version, command name (scan, protect, etc.), success, duration, platform, Node major version, and a stable per-machine install_id. No content is collected. No scanned secrets, no file paths, no env-var values, no rule contents, no IPs.
- Policy: opena2a.org/telemetry.
- Status:
secretless-ai telemetry status. - Disable per-invocation:
OPENA2A_TELEMETRY=off secretless-ai <anything>. - Disable persistently:
secretless-ai telemetry off. - Audit every payload:
OPENA2A_TELEMETRY_DEBUG=print secretless-ai <anything>echoes each event to stderr as JSON.
Fire-and-forget with a 2-second timeout. Telemetry never blocks Secretless.
Use cases
| Guide | Time |
|---|---|
| Protect My Credentials | 2 min |
| Secure MCP Configs | 3 min |
| Bring Your Own Vault | 3 min |
| Run the Broker | 3 min |
| Team Setup | 5 min |
| Migrate from .env | 3 min |
Full index: docs/USE-CASES.md.
Contributing
Apache 2.0. PRs from outside the org welcome.
git clone https://github.com/opena2a-org/secretless-ai.git
cd secretless-ai && npm install && npm run build && npm test
Security issues: [email protected] (coordinated disclosure, response within 24 hours).
Links
Part of the OpenA2A security platform.
License
Apache-2.0. See LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found