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

@anyforge/control

Latest version: v0.16.10

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: erpoot
29 Versions
4.1K Downloads

Scan summary

@anyforge/control was last scanned on 23 Nov 2026 at version 0.16.10. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 29 versions; the latest 5 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.16.10.
  • Downloads: 4,106 downloads.

Versions

29 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.16.10 LATEST 23 Nov 2026 No rules fired
0.16.9 20 Nov 2026 No rules fired
0.16.8 20 Nov 2026 No rules fired
0.16.7 18 Nov 2026 Not shown
0.16.6 18 Nov 2026 Not shown

No rules fired in 0.16.10

Findings

Findings for v0.16.10. 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.

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

README

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

@anyforge/control

Three interfaces in one binary:

  1. A governed LLM proxy for any agent — Claude Code, Cursor, Cline, Continue, or your own SDK. Route their calls through AnyForge for cost analytics, audit log, and policy enforcement.
  2. A scriptable AnyForge client — approvals, crews, work items and workflows from a shell, with no browser and no agent in the loop.
  3. The hosted Oracle in your terminal — persistent conversations, streamed answers, workspace context, questions, explicit attachments and generated-file downloads.

The second half is what makes AnyForge usable from CI. Every command speaks the same /api/v1/control/* API the MCP server does, but without needing a language model to drive it.

Install

npx @anyforge/control init

Sign in to the workspace you want to connect. Issuing a Control key requires an Owner, Operator or Editor role in that workspace. If approval says Editor or higher required, ask a workspace owner to check your membership and role, then rerun init with a new browser approval code. Reinstalling the CLI does not change your permissions.

Owners and Operators can receive read, write and approve scopes. Editors can receive read and write for planning, but cannot run crews or approve gates. A role change does not add scopes to an existing key; rerun init if the new role needs scopes your key lacks.

The CLI:

  1. Issues a one-time auth code, opens your browser to authorise it.
  2. Stores the resulting API key at ~/.anyforge/credentials (chmod 600).
  3. Asks whether to install globally (~/.claude/settings.json) or per-repo (the per-repo option only appears when you run the command at the root of a git working tree).
  4. Patches the chosen target so Claude Code routes through https://crew.anyforge.ai/v1/anthropic and …/v1/openai. The actual API key is inlined into the patched config — no ${ANYFORGE_API_KEY} indirection, no shell restart required.

After that, your next LLM call shows up under Control on /usage within seconds.

Install scope
Choice Files written Effect
global ~/.claude/settings.json (+ optional shell-rc hints for Cursor / Cline if installed) Every Claude Code session on this machine routes through AnyForge
repo <repo>/.claude/settings.local.json and <repo>/.env Only Claude Code sessions inside this repo are routed; no global side effects

Pick whichever suits the moment — the choices aren't mutually exclusive over time:

  • Want to add a second repo? Re-run npx @anyforge/control init from that repo's root and pick repo again.
  • Want to switch to a system-wide install later? Re-run from anywhere and pick global.
  • Want to undo a per-repo install? Run anyforge logout — it now reverts the patched configs (~/.claude/settings.json, <repo>/.claude/settings.local.json, the # === AnyForge Control === block in .env / your shell rc) and restores any previously-shadowed login.

The .env written in per-repo mode contains a live ANYFORGE_API_KEY. The CLI warns if your repo's .gitignore doesn't already exclude .env. Add it before committing.

Claude Pro / Max subscription users

The inference proxy is BYOK-only: it routes Claude Code through your own Anthropic API key for metering and governance. It is incompatible with a Claude Pro/Max (subscription) login — the ANTHROPIC_AUTH_TOKEN it patches out-ranks (Claude Code auth precedence #2) and therefore disables the subscription login (#6), and the proxy has no upstream API key for a subscription user, so Claude Code falls back to "please login".

anyforge init detects a subscription login and skips patching, steering you to the AnyForge MCP server instead — which keeps your subscription for inference and adds AnyForge control (HIL approvals, work items, crews) on top, with no auth conflict:

claude mcp add anyforge -- npx -y @anyforge/mcp-server

Run this after init: the MCP server reads the credential and endpoint from ~/.anyforge/credentials, so no secret belongs in the command. If your MCP client runs on another machine, configure its secret store with ANYFORGE_API_TOKEN and ANYFORGE_API_URL; ANYFORGE_API_KEY is not the MCP server's credential variable. Restart the client and check claude mcp list.

If you really want the metered BYOK proxy, re-run anyforge init --force (you'll need an Anthropic API key configured on your company; this disables your subscription in Claude Code until you anyforge logout).

Why ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY?

Claude Code recognises both, but they behave differently. ANTHROPIC_API_KEY is sent as X-Api-Key and — when an OAuth Console login is also present — surfaces an "Auth conflict: Using ANTHROPIC_API_KEY instead of Anthropic Console key" warning, and can cascade into a "selected model may not exist" error. ANTHROPIC_AUTH_TOKEN is sent as Authorization: Bearer …, is documented for "routing through an LLM gateway or proxy", and matches the bearer-token shape AnyForge expects. We patch the token form, and on every install we explicitly delete any stale ANTHROPIC_API_KEY left behind by older versions. Note that it out-ranks a subscription login (see above) — which is exactly why init refuses to patch over a Pro/Max login by default.

Commands

Oracle

Requires Node.js 22.19 or later. Sign in with a separate Oracle credential, then start a conversation or submit a read-only turn from a script:

anyforge oracle login
anyforge oracle
anyforge oracle -p "Summarize current risks"
anyforge oracle --program prog_123
anyforge oracle exec "Summarize current risks" --json
cat incident.log | anyforge oracle exec "Explain this log" --stream-json
anyforge oracle sessions
anyforge oracle resume <session-id>
anyforge oracle download <session-id> <file-id> --output ./downloads

Oracle login uses browser authorization with PKCE and stores its credential in ~/.anyforge/oracle. It leaves your inference proxy and MCP setup unchanged. For unattended use, an attributable API key in ANYFORGE_API_TOKEN takes precedence over saved Oracle logins.

Credential changes are serialized across CLI processes. Version 0.9.1 adds a non-expiring admission guard before recovering an older refresh lock. Ordinary completion, errors and process signal exit release both locks. A SIGKILL or OS crash can leave ~/.anyforge/oracle.refresh-admission behind; the CLI waits for a bounded period and reports that exact path instead of risking reuse of a rotated token. Stop all AnyForge CLI commands, then remove that directory and retry. Do not remove it while another command is running. Older CLI versions do not honor this guard: upgrade every concurrently used installation to 0.9.1 or later.

Each login belongs to one workspace, and you can keep one per workspace. The workspace name shows in the welcome card, the bottom line, /status and the login message.

anyforge oracle login --workspace "Beta Labs"   # add a workspace; it becomes active
anyforge oracle workspaces                      # list saved workspaces (--json)
anyforge oracle use "Acme Engineering"          # change the active workspace
anyforge oracle exec "..." --workspace company-2  # one command only
anyforge oracle logout                          # the active workspace (--workspace <name>, --all)

--workspace on login only pre-selects the workspace on the consent page; the CLI reports the one you actually connected. In a conversation, /workspace switches to another saved workspace and starts a new conversation there. With ANYFORGE_API_TOKEN set, the key's workspace is used and switching is refused with an explanation.

Interactive conversations are read only by default. Use oracle login --write and start with oracle --write to enable workspace edits. Consequential edits require a later explicit confirmation of the proposed action. Operator actions and external MCP writes additionally require --approve. oracle exec and oracle -p always remain read only.

Use Shift+Enter for multiline input. Type / for the command palette: /help, /status (session, workspace, access, model, last turn, usage and limits), /new, /clear, /resume, /workspace, /context, /attach, /copy, /files, /usage, /model and /exit. /design [topic], /catchup and /remember [what] are answered by the Oracle itself, as in the web widget; acting on /catchup decisions needs a session started with --write --approve.

While Oracle works, an indicator appears under its name immediately. A status line shows elapsed time and the current step, and each tool appears as it runs. Enter queues one follow-up message. Esc or Ctrl+C cancels the current run and keeps the conversation open; press Ctrl+C twice, or Ctrl+D on an empty line, to exit. Ctrl+O shows or hides finished tool activity; Ctrl+Shift+F searches the conversation. A disconnect leaves the hosted run active.

Only files explicitly named with --file or /attach are uploaded: at most 10 files, 10 MiB each and 20 MiB total. Piped input is limited to 1 MiB; free-text --context to 8 KiB. Download destinations must already exist, and downloads never overwrite files. Oracle does not discover local files or run local tools. The server also checks saved conversation size; use a new session or an attachment when a turn exceeds the remaining conversation limit.

anyforge ask keeps its existing stateless read-only API and JSON output. See the CLI guide for the full command contract.

Oracle in ACP clients

anyforge acp exposes the hosted Oracle over Agent Client Protocol v1 stdio. Sign in once with anyforge oracle login, then add a local ACP provider in T3 Code with executable anyforge and argument acp. For an editor that accepts command configuration:

{
  "command": "anyforge",
  "args": ["acp"]
}

Editors that install agents from the ACP Registry run npx -y @anyforge/control acp and sign in through the agent: in the browser, or with --login as terminal auth.

The adapter supports saved conversations, streaming answers, tool activity, questions, cancellation and recovery after a stream disconnect. Read access is the default. Add --workspace <name-or-id> to select a saved workspace, or --program, --initiative or --codebase to select Oracle context. Workspace changes need a suitable grant and --write; operator actions also need --approve and your current role. The same Oracle confirmation rules apply.

This is a hosted Oracle integration: local files are never opened or changed, and client-supplied MCP tools are omitted with a visible notice. T3's injected tools are handled this way too. Your workspace's server-side tools remain available within your access. This deliberately limited ACP profile does not claim full protocol conformance. See the ACP setup guide for limits and setup details. ACP v2 is not supported.

Setup

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 @anyforge/control

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229