Scan your whole stack
Are you using @substrate-system/roast?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.1
@substrate-system/roast was last scanned on 24 Nov 2026 at version 0.0.1. Risk score 0 of 100. High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.0.1 LATEST | 24 Nov 2026 | 1 rule fired |
Findings for v0.0.1. 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.
Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.
HIGHThe score describes 0.0.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
An adversarial, cross-model code reviewer. Install as a project dependency.
A finder model proposes defects in a Git diff, each with a code quote and a concrete fix. An independent verifier model then re-reads the cited code and confirms or refutes every claim before it reaches the report. The two roles can use different providers, endpoints, and wire protocols.
In interactive mode, the models can navigate the local checkout via read-only file, grep, and listing tools.
This is a fork of
bluesky-social/roast.
The fork adds npm ecosystem.
Roast runs in a Git repository with a package.json. It needs Node 22.18
or later on macOS or Linux. Windows is not supported.
The agent skill is optional. Install it if you want a coding agent, such as Claude Code, to run reviews for you.
npm i -D @substrate-system/roast
npx roast --version prints the installed version, commit, and build
date.
npx roast init
This writes .roast.json in the current directory and adds /.roast/ to
.gitignore. Command init picks each role's provider from its
model ID:
claude-opus-5-5) uses Anthropic's Messages APIgpt-6.1-terra) uses OpenAI's
Responses API<vendor>/<model> with an optional :<variant>
(anthropic/claude-opus-5-5, meta-llama/llama-4:free), uses
OpenRouter.Either model can fill either role. It's recommended to use models from different
providers for each roles. For a model no built-in provider serves,
edit .roast.json by hand (see Project config).
Without the flags, init writes placeholder model IDs,
and a review refuses to run until you replace them in .roast.json.
In the terminal, init then offers to log in to each provider
that has no credential yet (see Login and logout).
Flag --no-login skips the login process.
init ExampleClaude as the finder and Codex as the verifier:
npx roast init --finder-model 'claude-opus-5-5' \
--verifier-model 'gpt-6.1-terra'
init refuses to overwrite an existing .roast.json.
If you skipped the login process during init, log in now:
npx roast login
With no argument, login reads .roast.json and logs in to each built-in
provider that has no credentials yet. For Anthropic and OpenAI,
it opens the provider's API-keys page. Create a key and paste it into the
hidden prompt. For OpenRouter, it opens OpenRouter in your browser and
receives a new key when you approve. The key is stored for this project
inside .git, so it is never committed, and every later review, including
the pre-commit gate, finds it.
Environment variables still work and take precedence over a stored key, which suits CI:
export OPENAI_API_KEY='...' # platform.openai.com/api-keys
export ANTHROPIC_API_KEY='...' # console.anthropic.com/settings/keys
export OPENROUTER_API_KEY='...' # openrouter.ai/settings/keys
To see which models an OpenAI key can use:
curl -s https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" | jq -r '.data[].id'
npx roast doctor
npx roast review --task 'add retry handling'
npx roast doctor checks the config, credentials, and both endpoints with a
small probe.
npx roast review reviews your changes and prints a report.
A review needs an API key for the provider of each role's model, either
stored with npx roast login <provider> or set in that provider's variable:
ANTHROPIC_API_KEY for Anthropic's endpoint, OPENAI_API_KEY for OpenAI's,
and OPENROUTER_API_KEY for OpenRouter's.
With both roles on Anthropic's endpoint, one Anthropic key is enough.
Flags --quick and --no-verify skip the verifier, so they need only the
finder's key. To give a role its own key,
set ROAST_FINDER_API_KEY or ROAST_VERIFIER_API_KEY. If a key is missing,
the review exits with an error, naming npx roast login <provider>, before
it calls any model. See Credentials for the full lookup
order.
The starter config only uses the built-in endpoints and key variables, so it needs no approval. If you change a profile's endpoint or credential variable, see Trust.
The agent skill is a SKILL.md file that teaches a coding agent, such as
Claude Code, how to use Roast. Agents that support Agent Skills load it from a
skills directory. It tells the agent when a change deserves a review, which
npx roast review invocations to run, and how to read the exit codes. It
also says to check each finding against the cited code before acting on it.
And it tells the agent never to approve a project config itself, but to leave
the npx roast trust decision to you. The skill ships inside the Roast
package, so the installed copy matches the version you run.
npx roast skill install
npx roast skill status
By default this installs the bundled skill into the project, at the Git
toplevel: .agents/skills/roast, and also .claude/skills/roast when Claude
Code is detected or the project already has a .claude/ directory. Commit
those directories to share the skill with your team. --global installs into
the user-level directories instead: ~/.agents/skills/roast,
$CLAUDE_CONFIG_DIR/skills/roast (default ~/.claude/skills/roast) when
Claude Code is detected, and $XDG_CONFIG_HOME/polytoken/skills/roast
(default ~/.config/polytoken/skills/roast) when Polytoken is detected.
--dir limits either command to one parent skills directory. --force
overwrites installed files that differ from the bundled skill.
npx roast skill status reports whether each installed copy matches the
installed Roast version.
Every setting except credentials lives in .roast.json (JSONC: comments and
trailing commas are allowed). Roast looks for it in the working directory and
then in each parent directory, stopping at the Git toplevel; the first one
found wins, and files are never merged. --config <path> names a different
file. When there is no project config, Roast exits with an error telling you
to run npx roast init. There are no built-in default models.
{
"$schema": "./node_modules/@substrate-system/roast/roast.schema.json",
"version": 1,
"inference_profiles": {
"openai": {
"endpoint": "https://api.openai.com/v1",
"protocol": "responses",
"api_key_env": "OPENAI_API_KEY",
"model": "finder-model"
},
"anthropic": {
"endpoint": "https://api.anthropic.com/v1",
"protocol": "anthropic",
"api_key_env": "ANTHROPIC_API_KEY",
"model": "verifier-model",
"max_output_tokens": 32768
}
},
"roles": {
"finder": {"profile": "openai"},
"verifier": {"profile": "anthropic"}
}
}
version: 1 is required and unknown fields are rejected. $schema points
your editor at the JSON Schema shipped in the package, for completion and
validation.
A profile is a complete unit: model, endpoint, protocol, output-token
limit (max_output_tokens, default 32,768), and credential variable
(api_key_env). Roast never infers a protocol or credential from a model
name. Protocols are responses and chat (OpenAI-compatible, default
endpoint https://api.openai.com/v1) and anthropic (native Messages, which
authenticates with x-api-key, default endpoint
https://api.anthropic.com/v1). A profile can point at a hosted provider, a
gateway, or a local server that implements its protocol:
"inference_profiles": {
"gateway": {
"endpoint": "https://models.example.com/v1",
"protocol": "chat",
"api_key_env": "GATEWAY_API_KEY",
"model": "gateway-model"
}
}
A config that names an endpoint other than a built-in provider's must be approved once per clone; see Trust.
A project config may name a credential variable but never hold a credential;
a literal api_key field is rejected. Roast has three built-in providers,
each with a built-in endpoint and a standard key variable:
| Provider | Endpoint | Protocols | Key variable |
|---|---|---|---|
openai |
https://api.openai.com/v1 |
responses, chat |
OPENAI_API_KEY |
anthropic |
https://api.anthropic.com/v1 |
anthropic |
ANTHROPIC_API_KEY |
openrouter |
https://openrouter.ai/api/v1 |
chat, responses |
OPENROUTER_API_KEY |
A role's credential is the first of:
ROAST_FINDER_API_KEY or ROAST_VERIFIER_API_KEY;api_key_env;npx roast login;npx roast login --global.Steps 3 to 5 apply only when the profile uses a built-in provider's endpoint
with a protocol that provider accepts there. A provider key in your shell,
or a stored key, is never sent to a gateway or any other custom endpoint,
and never follows a role that an override moved off its provider's
endpoint. A stored key is matched to a role only by that endpoint and
protocol, never by anything .roast.json names. A custom endpoint needs
api_key_env or a role key (ROAST_FINDER_API_KEY or
ROAST_VERIFIER_API_KEY). npx roast doctor reports which source each role
used, including a stored key and its scope, and names a provider key it
withheld.
npx roast login gets a key for a built-in provider and stores it, so
reviews and the pre-commit gate find it without an environment variable.
npx roast login # every provider .roast.json needs
npx roast login anthropic # one provider: anthropic, openai,
# or openrouter
npx roast login openrouter --global # store for your user, not the project
npx roast login openrouter --no-browser
npx roast logout anthropic # remove one stored key
npx roast logout --global # remove every user-scope key
With no argument, login logs in to each built-in provider that the roles
in .roast.json use and that has no credential yet; it does nothing when
every role already has one. With a provider argument, it always runs and
replaces any key stored for that provider in the chosen scope. Login needs
an interactive terminal.
roast
directly to Roast; nothing is copied by hand. With --no-browser (or on
Linux without a display), Roast prints the URL instead and asks for the
code the page shows.Roast always prints the URL it opens, so a missing browser does not block login. Login prints only the provider and scope it stored, never the key.
Keys are stored in one of two scopes:
.git/roast/credentials.json, in the Git common
directory. It is never committed or copied by git clone, and linked
worktrees share it. Outside a Git repository, use --global.--global): $XDG_CONFIG_HOME/roast/credentials.json, or
~/.config/roast/credentials.json when XDG_CONFIG_HOME is unset.Both files are written with mode 0600 in a 0700 directory. On Unix, Roast
refuses a credentials file that group or others can read and says to
chmod 600 it. npx roast doctor reports a credentials file that is too
open or does not parse.
npx roast logout [provider] removes the stored key for one provider, or
for every provider with no argument, from the project scope, or the user
scope with --global. It does not revoke the key at the provider; revoke it
on the provider's key page, which logout names.
OpenRouter serves many vendors' models through one
account and one bill. Give init OpenRouter's slash-form model IDs:
npx roast init --finder-model 'anthropic/claude-opus-5-5' \
--verifier-model 'openai/gpt-6.1-terra'
A bare ID (claude-opus-5-5) goes to that vendor's own API; a slash-form ID
(<vendor>/<model>, optionally :<variant>) goes to OpenRouter. When one
role is on OpenRouter and the other model is omitted, the placeholder role
goes on OpenRouter too. The starter profile looks like this:
"openrouter": {
"endpoint": "https://openrouter.ai/api/v1",
"protocol": "chat",
"api_key_env": "OPENROUTER_API_KEY",
"model": "anthropic/claude-opus-5-5"
}
Run npx roast login openrouter, or set OPENROUTER_API_KEY. A profile on
OpenRouter's endpoint with protocol chat or responses and either no
api_key_env or OPENROUTER_API_KEY needs no trust approval, the
same as OpenAI and Anthropic. OPENROUTER_API_KEY is read only for
OpenRouter's endpoint.
npx roast review accepts per-role overrides: --finder-model,
--finder-protocol, --finder-base-url, --finder-max-output-tokens, and
the same four for the verifier. Flags take precedence over the project config,
which takes precedence over built-in defaults. An endpoint override carries
the role key or the profile's own credential to the endpoint it names, but a
provider key from the shell, or a stored key, only to that provider's
built-in endpoint.
When the invoking agent passes --author-model, the finder can switch to
another profile by exact model name or model family, so a model is not
reviewing its own work. Here primary and independent are profiles defined
under inference_profiles:
"roles": {
"finder": {
"profile": "primary",
"author_routes": {
"openai": "independent",
"exact-author-model": "independent"
}
},
"verifier": {"profile": "independent"}
}
roles.finder.pin: true keeps the configured finder anyway, with a warning.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.