Claude Code CLI for OpenClaw

ReviewAudited by ClawScan on May 1, 2026.

Overview

This is a coherent Claude Code CLI setup skill, but users should handle the long-lived OAuth token, global npm install, and agent coding authority carefully.

Install only if you intend to let OpenClaw agents use Claude Code for coding tasks. Verify the npm package source, avoid system-wide or shared token storage where possible, do not print or commit the OAuth token, and review code changes before committing or pushing.

Findings (5)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If the token is exposed or stored too broadly, someone else could use the user's Claude Code access.

Why it was flagged

The skill requires a long-lived Claude Code OAuth token for the CLI backend, which is expected for this purpose but gives access under the user's Claude account.

Skill content
The token must be available as the `CLAUDE_CODE_OAUTH_TOKEN` environment variable.
Recommendation

Store the token in a user-scoped secret store or tightly controlled environment variable, avoid committing or screenshotting it, and revoke/rotate it if exposed.

What this means

The installed CLI code comes from npm and may change over time if no version is pinned.

Why it was flagged

The installer performs a global npm package installation without pinning a version; this is central to installing Claude Code but depends on the npm package source at install time.

Skill content
npm install -g @anthropic-ai/claude-code
Recommendation

Verify the package source before installing and consider pinning a known-good version in controlled environments.

What this means

Agents may read and modify project files through Claude Code when given coding tasks.

Why it was flagged

The documented OpenClaw configuration exposes Claude Code as a CLI backend with the user's token, allowing agents to use the coding CLI.

Skill content
"cliBackends": { "claude-cli": { "command": "/usr/bin/claude", "env": { "CLAUDE_CODE_OAUTH_TOKEN": "YOUR_OAUTH_TOKEN_HERE" } } }
Recommendation

Use branches, review diffs before committing or pushing, and restrict use to intended project directories.

What this means

Incorrect or sensitive content placed in CLAUDE.md could be reused across later coding tasks.

Why it was flagged

The workflow intentionally uses a persistent project context file, which can influence future Claude Code sessions.

Skill content
Project Context: CLAUDE.md provides persistent project knowledge across sessions
Recommendation

Keep CLAUDE.md reviewed, avoid storing secrets in it, and update it when project assumptions change.

What this means

Users may underestimate normal risks from OAuth token handling and global CLI installation.

Why it was flagged

The security document includes strong self-attestation language; it should not replace independent review of the actual install, credential, and agent-backend behavior.

Skill content
Verdict: False positive. This skill contains no malicious code.
Recommendation

Treat the self-assessment as informational only and make an independent decision based on the documented commands and permissions.