> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/secrets-manager/integrations/ai-agents/codex.md).

# Codex

skills CLIを使ってCodexにKeeper Agent Kitをインストールする

***

### 要件 <a href="#requirements" id="requirements"></a>

* **Node.js 18+** (`npx` の実行に必要)

### 手順1: スキルをインストール <a href="#step-1-install-skills" id="step-1-install-skills"></a>

skills CLIで必要なスキルをインストールします。

```bash
npx skills add Keeper-Security/keeper-agent-kit -a codex
```

### 手順2: インストールするスキルを選択 <a href="#step-2-select-the-required-skills-to-install" id="step-2-select-the-required-skills-to-install"></a>

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-8026ddade80abccdc3f65d9173a23e0e9d110ce5%2FScreenshot%202026-05-12%20at%201.40.31%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

### 手順3: インストールスコープをglobalに設定 <a href="#step-3-select-installation-scope-as-global" id="step-3-select-installation-scope-as-global"></a>

Codexはユーザー単位でスキル用ディレクトリを作成するため、インストールスコープは **\[global]** を選択してください。ディレクトリは skills CLI により、以下の場所に作成されます。

```
~/.codex/skills/
```

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-23f37266552a5ae8412c275145a53ffc65a81260%2FScreenshot%202026-05-12%20at%202.17.01%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

### 手順4: 動作確認 <a href="#step-3-verify" id="step-3-verify"></a>

Codexでは利用可能なスキルを `$` プレフィックスで一覧できます。スキルファイルが正しくインストールされていれば、以下のコマンドで確認できます。

```
$keeper-admin
```

<div data-full-width="false"><figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-a3be800031d4842a6f9a08bd278add8a4abbec7f%2FScreenshot%202026-05-12%20at%202.17.53%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure></div>

***

### アンインストール <a href="#uninstall" id="uninstall"></a>

<pre class="language-bash"><code class="lang-bash"><strong>npx skills remove keeper-secrets
</strong><strong>npx skills remove keeper-admin
</strong><strong>npx skills remove keeper-setup
</strong></code></pre>

削除されるのはエージェント用のスキルのみです。KSM CLIとコマンダーCLIはマシン上に残ります。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/jp/secrets-manager/integrations/ai-agents/codex.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
