本文へスキップ

Claude Code

Hermes AI API の MCP サーバーを Claude Code に追加し、OAuth でサインイン。必要に応じて Agent Skill もインストールします。

Add the MCP server

Run this in a terminal. It adds the server over Streamable HTTP.

terminal
claude mcp add --transport http hermes-ai-api https://api.hermes-ai.net/mcp

サインイン

In Claude Code, run /mcp and choose hermes-ai-api. Your browser opens to sign in. Sign in with Google or GitHub and allow the request.

  • アプリができること: モデルを実行して前払いクレジットを使い、タスク・結果・残高を読み取ります。
  • アプリができないこと: API キー・請求・支払いの管理や、管理機能の利用。
  • いつでも接続解除: アカウントセキュリティに接続済みアプリがすべて表示されます。接続を解除するとすぐにアクセスが停止します。

Install the Agent Skill (optional)

この Skill はエージェントに API キーを使った REST API での Hermes AI API の流れを教えます。~/.claude/skills(全プロジェクト)またはプロジェクトの .claude/skills に展開し、HERMES_API_KEY を設定してください。

terminal
mkdir -p ~/.claude/skills
curl -L https://api.hermes-ai.net/skills/hermes-ai-api.zip -o /tmp/hermes-ai-api.zip
unzip -o /tmp/hermes-ai-api.zip -d ~/.claude/skills

MCP ツール

Once signed in, ask in plain language. Your agent picks a model, shows the price and runs the task with these tools:

ツールできること
search_models出力タイプやキーワードでモデルを探し、料金も表示します。
get_modelモデルの入力項目・指定可能な値・現在の料金を取得します。
create_taskモデルを実行します。タスクが成功した場合のみ課金されます。
wait_for_taskタスクの完了を待って結果を返します。
get_taskタスクを確認します。完成した画像はそのまま返されます。
list_tasks最近のタスクを一覧表示します。
get_balance利用可能・確保中・使用済みのクレジットを表示します。

Let your agent do the setup

Prefer one step? Copy the setup prompt from the Agents page into your agent; it runs these steps for you. エージェント