npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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.

Readme

setup-sogni-agent-skill

One-command installer for the Sogni Creative Agent Skill.

npx setup-sogni-agent-skill

Detects 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.json pointing at the globally installed CLI (requires a skill package version that ships desktop-extension/ — install/upgrade with npm 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-ui

Run 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-skill

On Windows, open a new terminal as Administrator and run:

npx setup-sogni-agent-skill

Keep 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 ~/.config

The 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-agent CLI)
  • npm on $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

  1. For explicit local-only runs like --only=codex, first checks that at least one selected local runtime is detected.
  2. Runs npm install -g @sogni-ai/[email protected] by default.
  3. Resolves the global install path via npm root -g.
  4. If started with sudo, drops back to the original user before touching files in your home directory.
  5. Detects ~/.claude/, ~/.codex/, ~/.hermes/, and the Claude Desktop config file (claude_desktop_config.json); treats ChatGPT (web) as always available (manual setup).
  6. For each detected local runtime, dispatches to a per-runtime adapter that knows that runtime's directory convention.
  7. Writes a marker file (.sogni-installed.json) so re-runs upgrade in place.
  8. Prompts for your Sogni API key when local CLI use needs one (unless SOGNI_API_KEY is set or ~/.config/sogni/credentials already exists). ChatGPT-only setup skips this local credentials step.

License

MIT