Claude Code, Skill
Pai Code
Local AI filmmaking studio — skills, canvas, timeline — driven from your coding agent.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
Rescanned at commit 825bca2f9cc4, unchanged since the check below.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV OBFUSCATION_ENCODED_BLOB SECRETS_ENV_READ
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
server/local_mirror.js, line 152
await fs.unlink(absPath).catch(() => {}); - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
docker/entrypoint.sh, line 125
if ! wait_until 10 curl -sf -o /dev/null http://127.0.0.1:7488/; then - SECRETS_PATH_DOTENV Low
Mentions a .env file.
docker/entrypoint.sh, line 238
echo " .env (next to docker-compose.yml) and restart:" - OBFUSCATION_ENCODED_BLOB Low
Contains a long base64 shaped string in a file that should be readable.
web/package-lock.json, line 1
{ - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
server/pai_assets_client.js, line 385
if (!process.env.PAI_KEY) return; // no key → no upload, no chip
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Concern
can delete files.
PERMISSION_DELETE_FILES
server/local_mirror.js, line 152
await fs.unlink(absPath).catch(() => {});
server/cli/_pending.js, line 568
fs.unlinkSync(pendingPath(jobId));
server/cli/generate_image.js, line 274
await fs.unlink(tmpAbsPath).catch(() => {});
Show more
server/cli/generate_image_pro.js, line 279
await fs.unlink(tmpAbsPath).catch(() => {});
server/cli/generate_video.js, line 664
await fs.unlink(tmpAbsPath).catch(() => {});
server/cli/generate_voice.js, line 246
await fs.unlink(tmpAbsPath).catch(() => {});
server/cli/mirror_url.js, line 129
await fs.unlink(tmpAbsPath).catch(() => {});
server/cli/mirror_url.js, line 147
await fs.unlink(tmpAbsPath).catch(() => {});
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
docker/entrypoint.sh, line 125
if ! wait_until 10 curl -sf -o /dev/null http://127.0.0.1:7488/; then
docker/entrypoint.sh, line 152
curl -sf -m 3 --resolve "${TUNNEL_HOST}:${TUNNEL_PORT}:${TUNNEL_IP}" -o /dev/null "${TUNNEL_URL}/"
scripts/start.sh, line 403
if ! wait_until 10 curl -sf -o /dev/null "http://localhost:${port}/"; then
Show more
scripts/start.sh, line 426
# curl --resolve, instead of relying on the OS resolver. This matches what
scripts/start.sh, line 454
if ! wait_until 30 curl -sf -m 3 --resolve "${TUNNEL_HOST}:443:${TUNNEL_IP}" -o /dev/null "${TUNNEL_URL_VAL}/"; then
scripts/start.sh, line 460
echo " curl -v --resolve ${TUNNEL_HOST}:443:${TUNNEL_IP} ${TUNNEL_URL_VAL}/"
server/image_split.js, line 36
const res = await fetch(url, { signal: ctrl.signal });
server/local_mirror.js, line 137
res = await fetch(url, { signal: AbortSignal.timeout(timeoutMs) });
server/pai_client.js, line 175
res = await fetch(url, {
server/pai_client.js, line 214
res = await fetch(url, {
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
docker/entrypoint.sh, line 238
echo " .env (next to docker-compose.yml) and restart:"
docker/entrypoint.sh, line 240
echo " echo \"PAI_KEY=PAI_yourkey\" >> .env"
server/pai_assets_client.js, line 385
if (!process.env.PAI_KEY) return; // no key → no upload, no chip
Show more
scripts/docker-start.sh, line 25
if [ -f "$PAI_REPO_ROOT/.env" ]; then
scripts/docker-start.sh, line 27
. "$PAI_REPO_ROOT/.env"
scripts/docker-start.sh, line 30
echo "WARNING: .env not found. Copy .env.example to .env and set PAI_KEY before media generation."
scripts/start.sh, line 5
# (Vite) in tmux. Ports come from .env (VIEWER_PORT / WEB_PORT); defaults
scripts/start.sh, line 49
# unless it is named here: `set -a; . .env` populates our own shell and stops
scripts/start.sh, line 169
echo " • Change VIEWER_PORT in this checkout's .env to run alongside the other"
server/pai_client.js, line 60
const t = process.env.PAI_KEY;
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Concern
contains an encoded blob in a file that should be readable.
OBFUSCATION_ENCODED_BLOB
web/package-lock.json, line 1
{
README.md, line 11
[.
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit 825bca2f9cc4. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file. contains an encoded blob in a file that should be readable.
Date and source
Date checked:
github.com
Commit graded: 825bca2f9cc41904c2955897599c7dd5eaf4847e
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.