Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

polycode-cli

Latest version: v1.12.0

Overview

Last scanned
8 Oct 2026
Published
8 Oct 2026
AI: Suspicious npm package Publisher: codeble.dev
8 Versions

Scan summary

polycode-cli was last scanned on 8 Oct 2026 at version 1.12.0. Risk score 85 of 100 (high). High-severity rules fired.

  • Releases: 8 versions; the latest 5 were published on 8 Oct 2026.
  • Findings: 1 rule fired in version 1.12.0 (1 high). The score describes this version only.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.12.0 LATEST 8 Oct 2026 1 rule fired
1.11.2 8 Oct 2026 No rules fired
1.11.1 8 Oct 2026 No rules fired
1.11.0 8 Oct 2026 Not shown
1.9.0 8 Oct 2026 Not shown

Rules fired in 1.12.0: 1

Findings

1 High

Findings for v1.12.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Network fetch and program launch next to decryption

The same file fetches from the network and runs a program from a computed path, and nearby decrypts a value with a symmetric cipher (createDecipheriv), so the download address may be hidden in encrypted data instead of being readable in the source. Installers do not usually encrypt their own download address.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 1.12.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

PolyCode CLI

npm version CI license node

One terminal agent for your own API keys — Anthropic, OpenAI, Gemini, DeepSeek, Mistral, xAI, Together, OpenRouter, Groq, Ollama (local), Cohere, Perplexity, Fireworks AI, Cerebras, custom OpenAI/Anthropic-compatible endpoints, and MCP tools.

npm install -g polycode-cli
polycode              # interactive session
polycode -p "fix typo in README" --output json

Quick start

  1. polycode
  2. /connect → pick provider → paste key (endpoints are built in — you never type one). Right after connecting, PolyCode fetches every model active on that key, so /model lists all of them — not just the defaults.
  3. Ask something. Switch anytime with /model (/model refresh re-fetches); check spend with /cost. Your model + provider choice is saved — new sessions keep it.

Ollama needs no key. Company gateway? /provider add. Extra tools? /mcp add github -- npx -y @modelcontextprotocol/server-github.

Interface

On a real terminal you get the full-screen TUI: header, streaming chat with tool cards (⏺ read/edit/bash with elapsed time + result), permission dialogs (y/n/a), pickers for /connect /model /resume /rewind /theme, scrollable output panels, and a Settings panel (/config bare, or Ctrl+O) with Keys / Connectors / MCP / General / About tabs — every action has a slash equivalent, so scripting never needs the UI.

Keys: Tab complete / next option · ↑/↓ history · 1-9 jump in lists · q cancel · Alt+Enter newline (multi-line prompts) · Esc stop generation · Ctrl+C stop/clear · Ctrl+D quit · PgUp/PgDn scroll · Ctrl+O settings · ? help. On short (mobile) screens, lists dock to the bottom as a compact sheet, tables stack into cards, and the boot logo compacts — everything stays usable. polycode --continue resumes your latest session. Pipes, NO_COLOR, --plain, or dumb terminals fall back to the plain REPL.

Commands

/connect /disconnect /providers /provider /model /mcp /permissions /clear /compact /commit /diff /skill /changelog /bg /jobs /cost /usage /init /config /theme /export /resume /rewind /plan /memory /doctor /help /exit plus ! <shell> and custom commands from ~/.polycode/commands/*.md.

Extra

  • Images: type an image path (screenshot.png) in your prompt — it auto-attaches for vision-capable models (others tell you to /model switch).
  • @file mentions: type @path/to/file (or @"my notes.txt") — the file's content is attached as context for that turn (max 5 files, 30k chars). @folder/ attaches a directory tree listing instead.
  • Subagents: the agent has a task tool — it spawns a headless subagent for a self-contained job (same tools, no nested subagents); its usage folds into the session cost. Needs confirmation in ask mode.
  • Skills: drop a SKILL.md in ~/.polycode/skills/<name>/ (frontmatter: name, description, triggers) — the agent lists them in its prompt, /skill <name> activates one, and matching keywords auto-load it.
  • Hooks: ~/.polycode/hooks.json fires shell commands on session_start, before_tool (non-zero exit blocks the tool), and after_tool (stdout goes to the model). Env: POLYCODE_EVENT, POLYCODE_TOOL, POLYCODE_TOOL_INPUT, …
  • Web search: the agent has a websearch tool (no key needed) — it can look things up, then webfetch the results to read them.
  • Git commits: /commit drafts a conventional commit message from your staged diff (via the current model), shows it, and commits on /commit yes. /commit -a stages all tracked changes first; /commit -m "msg" skips drafting.
  • Background jobs: /bg [--worktree] <instruction> runs an agent task detached — you get notified when it finishes. /jobs lists jobs, /jobs <id> shows the result. --worktree isolates the job in its own git worktree.
  • Diff review: /diff shows uncommitted changes vs HEAD (/diff <file> for one file) — review before /commit.
  • Changelog: /changelog drafts a Keep-a-Changelog entry from recent commits (--since <tag> to bound the range); --write prepends it to CHANGELOG.md.
  • Model pricing: the /model picker shows $input/$output per 1M and context size per model — pick with cost in mind.
  • Cost cap: max_cost_per_turn = 0.50 under [general] stops a runaway turn at $0.50 (0 = unlimited); daily_budget_usd still guards the day.
  • Prompt caching: on for Anthropic-compatible providers by default — repeated context (system prompt, history) bills at cache rates. Receipts show cached tokens. Toggle with prompt_cache = false under [general].
  • Model fallback: set fallback_models = "openai:gpt-5-mini, groq:llama-3.3-70b-versatile" under [general] — on rate limits/overloads PolyCode retries, then auto-switches down the list for the rest of the session.
  • Remote MCP: /mcp add <name> --url <https-url> [--header "K: V"] connects a streamable-HTTP MCP server (stdio servers keep working as before).
  • Memory: /memory add <fact> stores durable preferences the agent reads every session (secrets are refused); /memory list, /memory forget <n|text>.
  • Shell completions: polycode --completion bash|zsh|fish prints a completion script — append it to your shell rc file.
  • Updates: polycode --update checks the npm registry for a newer release.

Keys & privacy

  • Precedence: env var > encrypted store (~/.polycode/keys.enc, AES-256-GCM, 0600).
  • Keys are never written to config, logs, exports, or crash dumps; display shows last 4 chars only.
  • Direct machine → provider HTTPS. No hosted backend, no accounts, no telemetry (off by default).

Config

~/.polycode/config.toml (0600), ~/.polycode/mcp.json, sessions.db, MEMORY.md, checkpoints/. Project override: ./.polycode.toml.

License

Apache-2.0. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm polycode-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229