# Stripe 向けエージェントプラグイン

Stripe の最新ガイダンスと本番環境データへのアクセスを AI コーディングアシスタントに付与します。

Stripe のエージェントプラグインにより、AI エージェントは Stripe の開発者ツール、本番環境データ、最新のスキルと技術ガイダンスを利用できます。こうしたコンテキストがあることで、エージェントは古い API やよくあるミスを回避しつつ、Stripe 連携をより速く正確に構築、運用できます。

Claude Code、Codex、Cursor、Grok、Kiro、OpenClaw では[自動プラグインサポート](https://docs.stripe.com/agents/plugin.md#automatic)を利用できます。[その他のエージェント](https://docs.stripe.com/agents/plugin.md#other-agents)には AI ツールを手動で追加できます。

## 自動インストール

Stripe CLI の [agent setup](https://docs.stripe.com/cli/agent/setup) コマンドを使用して、該当するエージェントプラグインを自動的に設定します。

お使いのオペレーティングシステム用のインストールスクリプトで Stripe CLI をインストールします。この方法でインストールすると、デフォルトで[自動更新](https://docs.stripe.com/cli/upgrade)が有効になります。

macOS または Linux の場合:

```bash
curl -fsSL https://cli.stripe.com/install.sh | sh
export PATH="$HOME/.stripe/bin:$PATH"
```

Windows の場合は、PowerShell で次のコマンドを実行します。

```powershell
irm https://cli.stripe.com/install.ps1 | iex
```

インストール後、新しいターミナルを開き、エージェントツールをインストールします。

```bash
stripe agent setup
```

このコマンドにより、使用しているエージェントが自動的に検出され、該当するコマンドが実行されます。

## 手動インストール

または、AI エージェントを選択して該当するコマンドを実行します:

### Claude Code

プロジェクトディレクトリーで次のコマンドを実行します。

```bash
claude plugin install stripe@anthropic-plugin-directory
```

### Codex

プロジェクトディレクトリーで次のコマンドを実行します。

```bash
codex plugin add stripe@openai-curated
```

### Cursor

Cursor のチャットで次のコマンドを実行します。

```bash
/add-plugin stripe
```

### Grok

プロジェクトディレクトリーで次のコマンドを実行します。

```bash
grok plugin install stripe --trust
```

### Kiro

Kiro のチャットで次のコマンドを実行します。

```bash
/powers install stripe
```

または、[Kiro インストールリンク](https://kiro.dev/launch/powers/add/?name=stripe)を使用して power をインストールします。

### OpenClaw

プラグインを一時ディレクトリーにクローンしてからインストールします。たとえば、`/tmp/stripe` を使用するには、次を実行します。

```bash
git clone --branch plugins/agent-plugin --depth 1 https://github.com/stripe/ai.git /tmp/stripe
openclaw plugins install --force /tmp/stripe
```

### その他の AI エージェント

ご使用のエージェントに対応する Stripe プラグインがない場合は、`stripe agent setup` を実行して[エージェントスキル](https://docs.stripe.com/skills.md)をインストールします。また、[Stripe MCP](https://docs.stripe.com/mcp.md#manual) サーバーを手動で設定して、エージェントが Stripe の本番環境データやサポート対象の操作にアクセスできるようにすることもできます。

## See also

- [Stripe MCP](https://docs.stripe.com/mcp.md)
- [エージェントスキル](https://docs.stripe.com/skills.md)
