Skip to content
● Free & fully open — every feature, no license, no account. Install →

Documentation

Install and protect in one command — or step through scan, enforce and report. Everything runs on your machine, and it's free.

Quickstart

One command — install and turn on protection at the recommended preset, in a single paste (macOS / Linux):

curl -fsSL https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.sh | sh -s -- --enforce

Windows (PowerShell):

$env:TALYX_ENFORCE="1"; irm https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.ps1 | iex

Already installed? talyx quickstart does the same — scan and enforce at the recommended preset. Add --no-enforce to stop after the scan and just print the one command to turn protection on. Everything is reversible with talyx uninstall. No license, no account, no key.

Prefer to go step by step:

# 1 · install (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.sh | sh

# 2 · check the install is healthy
talyx verify

# 3 · guided first run — detects agents, recommends a preset, tells you what's next
talyx setup --project .

# 4 · turn on protection (the only command that writes to a config; backs up first)
talyx init --preset balanced --project .

Install

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.sh | sh

Installs talyx and talyx-shim to ~/.talyx/bin. It does not touch your shell profile unless you pass --modify-path.

Windows (PowerShell)

irm https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.ps1 | iex

npm

npm install -g talyx

No install scripts. The native binaries ship in per-platform packages (@talyx/linux-x64 and friends) declared as optionalDependencies, so npm fetches exactly the one your machine needs and the bytes it verified are the bytes that run. npm install --ignore-scripts works normally — a postinstall that downloads and executes a binary is the pattern Talyx itself flags.

From source

git clone https://github.com/rynald0cst0ltziam/talyx
cd talyx
cargo build --release
./target/release/talyx --help

Free & source-available

Talyx is fully free. Every command — scanning, enforcement, the live proxy, reports — runs with no license, no account, and no activation. There is no paid tier and nothing is gated.

It makes no mandatory outbound calls: no telemetry, no licensing "phone home". The only network calls are ones you opt into — --fetch-registry (fetch an npm / PyPI package to scan its real code) and talyx advisories refresh (pull a newer advisory feed). The source is available so you can read exactly how every detection works, and build it yourself from the repository if you prefer.

Protection presets

A preset is the one knob most people need. It bundles the decision strictness, whether the live proxy is on, and how deep the scan goes into a single word, so you don't have to assemble flags. Pass it to scan, init or quickstart with --preset; setup recommends one from what it finds.

PresetStrictnessLive proxyRegistry scanFor
personalQuietoffoffa personal machine — fewer interruptions
balancedBalancedoffoffthe everyday default
strictStrictonoffsensitive work — inspect the session too
enterpriseStrictononrollout — deepest scan, fetches registry code

--preset balanced maps exactly to the old default, so nothing changes if you don't use presets. You can still override just the strictness with --level quiet|balanced|strict on top of a preset.

Commands

talyx quickstart

One command from install to protected: scans, recommends a preset from what it finds, and turns on protection at that preset. Free — no license, no key.

  • --preset <preset> — use a specific preset instead of the recommended one.
  • --no-enforce — scan and recommend only; don't rewrite any config.
  • --project <path>, --include-user-config — as for init.

talyx setup

Guided first run. Detects your agents, scans read-only, recommends a preset, and prints the exact next command. Writes nothing — run it right after installing to know precisely what to do. --project <path> to point it somewhere else.

talyx verify

Installation health check: the two binaries are in place and ~/.talyx is writable. Read-only, and exits non-zero if anything needs attention so an installer or CI step can gate on it.

talyx scan

Discover, score and report every artifact. Read-only.

  • --project <path> — project root to scan (default .). User-level config is always included.
  • --preset personal|balanced|strict|enterprise — bundle strictness + scan depth (see Protection presets).
  • --level quiet|balanced|strict — override just the strictness (default follows the preset, else balanced).
  • --fetch-registry — download & statically scan the real code behind npx/uvx servers. Opt-in; makes outbound registry calls.
  • --format text|sarif, --sarif-file <path>, --exit-code — CI output.

talyx status

One-screen summary: agents detected, artifact counts, what needs review.

talyx init

Scans, caches your decisions, and rewrites configs so approved MCP servers launch through the shim and blocked ones are removed. The only mutating command. Free, like everything else.

  • --project <path> — project root (default .). Only configs inside it are rewritten unless you add --include-user-config.
  • --preset personal|balanced|strict|enterprise — bundle strictness + live proxy + scan depth in one word (see Protection presets). strict and enterprise turn --live on for you.
  • --level quiet|balanced|strict — override just the strictness (default follows the preset): which risk bands become Block / Ask / Allow, and the proxy's inspection level when --live is set.
  • --include-user-config — also rewrite configs outside the project (e.g. ~/.claude.json, ~/.cursor/mcp.json). A user-level config affects every project, so this is opt-in.
  • --fetch-registry — download & statically scan the real code behind npx/uvx servers before enforcing (outbound registry calls).
  • --live — also keep the shim between the agent and each approved MCP server for the session and inspect its JSON-RPC traffic. See Live traffic inspection.
  • --store <path> — override the decision store location.

talyx uninstall

Undoes enforcement everywhere: every gated MCP server and hook is unwrapped back to its original launch command, and anything quarantined or removed is put back. Entries are unwrapped in place rather than by restoring the pre-Talyx backup, so any change you made to those configs in the meantime survives.

  • --project <path> — project root (default .).
  • --include-user-config — also undo configs outside the project. Pass this if you ran init --include-user-config.
  • --purge — also delete ~/.talyx (decision cache, history, guardrails). Off by default: undoing enforcement and clearing your local Talyx state are separate decisions.
  • --store <path> — override the decision store location.

The binaries themselves are left alone — remove ~/.talyx/bin by hand if you want them gone.

talyx allow <id>

Approve an artifact flagged ASK/BLOCK — from now on the shim lets it run and a removed remote entry (or a quarantined skill) is restored exactly as it was. Approval is auditable: it records who approved it, when, why and at what scope.

  • --reason "<text>" — record why, shown by talyx why.
  • --global — approve this artifact everywhere, not just where it lives now (the default is repo-scoped).
  • --store <path> — point at a non-default store.

Approval is bound to the artifact's content hash and its launch command, so if either changes the approval is dropped and the artifact goes back through review automatically — an approved server can't silently become something else.

talyx why <id>

Full reasoning behind a cached decision — every capability, every score contribution, the band, the final decision, any live-proxy findings for it, and the approval audit trail (who / when / why / scope) if it was approved.

talyx report

One security-posture report for a project (or your machine), built from a fresh scan cross-referenced with your decisions: posture counts (allowed / in review / blocked / quarantined), enforcement by agent, top attack classes, allow-block ratio, top risk, and recent live-proxy findings. It also shows what changed since the last scan when there's history to compare against.

  • --format text|json|csv|md — human table (default), machine-readable JSON (one shared schema), a full CSV inventory, or a shareable Markdown summary. (SARIF comes from scan --format sarif.)
  • --record — also append this run to the local history, so the next report can diff against it. init records history automatically.
  • --project <path>, --store <path>.

talyx sessions

Summarise what the live proxy (init --live) has caught across recent sessions — totals by action, capability and artifact, plus the most recent findings. --json emits the same data as a durable record; --limit <n> sets how many session logs to read.

talyx guardrails check|list|example

Validate the live-proxy guardrails file, list the rules it would load, or print a commented starter. See Guardrails.

talyx advisories list|check|refresh

Inspect the known-bad advisory feed. list prints every advisory (id, severity, detail, references). check <package> [--version <v>] [--registry npm|pypi] tests one package name against the feed and exits non-zero on a match. refresh [--url <u>] downloads a newer feed over HTTPS and writes it to ~/.talyx/advisories.json (validated first — a bad download never overwrites the local file); the copy bundled in the binary is never touched. See The advisory feed.

Reports & history

Everything Talyx decides is readable and exportable — for CI, a spreadsheet, or a leadership review — from one structured model, so every format reports identical numbers.

talyx report                      # posture table for this project
talyx report --format md > posture.md   # shareable summary
talyx report --format csv > inventory.csv   # full artifact inventory
talyx report --format json        # machine-readable, one schema

A report covers:

  • Posture — counts across all artifacts: allowed, logged, in review, blocked, quarantined, plus how many are manually approved.
  • Enforcement — how many artifacts are routed through the shim, by agent.
  • Top risk & attack classes — the highest-scoring flagged artifacts and the capabilities they cluster around, plus the allow-block ratio.
  • Session findings — a roll-up of recent live-proxy activity (talyx sessions for the detail).

What changed since last scan. Every init records a durable posture snapshot (and report --record lets you checkpoint without enforcing). The next report shows the diff — newly flagged, resolved, newly approved, risk increased — so you can answer "what changed this week?" without comparing anything by hand. The history is local, keyed per project, under ~/.talyx/history.jsonl.

How enforcement works

  1. Every config file is checksummed and backed up before the first rewrite.
  2. Approved servers get their launch command rewritten to call talyx-shim <id> -- <original command>. The shim re-checks the cached decision, then execs the real server.
  3. Blocked local servers get the same treatment but the shim refuses to exec. Blocked remote servers are removed from the config entirely and their original entry is stored.
  4. Malicious skills — and project-scoped instruction files (.cursorrules, GEMINI.md, a project CLAUDE.md) with a prompt-injection or exfiltration directive in them — are moved into a .talyx-quarantine/ directory next to where the agent looks for them, so it stops loading them. Your own user-level instruction files are scored and reported but never moved unless you pass --include-user-config.
  5. talyx allow <id> or restoring from the backup reverses any of this. Your real secrets and hook commands are never written into a rewritten file.

The advisory feed

Most detections score an artifact on its behaviour — what the code does, what the text says. The advisory feed adds the other half: artifacts the security community has already disclosed as malicious or vulnerable, matched by identity, not behaviour.

It ships as a small, hand-curated file compiled into the binary. Every entry carries at least one public reference URL. Matchers:

  • npm / PyPI package + version range — min_affected / max_affected / an explicit affected list / fixed. The version is conservative: an unknown or dist-tag version (foo@latest) still flags unless it is provably at or past the fixed version. A spec like npx -y foo@1.2.3 is split so the bare name matches and the pin drives the range check.
  • npm publisher — every package from a named account.
  • npm name pattern — a regex, for typosquat shapes.
  • remote host — a registrable host for a remote MCP server.
  • source-repo owner (+ optional repo name).

A malicious match adds a decisive penalty, suppresses any reputation discount (a trust-seeded publisher in the known-bad list means the account or package is compromised) and forces a block. An advisory match — a CVE fixed in a later version, a review-before-use pattern — forces at least a review (ASK), whatever the protection level's band mapping would otherwise say.

Inspect and test it:

talyx advisories list
talyx advisories check postmark-mcp --version 1.0.17   # exits 1 — match
talyx advisories check mcp-remote --version 0.1.20      # exits 0 — clear

It works fully offline. To pull a newer copy, run talyx advisories refresh — it downloads over HTTPS, validates the feed (a malformed or unreachable download never overwrites your local file), and writes ~/.talyx/advisories.json, which scan and init then prefer over the bundled copy. You can also just drop a file there yourself, or point TALYX_ADVISORIES at one. Delete it to fall back to the feed compiled into the binary. The format is versioned and documented in the repo's data/advisories.json.

Live traffic inspection

The launch-time scan checks an MCP server before it starts. It can't see a server that behaves at launch and turns malicious mid-session, a tool definition that's swapped after you approved it, or a tool result crafted to steer the model. talyx init --live closes that gap: the shim stays between the agent and each approved server for the whole session and inspects every JSON-RPC message.

It is opt-in while it builds real-session mileage, and it fails open — if the proxy ever hits an internal error it falls back to exactly the launch-time protection you'd have without --live (the blocked-server config removal still stands). It never leaves you worse off than the gate alone.

Turn it on

talyx init --project ~ --live
# or at a specific level:
talyx init --project ~ --live --level strict

This writes talyx-shim <id> --proxy -- <command> into the config instead of the plain shim form. Running plain talyx init again downgrades those entries back in place; both directions are idempotent. Restart your agent after either.

What it inspects

  • The handshake — initialize, tools/list, resources/list, prompts/list responses are run through the same prompt-injection / hidden-Unicode / encoded-payload / exfil-directive detectors as a skill file, before the agent sees them.
  • Tool drift (trust-on-first-use) — the first clean tools/list a server serves becomes its baseline (~/.talyx/tool_baselines.json). A tool that appears, or whose description or input schema changes, mid-session is a rug pull and is flagged.
  • Tool results — tools/call and resources/read results (up to 64 KiB) are scanned for an injection payload smuggled back as "file contents".

Levels

Set with TALYX_PROXY_LEVEL (or inherited from init --live --level …). Default balanced.

LevelPoisoned handshake / rug pullPoisoned tool result
quietlog the finding, forward unchangedlog, forward unchanged
balancedreplace the response with a JSON-RPC error (-32001) — the agent never sees the poisoned content; session continueslog the finding, forward unchanged (a real result often contains phrases that trip a detector)
strictreplace the response, then end the sessionredact — each flagged text block becomes a marker; clean blocks and non-text content pass through

Guardrails — your own rules

The three levels are a blunt instrument. Guardrails are a local policy file — ~/.talyx/guardrails.yaml, <project>/.talyx/guardrails.yaml, or $TALYX_GUARDRAILS — that the proxy runs on every JSON-RPC message, in addition to the built-in detectors. Each rule matches by direction, method and one or more path conditions, and takes an action:

ActionEffect
allowforward the message and skip the built-in scan for it
warnlog it, keep checking
redactreplace each matched string with a marker, forward the rest
blockthe message never reaches its peer — a JSON-RPC error goes back to the sender (a blocked client tools/call → error to the agent, the server never sees it)
# ~/.talyx/guardrails.yaml
version: 1
rules:
  - name: block-secret-path-args
    direction: client-to-server
    method: tools/call
    any:
      - path: params.arguments.*
        contains: "/.ssh/"
      - path: params.arguments.*
        contains: "/.aws/"
    action: block
    message: "tool call argument references a credential path"

  - name: redact-aws-keys-from-results
    direction: server-to-client
    method: tools/call
    any:
      - path: "result.content[*].text"
        regex: "AKIA[0-9A-Z]+"
    action: redact

Path conditions use a dotted JSON path with * (any key) and [*] (any array element) wildcards, then one operator: contains, not_contains, regex, glob, equals, in, exists, gt, lt. Manage the file with:

talyx guardrails example > ~/.talyx/guardrails.yaml
talyx guardrails check      # validate — names the offending rule
talyx guardrails list       # show what the proxy would load

Turn it off

  • TALYX_NO_PROXY=1 in the agent's environment — a hard per-launch kill switch; the shim does a plain exec and the proxy code never runs.
  • talyx init --project ~ (no --live) — permanently downgrades the config entries.

What's recorded, and what leaves your machine

Nothing leaves your machine. Findings are appended to ~/.talyx/sessions/<date>-<pid>.jsonl (one JSON object per finding) and echoed to the server's stderr. talyx status prints a summary of recent ones. For debugging, TALYX_PROXY_LOG=/path/to/log.jsonl captures a full classified transcript of every message both directions.

Only messages up to 256 KiB are inspected before being forwarded; a larger message (a big tool result — file contents, command output) is forwarded first and only classified for the transcript afterwards, so the proxy adds no latency to bulk traffic. The proxy is the same process your agent already spawns for the server — there is no daemon.

Use in CI

Fail a build when a poisoned artifact lands in a PR:

# .github/workflows/talyx.yml
- run: talyx scan --project . --format sarif --sarif-file talyx.sarif --exit-code
- uses: github/codeql-action/upload-sarif@v3
  if: always()
  with:
    sarif_file: talyx.sarif
    category: talyx

--exit-code returns 2 on any Block/Quarantine, 1 on any Ask, 0 otherwise. No license or key needed — it's free in CI too.

Offline & air-gapped

Talyx needs no network for its core work — discovery, analysis, scoring and enforcement all run locally, with no license check and no activation. It works fully offline and on air-gapped machines out of the box. The only outbound calls are the opt-in --fetch-registry and talyx advisories refresh; skip those and nothing leaves the machine.

Environment variables

VariableEffect
TALYX_STOREPath to the decision store (default ~/.talyx/decisions.json). The tool baseline is written as a sibling tool_baselines.json.
TALYX_HISTORYPath to the posture-history log for "what changed since last scan" (default ~/.talyx/history.jsonl).
TALYX_REGISTRY_CACHEDirectory for --fetch-registry package downloads (default under ~/.talyx/).
TALYX_NO_PROXY=1 forces the shim to exec the real server directly even for a --live entry — a per-launch kill switch for the proxy.
TALYX_PROXY_LEVELquiet | balanced | strict — the live proxy's inspection level (default balanced).
TALYX_PROXY_LOGPath to write a full classified JSON-RPC transcript of a proxied session (debugging).
TALYX_SESSIONS_DIRDirectory for the proxy's findings log (default ~/.talyx/sessions/).
TALYX_GUARDRAILSPath to the guardrails file, overriding the ~/.talyx/ and <project>/.talyx/ defaults.
TALYX_ADVISORIESPath to an advisory feed file, overriding the bundled one and ~/.talyx/advisories.json. See The advisory feed.
TALYX_ADVISORIES_URLFeed URL for talyx advisories refresh (default: the advisories.json asset of the latest $TALYX_REPO release).

Files Talyx writes

Everything lives under ~/.talyx/. Nothing is sent anywhere.

  • decisions.json — the decision cache: every scanned artifact's id, capabilities, score, band, decision and (if approved) the audit trail. Written by scan/init, read by the shim.
  • history.jsonl — a durable posture snapshot per init (and report --record), for "what changed since last scan". Pruned to the most recent snapshots, keyed per project.
  • tool_baselines.json — trust-on-first-use snapshot of each server's approved tool list (live proxy).
  • sessions/<date>-<pid>.jsonl — live-proxy findings, one JSON object per line.
  • A .talyx-quarantine/ directory next to an agent's skills folder or a flagged instruction file — blocked skills and project-scoped instruction files are moved here (not under ~/.talyx/, so the move stays within the same repo and is easy to inspect / undo).
  • A <file>.talyx-backup next to each agent config the first time init rewrites it.

Changelog

Unreleased

  • Fully free. No license, no account, no activation, no "phone home" — every command, including init enforcement, runs free.
  • One-command setup. talyx quickstart (and the installer's --enforce) takes you from install to protected in a single paste: scan, recommend a preset, enforce.
  • Guided onboarding. talyx setup detects your agents and recommends a preset read-only; talyx verify is an installation health check.
  • Protection presets. personal / balanced / strict / enterprise bundle strictness, live proxy and scan depth into one word for scan, init and quickstart.
  • Posture reports & exports. talyx report gives one posture model exported as text / JSON / CSV / Markdown (SARIF via scan), with a "what changed since last scan" diff from durable local history.
  • Auditable approvals. talyx allow --reason --global records who / when / why / scope; approval is bound to an artifact's bytes and launch command, so any change forces re-review. talyx sessions summarises live-proxy findings.
  • Live traffic inspection (opt-in). talyx init --live keeps the shim between the agent and each approved MCP server for the session — handshake-response scanning, a trust-on-first-use tool baseline that catches a mid-session rug pull, tool-result scanning, and custom guardrail rules you write in a local YAML file (block / redact / allow, matched by JSON-path conditions). See Live traffic inspection.
  • Known-bad advisory feed. Confirmed-malicious and vulnerable MCP artifacts matched by identity (package + version range, publisher, host, repo owner, typosquat pattern) — bundled, offline, overridable, refreshable over HTTPS. Forces a block or a review regardless of behaviour score. talyx advisories list|check|refresh. See The advisory feed.
  • Tree-sitter AST + source-to-sink taint for JS/TS, Python and Ruby — function-scoped and interprocedural (follows a secret through helper returns and parameters to a network sink). Now the authoritative capability pass for those languages; the regex rules are the parse-failure fallback.
  • Plugin & extension ecosystems — Claude Code plugins, Gemini CLI extensions and Antigravity plugins: every enabled one's bundled MCP servers, hooks, skills, agents, LSP servers and monitors are discovered and scored.
  • Warp added (27 agents). ~/.warp/.mcp.json, flat-root shape.
  • Remote-code-execution detection for hooks and skill code blocks (curl … | sh, irm … | iex).
  • MCP tool-description poisoning detection; tool-shadowing & typosquat detection across all discovered servers.
  • SARIF 2.1.0 output + GitHub Action; capability-drift re-review.
  • Skill & instruction-file content analysis: prompt injection, invisible Unicode, encoded payloads, exfiltration directives — and a flagged, project-scoped instruction file (.cursorrules, GEMINI.md) is quarantined, not just reported.
  • Config-rewrite enforcement for every discovered agent, local and remote MCP servers; skills and repo-delivered instruction files quarantined; talyx allow reverses any of it.

You audit your dependencies. Your agent doesn't.

One command to install, one to scan. Then every MCP server, plugin and skill your agents load is checked and gated. Free — every feature, no license, no account.

$ curl -fsSL https://raw.githubusercontent.com/rynald0cst0ltziam/talyx/main/scripts/install.sh | sh

Fully local · zero telemetry · source-available · Windows · macOS · Linux