Hooks
What arvancloud-api runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
> /plugin marketplace add erfnzdeh/arvancloud-agent-skill > /plugin install arvancloud-api@arvancloud-agent-skill
Ships with arvancloud-api. Installing the plugin gets these hooks.
What fires, and when
SessionStart
Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.
${CLAUDE_PLUGIN_ROOT}/hooks/export-plugin-key.sh
Where it lives
- hooks/export-plugin-key.shRunsGitHub
Read the script
#!/bin/sh # Makes the API key saved in the plugin's settings (userConfig "api_key", # stored in the system credential store) visible to Claude's Bash commands. # Claude Code gives plugin hooks the saved value as CLAUDE_PLUGIN_OPTION_API_KEY # and runs $CLAUDE_ENV_FILE before every Bash command. Nothing is sent anywhere # and nothing is printed. Without a saved key or an env file this does nothing. [ -n "${CLAUDE_PLUGIN_OPTION_API_KEY:-}" ] || exit 0 [ -n "${CLAUDE_ENV_FILE:-}" ] || exit 0 quoted=$(printf '%s' "$CLAUDE_PLUGIN_OPTION_API_KEY" | sed "s/'/'\\\\''/g") printf "export CLAUDE_PLUGIN_OPTION_API_KEY='%s'\n" "$quoted" >> "$CLAUDE_ENV_FILE" exit 0
Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.
Unofficial, community-maintained Agent Skill for driving ArvanCloud's APIs (CDN, DNS, Cloud Server / IaaS, Object Storage, Edge Computing, Cloud Container, VOD/Live/Video Ads) and issuing Let's Encrypt wildcard TLS certs via acme.sh's dns_arvan plugin, from

