npm.io
1.0.47 • Published 21h agoCLI

@morphllm/morph-setup

Licence
MIT
Version
1.0.47
Deps
6
Size
92 kB
Vulns
0
Weekly
0
Stars
24.9K

@morphllm/morph-setup

One-line installer for Morph MCP and bundled skills. Also includes a2a-review, which creates an AI "twin" that reviews PRs in your style.

Install

npx -y @morphllm/morph-setup

The CLI will guide you through selecting which apps to install to.

With API Key

npx -y @morphllm/morph-setup --morph-api-key <your-key>

Or set the environment variable:

MORPH_API_KEY=<your-key> npx -y @morphllm/morph-setup
Non-interactive
npx -y @morphllm/morph-setup -y
Model Router

Install and configure the Claude Code subscription model router in one command:

npx -y @morphllm/morph-setup --router --morph-api-key <your-key>

--router, --warpgrep, and --skills are explicit component flags. When any of them is passed, setup runs without confirmation prompts. With no component flag, setup opens an interactive picker.

The router keeps users on their existing Claude Code subscription. Start it with morphrouter chat (or npx -y @morphllm/morphrouter chat).

a2a-review: Agent Twin Code Review

Set up an AI twin that reviews PRs using your coding preferences, learned from your CLAUDE.md files.

Quick start
npx -y @morphllm/morph-setup --morph-api-key <your-key> --a2a-review

The CLI will:

  1. Verify your API key
  2. Auto-detect your GitHub username (from gh CLI or git config)
  3. Scan for CLAUDE.md files (global, project, and agent definitions)
  4. Sanitize content (strips API keys, replaces absolute paths)
  5. Upload to generate a review personality via Anthropic
Non-interactive mode

All arguments can be passed explicitly to skip prompts:

npx -y @morphllm/morph-setup \
  --morph-api-key sk-... \
  --a2a-review \
  --github-username octocat \
  --claude-md ~/.claude/CLAUDE.md ./CLAUDE.md
File scanning

When --claude-md is not provided, the CLI scans automatically:

  • ~/.claude/CLAUDE.md (global config, highest priority)
  • <cwd>/CLAUDE.md and parent directories (walks up to root)
  • ~/.claude/**/CLAUDE.md (recursive, any nested CLAUDE.md)
  • ~/.claude/**/agents/*.md (agent definition files)

Skipped directories: plans, cache, skills, plugins, memory, worktrees, node_modules, .git

Combined content is truncated at ~100k tokens if it exceeds the limit.

Options
Flag Description
--a2a-review Enter a2a-review setup mode
--github-username <name> GitHub username (skips auto-detection)
--claude-md <paths...> Explicit CLAUDE.md file paths (skips auto-scan)
--morph-api-key <key> Morph API key (or set MORPH_API_KEY env var)
What it generates

A ~500-word review personality profile covering:

  • Code review priorities (correctness, performance, security, readability)
  • Strictness level and what they consider nitpicky vs important
  • Communication style (direct, explanatory, socratic)
  • Language/framework expertise
  • Red flags they focus on

This personality is injected into the system prompt when the twin reviews PRs, steering its focus areas and tone to match the developer.

Invite your team

Each developer runs the CLI with their own API key:

npx -y @morphllm/morph-setup --morph-api-key <THEIR_KEY> --a2a-review

Manage twins at: https://morphllm.com/dashboard/integrations/github

License

MIT

Keywords