setup-sogni-agent-skill
v0.7.0
Published
One-command installer that registers the Sogni Creative Agent Skill into detected local agent runtimes and provides ChatGPT Custom-GPT instructions on request.
Maintainers
Readme
setup-sogni-agent-skill
One-command installer for the Sogni Creative Agent Skill.
npx setup-sogni-agent-skillDetects which agent runtimes you have installed, installs the sogni-agent
CLI globally, registers SKILL.md into each detected local runtime, and prompts
for your Sogni API key when local CLI use needs one.
This setup release defaults to the tested Creative Agent Skill version
3.21.0. Use --version=X.Y.Z to select a different release.
Supports
- Claude Code — installs into
~/.claude/skills/sogni-creative-agent-skill/ - Claude Desktop — registers a local MCP server entry in
claude_desktop_config.jsonpointing at the globally installed CLI (requires a skill package version that shipsdesktop-extension/— install/upgrade withnpm i -g @sogni-ai/[email protected]; the installer does this automatically). Fully quit and reopen Claude Desktop after install. Restrict with--only=desktop. - OpenAI Codex CLI — installs into
~/.codex/skills/sogni-creative-agent-skill/(upgrades preserve locally installed runtime dependencies) - Hermes Agent — installs into
~/.hermes/skills/<category>/sogni-creative-agent-skill/ - ChatGPT (web) — prints Custom GPT instructions on request:
--only=chatgpt(or--output-chatgpt-bundle=<file>to save them)
It does not configure OpenClaw — use openclaw plugins install npm:@sogni-ai/sogni-creative-agent-skill for that.
Usage
# Interactive (default)
npx setup-sogni-agent-skill
# Non-interactive (CI)
npx setup-sogni-agent-skill --yes --no-credentials
# Restrict to specific runtimes
npx setup-sogni-agent-skill --only=claude,desktop,codex
# Print ChatGPT Custom-GPT instructions (not printed by default; no local API-key file needed)
npx setup-sogni-agent-skill --only=chatgpt
# Dry run
npx setup-sogni-agent-skill --dry-run
# Pin a specific skill version
npx setup-sogni-agent-skill --version=2.3.0
# Uninstall
npx setup-sogni-agent-skill --uninstall
npx setup-sogni-agent-skill --uninstall --remove-cli # also remove the global CLI
# Plain output (no animated banner / spinner)
npx setup-sogni-agent-skill --no-uiRun npx setup-sogni-agent-skill --help for the full flag list.
When using --only, start the target agent at least once first so its config
directory exists (~/.claude, ~/.codex, or ~/.hermes). If none of the
selected local runtimes are detected, setup exits before installing anything.
Interactive runs open with an animated SOGNI banner, show a spinner while npm
works, and end with a starburst. The animations are pure ANSI (no extra
dependencies) and switch themselves off when output is piped, when NO_COLOR
is set, or with --no-ui / --boring.
If npm asks for admin access
Some Node.js installs require admin rights for global packages. If setup stops
with an EACCES or permission error, rerun the same setup command with admin
rights.
On macOS or Linux:
sudo npx setup-sogni-agent-skillOn Windows, open a new terminal as Administrator and run:
npx setup-sogni-agent-skillKeep any flags you used on the first run. The elevated rerun uses admin rights for the global npm install, then continues as your user so runtime detection and API key setup still target your home directory on macOS and Linux.
Complete uninstall (remove your data too)
--uninstall and --remove-cli remove the skill files and the global CLI but
leave your Sogni data in ~/.config/sogni/ (API key, personas, memories,
personality, last render). To remove that too, add --purge:
# Remove data only (skill files and CLI stay installed)
npx setup-sogni-agent-skill --purge
# Full teardown: skill files, then global CLI, then data
npx setup-sogni-agent-skill --uninstall --remove-cli --purge--purge asks for confirmation (skip with --yes) and always writes a backup
tarball first: ~/.config/sogni.backup-<timestamp>.tar.gz. If the backup
cannot be written, the purge aborts and your data is left untouched. Shared
paths used by other tools (~/.openclaw/openclaw.json, ~/.clawdbot/) are never
touched.
To recover from a backup:
tar -xzf ~/.config/sogni.backup-<timestamp>.tar.gz -C ~/.configThe backup tarball is left in ~/.config/ and is not removed automatically — it
contains your API key, so delete it yourself once you're sure you no longer need
it.
Requirements
- Node.js ≥ 22.11.0 (same floor as the
sogni-agentCLI) npmon$PATH- A Sogni API key
- Optional: ffmpeg, used by video/audio features (stitching clips,
extracting frames, adding music). When it's missing, interactive setup offers
to install it via your system package manager (Homebrew / winget / apt / dnf /
pacman); otherwise it prints manual instructions. It is never installed
automatically under
--yes,sudo, or a non-interactive shell.
How it works
- For explicit local-only runs like
--only=codex, first checks that at least one selected local runtime is detected. - Runs
npm install -g @sogni-ai/[email protected]by default. - Resolves the global install path via
npm root -g. - If started with
sudo, drops back to the original user before touching files in your home directory. - Detects
~/.claude/,~/.codex/,~/.hermes/, and the Claude Desktop config file (claude_desktop_config.json); treats ChatGPT (web) as always available (manual setup). - For each detected local runtime, dispatches to a per-runtime adapter that knows that runtime's directory convention.
- Writes a marker file (
.sogni-installed.json) so re-runs upgrade in place. - Prompts for your Sogni API key when local CLI use needs one (unless
SOGNI_API_KEYis set or~/.config/sogni/credentialsalready exists). ChatGPT-only setup skips this local credentials step.
License
MIT
