# Seoagent CLI Setup

> Install or set up SEOAgent for Claude Code — persistent technical SEO audits, keyword strategy, content briefs, and articles under .seoagent/. Use when the user asks to install SEOAgent, add the SEOAgent skill, set up SEO in this repo, or wants npm / CLI instructions for SEOAgent.

- Skill: `baxter-inc/seoagent-cli-setup` (Agent Skill)
- Install (CLI): `npx skillmds@latest add baxter-inc/seoagent-cli-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/baxter-inc/seoagent-cli-setup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Marketing & Growth
- Author: Baxter-Inc (https://skillmd.com/u/baxter-inc)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/baxter-inc/seoagent-cli-setup

---


# SEOAgent — install via npm (marketplace bootstrap)

This marketplace plugin does **not** embed the full SEOAgent protocols. Those are installed into the project when the user runs the **official CLI** from npm.

## What to tell the user

1. Open a terminal at the **repository root** (same directory as `package.json`).
2. Run:

```bash
npm install @seoagent-official/seoagent && npx @seoagent-official/seoagent init
```

3. **pnpm:** `pnpm add @seoagent-official/seoagent && pnpm exec seoagent init`
4. **Non-interactive / CI:** `npx @seoagent-official/seoagent init --yes --domain example.com`

`init` scans env files and `package.json`, asks for anything it cannot infer, then creates **`.seoagent/`** and copies the full skill to **`.claude/skills/seoagent/SKILL.md`** (or **`.agents/skills/seoagent/SKILL.md`** if `.agents` already exists).

## After install

The user should use the **project-local** SEOAgent skill (large `SKILL.md`) for audits, strategy, briefs, drafts, roadmap, and onboarding site context. Your job here is **onboarding only**: make sure they run the commands above and understand that **persistence lives in `.seoagent/`**.

## Docs

Package README and behavior: [npm `@seoagent-official/seoagent`](https://www.npmjs.com/package/@seoagent-official/seoagent) and [SEOAgent](https://seoagent.com?ref=claude-plugin-skill).

