tokensafe@4.3.3
CAUTION· not startedPublisher claims: "Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Not started: dependency install failed; the server itself was not observed.- Tested
- the dependency install step · every file read, file written and host contacted by what ran
- Not tested
- server startup · the tool list · tool behavior
What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.
Before you give it your token
- It will ask for
ANTHROPIC_API_KEYDEEPSEEK_API_KEYGEMINI_API_KEYOPENAI_API_KEYTOKENSAFE_AGENTTOKENSAFE_ALLOWED_ORIGINSTOKENSAFE_AUTOPRUNE_INTERVALTOKENSAFE_BG_LICENSE_KEYTOKENSAFE_BUNDLE_MAX_TOKENSTOKENSAFE_CACHE_TIMEOUTTOKENSAFE_CLOUD_DISTILLTOKENSAFE_CLOUD_URLTOKENSAFE_CONTEXT_WINDOWTOKENSAFE_DATA_DIRTOKENSAFE_DB_PATHTOKENSAFE_GRAPH_DISK_CACHETOKENSAFE_GRAPH_TTLTOKENSAFE_HMAC_SALTTOKENSAFE_HOSTTOKENSAFE_LICENSE_KEYTOKENSAFE_LIVE_FLUSH_SECONDSTOKENSAFE_LIVE_URLTOKENSAFE_MAX_EVENTSTOKENSAFE_MAX_TURN_TOKENSTOKENSAFE_MCP_AUTORELOADTOKENSAFE_MCP_TIMEOUTTOKENSAFE_NONINTERACTIVETOKENSAFE_PRIVATE_KEYTOKENSAFE_PROXY_DISABLEDTOKENSAFE_PUBLIC_KEYTOKENSAFE_RETENTION_DAYSTOKENSAFE_SELF_HOSTEDTOKENSAFE_STALE_GUARDTOKENSAFE_TARGET_TURN_TOKENSTOKENSAFE_TELEMETRY_DISABLEDTOKENSAFE_TEST_PROMPTTOKENSAFE_TOOL_PRUNE_ALLOWLISTTOKENSAFE_TOOL_PRUNE_KEEPTOKENSAFE_TOOL_PRUNINGTOKENSAFE_TREESITTERor--claim-token- Where it talks to
- tokensafe.dev (its own)Also deepseek.com, z.ai, apple.com — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- no credential files read · no network
- What we could not test
- server startup · the tool list · tool behavior
Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names deepseek.com, z.ai, apple.com as well as its own vendor. The guard injects ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY, TOKENSAFE_AGENT, TOKENSAFE_ALLOWED_ORIGINS, TOKENSAFE_AUTOPRUNE_INTERVAL, TOKENSAFE_BG_LICENSE_KEY, TOKENSAFE_BUNDLE_MAX_TOKENS, TOKENSAFE_CACHE_TIMEOUT, TOKENSAFE_CLOUD_DISTILL, TOKENSAFE_CLOUD_URL, TOKENSAFE_CONTEXT_WINDOW, TOKENSAFE_DATA_DIR, TOKENSAFE_DB_PATH, TOKENSAFE_GRAPH_DISK_CACHE, TOKENSAFE_GRAPH_TTL, TOKENSAFE_HMAC_SALT, TOKENSAFE_HOST, TOKENSAFE_LICENSE_KEY, TOKENSAFE_LIVE_FLUSH_SECONDS, TOKENSAFE_LIVE_URL, TOKENSAFE_MAX_EVENTS, TOKENSAFE_MAX_TURN_TOKENS, TOKENSAFE_MCP_AUTORELOAD, TOKENSAFE_MCP_TIMEOUT, TOKENSAFE_NONINTERACTIVE, TOKENSAFE_PRIVATE_KEY, TOKENSAFE_PROXY_DISABLED, TOKENSAFE_PUBLIC_KEY, TOKENSAFE_RETENTION_DAYS, TOKENSAFE_SELF_HOSTED, TOKENSAFE_STALE_GUARD, TOKENSAFE_TARGET_TURN_TOKENS, TOKENSAFE_TELEMETRY_DISABLED, TOKENSAFE_TEST_PROMPT, TOKENSAFE_TOOL_PRUNE_ALLOWLIST, TOKENSAFE_TOOL_PRUNE_KEEP, TOKENSAFE_TOOL_PRUNING, TOKENSAFE_TREESITTER only into requests to tokensafe.dev (and its subdomains) and refuses the rest.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-21 and scored it 65/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Destructive file system command detected; Destructive file system command detected. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 1 s · 2 scenarios · 0 deviationsStatic findings
Ignores heavy folders (node_modules, dist, .git, etc.) and redacts sensitive files (.env*).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# 1. Destructive Unbounded File Deletion (rm -rf /, rm -rf ~, rm -rf *, etc.)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.6. Destructive Shell Command & Unbounded Deletion Prevention (rm -rf /)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.Features a resilient /dev/tty fallback for piped 'curl | bash' installations and anFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r'|(?:\.env(?:\.[\w\-]+)?|\.gitignore|\.dockerignore|\.prettierrc[\w\.\-]*|\.eslintrc[\w\.\-]*|\.npmignore|\.npmrc|\.yarnrc)'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r"rm\s+(-[a-zA-Z]*\s+)*-?[rf]{2,}[a-zA-Z]*\s+(--\s+)?/(?:\s|$)", # rm -rf /Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.'.env', '.env.local', '.env.production', '.env.staging', '.env.development'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run([sys.executable, "-m", "venv", venv_dir],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.5. Git Staging Protection for Sensitive Files (.env*, *.key, *.pem)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.env_path = os.path.join(root, ".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r"""process\.env(?:\.([A-Za-z0-9_]+)|\[\s*['"]([A-Za-z0-9_]+)['"]\s*\])\s*(?:\|\||\?\?)\s*['"`]([^'"`\n]+)['"`]""",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r"rm\s+(-[a-zA-Z]*\s+)*-?[rf]{2,}[a-zA-Z]*\s+(--\s+)?/(?:\s|$)", # rm -rf /Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."dockerfile", "dockerfile.cloud", "docker-compose.yml", ".env.example",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run(["git", "fetch", "--depth", depth, "origin"], cwd=dest,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.… without permissions, timestamps, or ignored folders (node_modules, .git, dist, .env). Replaces verbose ls -la. Pass '.' for project root or a subfolder like 'src'.…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run(["git", "clone", "--depth", depth, "-q", repo["url"], dest],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.".env", ".env.local", ".env.production", ".env.staging", ".env.development",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run([venv_py, "-m", "pip", "install", "-q", "pytest", *deps, "-e", repo_root],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["git", "reset", "--hard", "-q", "origin/HEAD"], cwd=dest,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run([pip_cmd, "list"], capture_output=True, text=True, timeout=15)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["launchctl", "unload", plist_path], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["launchctl", "unload", plist_path], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["xdg-open", out_path], check=False)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(["launchctl", "load", "-w", plist_path], capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["systemctl", "--user", "disable", "--now", cls._SERVICE_NAME], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["systemctl", "--user", "daemon-reload"], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(["git", "pull", "--quiet"], cwd=PROJECT_ROOT, capture_output=True, text=True, timeout=10)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(["git", "grep", "-n", pattern, "--", search_dir],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["open", out_path], check=False)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(sub_cmd, shell=True, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.count = subprocess.run(["git", "rev-list", "--count", "HEAD"], cwd=root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.up_res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.capped = subprocess.run(rewritten, shell=True, cwd=root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(["git", "diff", "HEAD~1", "HEAD"], cwd=root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(cmd, cwd=PROJECT_ROOT, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.os.startfile(out_path) # type: ignore[attr-defined]Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = subprocess.run(py_args, cwd=root, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=300)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.probe = subprocess.run([py, "-c", "import pytest_asyncio"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(cmd, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.assertTrue(TokenSafeGuard.inspect_command("rm -rf /*").blocked)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# Add .env to .gitignore and re-testFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.if importlib.util.find_spec("pytest") is None:Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.run(sync_cmd, env=sync_env, capture_output=True, text=True, timeout=5)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.lines.append(" \033[36m💡 Tip: Consolidate redundant rule files into a single AGENTS.md\033[0m")Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.self.assertTrue(TokenSafeGuard.inspect_command("rm -rf /*").blocked)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.self.assertTrue(TokenSafeGuard.inspect_command("git add .env").blocked)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.Features a resilient /dev/tty fallback for piped 'curl | bash' installations and anFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.Popen(Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.# Blanket git add when unignored .env existsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.self.assertTrue(TokenSafeGuard.inspect_command("rm -rf /").blocked)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.tokensafe test "<prompt>" Preview prompt compaction on custom inputFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.self.assertTrue(TokenSafeGuard.inspect_command("git add .env.local").blocked)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run(cmd, capture_output=True, text=True, timeout=2)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return True, "ZCode hooks registered in ~/.zcode/cli/config.json (SessionStart + UserPromptSubmit + PreToolUse guard + PostToolUse compact + Stop) — restart the app to take effect"Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.p = subprocess.Popen(zenity_cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 3. Linter commands (eslint, npx eslint, biome, npx biome)Fix: Pin versions and sources; vendor anything fetched at install time.print(f" {CYAN}→{RESET} Updating global npm package via {npm_bin} (npm install -g tokensafe@latest)...")Fix: Pin the exact version (`[email protected]`, `==1.2.3`) so every install gets the bytes that were reviewed.proc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.Popen(term)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.env_file = os.path.join(tmpdir, ".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.self.assertTrue(TokenSafeGuard.inspect_command("rm -rf /").blocked)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.Popen([Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 2. TypeScript compiler & type-checking commands (tsc, npx tsc, npm run typecheck)Fix: Pin versions and sources; vendor anything fetched at install time.up_res = subprocess.run([pip_cmd, "install", "--upgrade", "tokensafe"], capture_output=True, text=True, timeout=120)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
No advisories in OSV for tokensafe@4.3.3 as of 3 h ago. This is the package itself, not its dependencies.
What would make this Verified
15 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Pipe-to-shell pattern≈ +9 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
- Destructive command against a filesystem root or device≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- Unclaimed publisher≈ +8 on the totalClaim tokensafe-dev: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- New publisher≈ +3 on the totalTime clears this on its own after 14 and 30 days. Claiming the handle (+50) is the fastest way past it.