nanocoai/nanoclaw / .claude/skills/add-iron-proxy
add-iron-proxy
FlaggedInstall or refresh Iron Proxy and its official Iron Control web console for NanoClaw. Use when selecting the Iron gateway, adding its management UI, configuring credentials and grants, or restoring the proxy, approval bridge, and agent guidance.
scripts/install-claude.sh
View on GitHub#!/usr/bin/env bash
# Install the Claude Code CLI on the host via the official native installer.
# Invoked from this skill's auth flow when the user picks the subscription auth
# path and `claude` is missing. The other auth paths (paste OAuth token, paste
# API key) don't need the CLI, so this runs on demand rather than up front.
#
# The native installer is Node-independent (downloads a prebuilt binary to
# ~/.local/bin) and is the path Anthropic documents. This matches the pattern
# used by install-docker.sh / install-node.sh: the script itself is the
# allowlisted unit; the curl | bash pipe lives inside it.
#
# Emits the same STATUS block as every other setup script, so a consumer
# reading step output does not need to special-case which gateway asked.
set -euo pipefail
echo "=== NANOCLAW SETUP: INSTALL_CLAUDE ==="
if command -v claude >/dev/null 2>&1; then
echo "STATUS: already-installed"
echo "CLAUDE_VERSION: $(claude --version 2>/dev/null || echo unknown)"
echo "=== END ==="
exit 0
fi
if ! command -v curl >/dev/null 2>&1; then
echo "STATUS: failed"
echo "ERROR: curl not available."
echo "=== END ==="
exit 1
fi
echo "STEP: claude-native-install"
curl -fsSL https://claude.ai/install.sh | bash
# Native installer writes to ~/.local/bin and appends a PATH line to the
# user's rc file; that doesn't help this session, so put it on PATH now.
if [ -d "$HOME/.local/bin" ] && [[ ":$PATH:" != *":$HOME/.local/bin:"* ]]; then
export PATH="$HOME/.local/bin:$PATH"
fi
hash -r 2>/dev/null || true
if ! command -v claude >/dev/null 2>&1; then
echo "STATUS: failed"
echo "ERROR: claude not found on PATH after install."
echo "=== END ==="
exit 1
fi
echo "STATUS: installed"
echo "CLAUDE_VERSION: $(claude --version 2>/dev/null || echo unknown)"
echo "=== END ==="
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |